This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFA] JVMTI GetArgumentsSize
- From: Tom Tromey <tromey at redhat dot com>
- To: Kyle Galloway <kgallowa at redhat dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 16 Feb 2007 11:14:06 -0700
- Subject: Re: [RFA] JVMTI GetArgumentsSize
- References: <45D5D654.4010302@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Kyle" == Kyle Galloway <kgallowa@redhat.com> writes:
Kyle> + return static_cast<jint> (args_raw_size);
Kyle> + *size = (imeth->get_args_size () / sizeof (_Jv_word));
I don't think we ought to assume that args_raw_size is a multiple of
sizeof(_Jv_word). args_raw_size is computed by libffi and ought to be
treated as a black-box calculation, IMO.
Instead, write a loop to decode the method signature and compute the
result that way.
Tom