_Jv_CallAnyMehtodA alignment patch

Andrew Haley aph@redhat.com
Mon Feb 10 10:19:00 GMT 2003


Boehm, Hans writes:
 > 
 > _Jv_CallAnyMethodA allocates an array p to hold arguments to the call.  Arguments are stored adjacently, which means they may end up misaligned.  This can fail on non-X86 architectures.
 > 
 > I attached a patch which allocates a jvalue for each argument instead.  This also simplifies the code.  My guess is it speeds up a little as well, though I didn't check that.  OK for trunk?  This should probably go into 3.3 as well, though we may want to try it on the trunk first.

I'm surprised we haven't seen this one before!  Did you happen to have
a test case?

Thanks,
Andrew.



More information about the Java-patches mailing list