RFR: 8338967: Improve performance for MemorySegment::fill [v3]

Francesco Nigro duke at openjdk.org
Mon Aug 26 12:45:03 UTC 2024


On Mon, 26 Aug 2024 12:07:02 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add a comment about the old switch type
>
> Here is what it looks like for Windows x64:
> 
> ![image](https://github.com/user-attachments/assets/53b6530c-76b7-47f1-ae02-124d16351d45)

Hi @minborg as https://github.com/openjdk/jdk/pull/16760  has shown, handling small chunks in Java can be beneficial, but AFAIK Unsafe::setMemory has been intrinsified already at https://github.com/openjdk/jdk/pull/18555, so I'm surprised that should provide some benefit now.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20712#issuecomment-2310121894


More information about the core-libs-dev mailing list