From: OpenJDK Team Date: Thu, 17 Jul 2025 14:12:28 +0000 (+0200) Subject: zero-alpha-workaround X-Git-Tag: archive/raspbian/21.0.8+9-1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=33c3ae22c6bdf0efcfae0b7b9e681e1c72873303;p=openjdk-21.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 bfd55895a..26e5492ba 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp @@ -2876,6 +2876,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