[RFA] JVMTI GetArgumentsSize
Tom Tromey
tromey@redhat.com
Fri Feb 16 20:26:00 GMT 2007
>>>>> "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
More information about the Java-patches
mailing list