This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH: libffi vs. SPARC (again)
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