From: OpenJDK Team Date: Wed, 22 Jan 2025 07:58:11 +0000 (+0100) Subject: zero-alpha-workaround X-Git-Tag: archive/raspbian/21.0.6+7-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=48695004a6a511178f295aca16cd84c6e60274ce;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 7cb862d7c..0e821d7b8 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp @@ -2842,6 +2842,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