Native wrapper optimization
christian.thalinger at oracle.com
Fri Nov 18 01:09:53 PST 2011
Looks like a good patch to me. What about 32-bit x86?
On Nov 18, 2011, at 7:39 AM, changren wrote:
> Hi, all
> Attached patch(diff with hsx20) is supposed to speed up native
> invocation. It rearranges the compiled-to-native wrapper code to
> straighten branches which improves spatial locality. Micro
> benchmark(500m consecutive JNI invocations with warm up) shows the
> stalled CPU cycles caused by instruction fetch due to L1 ICache miss
> decrease 3.4% on Intel Nehalem microarchitecture and 9.6% on Core
> microarchitecture. The real execution time of the micro benchmark is
> also decreased 5-10% respectively which reflects the improvement.
> This email (including any attachments) is confidential and may be legally privileged. If you received this email in error, please delete it immediately and do not copy it or use it for any purpose or disclose its contents to any other person. Thank you.
More information about the hotspot-dev