RFR: 8353500: [s390x] Intrinsify Unsafe::setMemory [v4]

Amit Kumar amitkumar at openjdk.org
Mon May 5 04:22:47 UTC 2025


On Fri, 2 May 2025 08:01:49 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> Interesting. Thanks for finding it out! So, this makes the behavior different to all other platforms which write all bytes before the address which is not writable.

I think the behaviour is still same with the C++ implementation. There might some more checks in C++, which tries to give better performance for specific `sizes`. But if store is unaligned then C++ implementation will also choose `mvc` instruction - which again fill the memory in same fashion as it is going to do now. 

With that being said, if you have further question, then I can try to find answers, Otherwise a approval will be nice to have ;-)

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

PR Comment: https://git.openjdk.org/jdk/pull/24480#issuecomment-2849872337


More information about the hotspot-compiler-dev mailing list