eclipse / omr

Eclipse OMR™ Cross platform components for building reliable, high performance language runtimes
http://www.eclipse.org/omr
Other
933 stars 392 forks source link

x86-64: Inline small array copy size for int and long arrays #7387

Closed a7ehuo closed 1 week ago

a7ehuo commented 1 week ago

Resubmit https://github.com/eclipse/omr/pull/7362 which was reverted in https://github.com/eclipse/omr/pull/7365, plus update the code to have the threshold as 32 bytes to use rep mov. The code that supports the threshold as 64/128 bytes is kept for now for future improvement.


(1) Inline small array copy size without using rep movs for int array and long array if copy size <= 32 bytes

(2) Add the following options to disable the enhancement

a7ehuo commented 1 week ago

@0xdaryl May I ask you to review this change? Thank you!

@vijaysun-omr @ymanton @hzongaro fyi

0xdaryl commented 1 week ago

Jenkins build xlinux,x32linux,win,osx