zero-alpha-workaround
authorOpenJDK Team <openjdk-21@packages.debian.org>
Thu, 23 Oct 2025 10:14:51 +0000 (12:14 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Thu, 23 Oct 2025 10:14:51 +0000 (12:14 +0200)
Gbp-Pq: Name zero-alpha-workaround.diff

src/hotspot/os/linux/os_linux.cpp

index c6a996d69c3fba2900bf0c2414f642caee69c0df..6612a48f09b4a1c8143d9647da8d14ac0153d194 100644 (file)
@@ -2878,6 +2878,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