File: zero-alpha-workaround.diff

package info (click to toggle)
openjdk-21 21.0.9%2B10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 821,844 kB
  • sloc: java: 5,620,360; xml: 1,643,607; cpp: 1,297,809; ansic: 421,231; asm: 404,850; objc: 21,018; sh: 15,299; javascript: 11,217; python: 6,895; makefile: 2,367; perl: 357; awk: 351; sed: 172; jsp: 24; csh: 3
file content (13 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/hotspot/os/linux/os_linux.cpp
+++ b/src/hotspot/os/linux/os_linux.cpp
@@ -2878,6 +2878,10 @@ void os::pd_commit_memory_or_exit(char*
 // 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