PATCH: libffi vs. SPARC (again)

Anthony Green green@redhat.com
Wed Oct 3 15:10:00 GMT 2001


Bruce wrote:
> One thing that could be done, I think, in Method.invoke() is to cache
> the ffi's cif structure in the Method objects? Although its stack
> allocated, calling ffi_prep_cif every time looks pretty expensive.

Yes, we should definitely do that.  That was a big win in another libffi based
project I worked on.

rth rewrote the Alpha implementation a few months back in order to use one
less function call.  He sets up the stack (what is normally ffi_prep_args) in
an alloca'd region before getting into asm code, then the asm code moves the
stack/frame pointers back to the top of the alloca'd region and continues.

AG




More information about the Java-patches mailing list