[packages/openjdk8] follow jdk >= 10 and enable AssumeMP by default

atler atler at pld-linux.org
Wed Nov 24 22:18:54 CET 2021


commit 28ca752e0536a22e3f830f971fff5e3ef49174a6
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Nov 24 22:14:13 2021 +0100

    follow jdk >= 10 and enable AssumeMP by default
    
    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 | 11 +++++++++++
 openjdk8.spec          |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/openjdk8.spec b/openjdk8.spec
index 256d97c..b254387 100644
--- a/openjdk8.spec
+++ b/openjdk8.spec
@@ -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.
diff --git a/default-assumemp.patch b/default-assumemp.patch
new file mode 100644
index 0000000..d7a9eea
--- /dev/null
+++ b/default-assumemp.patch
@@ -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         \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openjdk8.git/commitdiff/28ca752e0536a22e3f830f971fff5e3ef49174a6



More information about the pld-cvs-commit mailing list