From: OpenJDK Team Date: Wed, 19 Aug 2026 17:55:58 +0000 (+0200) Subject: zero-alpha-workaround X-Git-Tag: archive/raspbian/25.0.5_7ea-1+rpi1~2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=75222efe74f08a07a0c460b5b5934ef1d34e29dd;p=openjdk-25.git zero-alpha-workaround Gbp-Pq: Name zero-alpha-workaround.diff --- diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp index a163b8648..da1250785 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp @@ -2901,6 +2901,10 @@ void os::pd_commit_memory_or_exit(char* addr, size_t size, bool exec, // Note that the value for MAP_FIXED_NOREPLACE differs between architectures, but all architectures // supported by OpenJDK share the same flag value. #define MAP_FIXED_NOREPLACE_value 0x100000 +// on ALPHA, that triggers with 0x1000000 == 0x100000. why? +#if defined(ALPHA) && defined(MAP_FIXED_NOREPLACE) +#undef MAP_FIXED_NOREPLACE +#endif #ifndef MAP_FIXED_NOREPLACE #define MAP_FIXED_NOREPLACE MAP_FIXED_NOREPLACE_value #else