RFR: 8328306: AArch64: MacOS lazy JIT "write xor execute" switching [v2]
Andrew Haley
aph at openjdk.org
Tue Sep 23 14:29:17 UTC 2025
On Tue, 12 Aug 2025 09:55:06 GMT, Andrew Haley <aph at openjdk.org> wrote:
>> src/hotspot/share/code/codeBlob.cpp line 397:
>>
>>> 395:
>>> 396: BufferBlob* BufferBlob::create(const char* name, uint buffer_size) {
>>> 397: MACOS_AARCH64_ONLY(os::thread_wx_enable_write());
>>
>> I'm not sure why write has to be enabled here when it is not needed in any of the other create methods. The new operation below will call CodeCache::allocate (just as happens with with, say, VtableBlob::create). So, why is that not enough?
>
>> I'm not sure why write has to be enabled here when it is not needed in any of the other create methods. The new operation below will call CodeCache::allocate (just as happens with with, say, VtableBlob::create). So, why is that not enough?
>
> I have no idea, I've never tried! I'll give that a spin.
Done.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26562#discussion_r2372510482
More information about the hotspot-dev
mailing list