Native wrapper optimization

changren changren at taobao.com
Fri Nov 18 03:13:28 PST 2011


Ok, Kris will help to port to 32bit.
Thanks,
Joseph

ÓÚ 2011-11-18 17:09, Christian Thalinger дµÀ:
> Looks like a good patch to me.  What about 32-bit x86?
>
> -- Chris
>
> 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.
>> Thanks,
>> Joseph
>>
>>
>> ________________________________
>>
>> 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.
>>
>> ±¾µçÓÊ(°üÀ¨Èκθ½¼þ)¿ÉÄܺ¬ÓлúÃÜ×ÊÁϲ¢ÊÜ·¨Âɱ£»¤¡£ÈçÄú²»ÊÇÕýÈ·µÄÊÕ¼þÈË£¬ÇëÄúÁ¢¼´É¾³ý±¾Óʼþ¡£Çë²»Òª½«±¾µçÓʽøÐи´ÖƲ¢ÓÃ×÷ÈÎºÎÆäËûÓÃ;¡¢»ò͸¶±¾ÓʼþÖ®ÄÚÈÝ¡£Ð»Ð»¡£
>> <JNIWrapperOpt.patch>



More information about the hotspot-dev mailing list