follow jdk >= 10 and enable AssumeMP by default
authorJan Palus <atler@pld-linux.org>
Wed, 24 Nov 2021 21:14:13 +0000 (22:14 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 24 Nov 2021 21:17:33 +0000 (22:17 +0100)
let's make jdk8 independent of glibc implementation details at the cost
of minor deviation from a standard behavior. workaround with
_JAVA_OPTIONS still to be kept for possibly "broken" jdk8 used to build
new version with toggled default.

see https://github.com/openjdk/jdk11u/commit/fd93a046840bd5ff51bdbc4586319440b0041f1c

default-assumemp.patch [new file with mode: 0644]
openjdk8.spec

diff --git a/default-assumemp.patch b/default-assumemp.patch
new file mode 100644 (file)
index 0000000..d7a9eea
--- /dev/null
@@ -0,0 +1,11 @@
+--- jdk8u-jdk8u312-ga/hotspot/src/share/vm/runtime/globals.hpp.orig    2021-08-09 17:12:52.000000000 +0200
++++ jdk8u-jdk8u312-ga/hotspot/src/share/vm/runtime/globals.hpp 2021-11-24 22:08:41.933802463 +0100
+@@ -534,7 +534,7 @@
+   lp64_product(intx, ObjectAlignmentInBytes, 8,                             \
+           "Default object alignment in bytes, 8 is minimum")                \
+                                                                             \
+-  product(bool, AssumeMP, false,                                            \
++  product(bool, AssumeMP, true,                                             \
+           "Instruct the VM to assume multiple processors are available")    \
+                                                                             \
+   /* UseMembar is theoretically a temp flag used for memory barrier         \
index 256d97c0254340d124d51fe0b765dc0c8e84a1d7..b2543877ef07d1176f75a3ada523fb1626266d1e 100644 (file)
@@ -58,6 +58,7 @@ Patch11:      aarch32.patch
 Patch12:       atomic.patch
 Patch13:       hotspot-disable-werror.patch
 Patch14:       ignore-java-options.patch
+Patch15:       default-assumemp.patch
 URL:           http://openjdk.java.net/
 BuildRequires: /usr/bin/jar
 BuildRequires: alsa-lib-devel
@@ -455,6 +456,7 @@ done
 %endif
 %patch13 -p1
 %patch14 -p1
+%patch15 -p1
 
 %build
 # Make sure we have /proc mounted - otherwise idlc will fail later.
This page took 0.146872 seconds and 4 git commands to generate.