Sync from SUSE:SLFO:Main java-21-openjdk revision de1fd9a5ddf24c99ee807f75b5a9bda0

This commit is contained in:
Adrian Schröter 2024-05-03 13:56:04 +02:00
commit de20828095
25 changed files with 10546 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

33
PStack-808293.patch Normal file
View File

@ -0,0 +1,33 @@
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/PStack.java
+++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/PStack.java
@@ -101,7 +101,8 @@ public class PStack extends Tool {
if (jthread != null) {
jthread.printThreadInfoOn(out);
}
- while (f != null) {
+ int maxStack = 256;
+ while (f != null && maxStack-- > 0) {
ClosestSymbol sym = f.closestSymbolToPC();
Address pc = f.pc();
out.print(pc + "\t");
@@ -183,10 +184,19 @@ public class PStack extends Tool {
}
}
}
+ Address oldPC = f.pc();
+ Address oldFP = f.localVariableBase();
f = f.sender(th);
+ if (f != null
+ && oldPC.equals(f.pc())
+ && oldFP.equals(f.localVariableBase())) {
+ // We didn't make any progress
+ f = null;
+ }
}
} catch (Exception exp) {
- exp.printStackTrace();
+ // exp.printStackTrace();
+ out.println("bad stack: " + exp);
// continue, may be we can do a better job for other threads
}
if (concurrentLocks) {

72
TestCryptoLevel.java Normal file
View File

@ -0,0 +1,72 @@
/* TestCryptoLevel -- Ensure unlimited crypto policy is in use.
Copyright (C) 2012 Red Hat, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import java.security.Permission;
import java.security.PermissionCollection;
public class TestCryptoLevel
{
public static void main(String[] args)
throws NoSuchFieldException, ClassNotFoundException,
IllegalAccessException, InvocationTargetException
{
Class<?> cls = null;
Method def = null, exempt = null;
try
{
cls = Class.forName("javax.crypto.JceSecurity");
}
catch (ClassNotFoundException ex)
{
System.err.println("Running a non-Sun JDK.");
System.exit(0);
}
try
{
def = cls.getDeclaredMethod("getDefaultPolicy");
exempt = cls.getDeclaredMethod("getExemptPolicy");
}
catch (NoSuchMethodException ex)
{
System.err.println("Running IcedTea with the original crypto patch.");
System.exit(0);
}
def.setAccessible(true);
exempt.setAccessible(true);
PermissionCollection defPerms = (PermissionCollection) def.invoke(null);
PermissionCollection exemptPerms = (PermissionCollection) exempt.invoke(null);
Class<?> apCls = Class.forName("javax.crypto.CryptoAllPermission");
Field apField = apCls.getDeclaredField("INSTANCE");
apField.setAccessible(true);
Permission allPerms = (Permission) apField.get(null);
if (defPerms.implies(allPerms) && (exemptPerms == null || exemptPerms.implies(allPerms)))
{
System.err.println("Running with the unlimited policy.");
System.exit(0);
}
else
{
System.err.println("WARNING: Running with a restricted crypto policy.");
System.exit(-1);
}
}
}

49
TestECDSA.java Normal file
View File

@ -0,0 +1,49 @@
/* TestECDSA -- Ensure ECDSA signatures are working.
Copyright (C) 2016 Red Hat, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import java.math.BigInteger;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.Signature;
/**
* @test
*/
public class TestECDSA {
public static void main(String[] args) throws Exception {
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("EC");
KeyPair key = keyGen.generateKeyPair();
byte[] data = "This is a string to sign".getBytes("UTF-8");
Signature dsa = Signature.getInstance("NONEwithECDSA");
dsa.initSign(key.getPrivate());
dsa.update(data);
byte[] sig = dsa.sign();
System.out.println("Signature: " + new BigInteger(1, sig).toString(16));
Signature dsaCheck = Signature.getInstance("NONEwithECDSA");
dsaCheck.initVerify(key.getPublic());
dsaCheck.update(data);
boolean success = dsaCheck.verify(sig);
if (!success) {
throw new RuntimeException("Test failed. Signature verification error");
}
System.out.println("Test passed.");
}
}

10
_constraints Normal file
View File

@ -0,0 +1,10 @@
<constraints>
<hardware>
<physicalmemory>
<size unit="M">4096</size>
</physicalmemory>
<disk>
<size unit="G">20</size>
</disk>
</hardware>
</constraints>

10
adlc-parser.patch Normal file
View File

@ -0,0 +1,10 @@
--- a/src/hotspot/share/adlc/formsopt.cpp
+++ b/src/hotspot/share/adlc/formsopt.cpp
@@ -445,6 +445,7 @@ FrameForm::FrameForm() {
_return_value = nullptr;
_c_return_value = nullptr;
_interpreter_frame_pointer_reg = nullptr;
+ _cisc_spilling_operand_name = nullptr;
}
FrameForm::~FrameForm() {

111
alternative-tzdb_dat.patch Normal file
View File

@ -0,0 +1,111 @@
--- a/src/java.base/share/classes/java/time/zone/TzdbZoneRulesProvider.java
+++ b/src/java.base/share/classes/java/time/zone/TzdbZoneRulesProvider.java
@@ -74,6 +74,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.NavigableMap;
+import java.util.Properties;
import java.util.Set;
import java.util.TreeMap;
import java.util.concurrent.ConcurrentHashMap;
@@ -106,7 +107,14 @@ final class TzdbZoneRulesProvider extends ZoneRulesProvider {
*/
public TzdbZoneRulesProvider() {
try {
- String libDir = StaticProperty.javaHome() + File.separator + "lib";
+ final String homeDir = StaticProperty.javaHome();
+ if (homeDir == null) {
+ throw new Error("java.home is not set");
+ }
+ String libDir = homeDir + File.separator + "lib";
+ String otherDir = getZoneInfoDir(homeDir);
+ if (otherDir != null)
+ libDir = otherDir;
try (DataInputStream dis = new DataInputStream(
new BufferedInputStream(new FileInputStream(
new File(libDir, "tzdb.dat"))))) {
@@ -117,6 +125,28 @@ final class TzdbZoneRulesProvider extends ZoneRulesProvider {
}
}
+ private static String getZoneInfoDir(final String homeDir) {
+ try {
+ File f = new File(homeDir + File.separator + "conf" +
+ File.separator + "tz.properties");
+ if (!f.exists())
+ return null;
+ BufferedInputStream bin = new BufferedInputStream(new FileInputStream(f));
+ Properties props = new Properties();
+ props.load(bin);
+ bin.close();
+ String dir = props.getProperty("sun.zoneinfo.dir");
+ if (dir == null)
+ return null;
+ File tzdbdat = new File(dir, "tzdb.dat");
+ if (tzdbdat.exists())
+ return dir;
+ return null;
+ } catch (Exception x) {
+ return null;
+ }
+ }
+
@Override
protected Set<String> provideZoneIds() {
return new HashSet<>(regionIds);
--- a/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
+++ b/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
@@ -45,6 +45,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
+import java.util.Properties;
import java.util.SimpleTimeZone;
import java.util.concurrent.ConcurrentHashMap;
import java.util.zip.CRC32;
@@ -256,7 +257,15 @@ public final class ZoneInfoFile {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
public Void run() {
try {
- String libDir = StaticProperty.javaHome() + File.separator + "lib";
+ final String homeDir = StaticProperty.javaHome();
+ if (homeDir == null) {
+ throw new Error("java.home is not set");
+ }
+ String libDir = homeDir + File.separator + "lib";
+ String otherDir = getZoneInfoDir(homeDir);
+ if (otherDir != null)
+ libDir = otherDir;
+
try (DataInputStream dis = new DataInputStream(
new BufferedInputStream(new FileInputStream(
new File(libDir, "tzdb.dat"))))) {
@@ -270,6 +279,28 @@ public final class ZoneInfoFile {
});
}
+ private static String getZoneInfoDir(final String homeDir) {
+ try {
+ File f = new File(homeDir + File.separator + "conf" +
+ File.separator + "tz.properties");
+ if (!f.exists())
+ return null;
+ BufferedInputStream bin = new BufferedInputStream(new FileInputStream(f));
+ Properties props = new Properties();
+ props.load(bin);
+ bin.close();
+ String dir = props.getProperty("sun.zoneinfo.dir");
+ if (dir == null)
+ return null;
+ File tzdbdat = new File(dir, "tzdb.dat");
+ if (tzdbdat.exists())
+ return dir;
+ return null;
+ } catch (Exception x) {
+ return null;
+ }
+ }
+
private static void addOldMapping() {
for (String[] alias : oldMappings) {
aliases.put(alias[0], alias[1]);

1803
config.guess vendored Normal file

File diff suppressed because it is too large Load Diff

1895
config.sub vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,41 @@
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/BaseConfiguration.java
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/BaseConfiguration.java
@@ -795,7 +795,7 @@ public abstract class BaseConfiguration {
}
} else {
// no -Xmsgs options of any kind, use default
- doclintOpts.add(DocLint.XMSGS_OPTION);
+ return;
}
if (!customTagNames.isEmpty()) {
--- a/test/langtools/jdk/javadoc/tool/doclint/DocLintTest.java
+++ b/test/langtools/jdk/javadoc/tool/doclint/DocLintTest.java
@@ -150,12 +150,12 @@ public class DocLintTest {
files = List.of(new TestJFO("Test.java", code));
test(List.of(htmlVersion),
- Main.Result.ERROR,
- EnumSet.of(Message.DL_ERR10A, Message.DL_WRN14A));
+ Main.Result.OK,
+ EnumSet.of(Message.JD_WRN10, Message.JD_WRN14));
test(List.of(htmlVersion, rawDiags),
- Main.Result.ERROR,
- EnumSet.of(Message.DL_ERR10, Message.DL_WRN14));
+ Main.Result.OK,
+ EnumSet.of(Message.JD_WRN10, Message.JD_WRN14));
// test(List.of("-Xdoclint:none"),
// Main.Result.OK,
@@ -178,8 +178,8 @@ public class DocLintTest {
EnumSet.of(Message.DL_WRN14));
test(List.of(htmlVersion, rawDiags, "-private"),
- Main.Result.ERROR,
- EnumSet.of(Message.DL_ERR6, Message.DL_ERR10, Message.DL_WRN14));
+ Main.Result.OK,
+ EnumSet.of(Message.JD_WRN10, Message.JD_WRN14));
test(List.of(htmlVersion, rawDiags, "-Xdoclint:missing,syntax", "-private"),
Main.Result.ERROR,

4234
fips.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
--- a/src/java.instrument/share/native/libinstrument/JarFacade.c
+++ b/src/java.instrument/share/native/libinstrument/JarFacade.c
@@ -23,6 +23,7 @@
* questions.
*/
+#include <ctype.h>
#include <string.h>
#include <stdlib.h>

832
java-21-openjdk.changes Normal file
View File

@ -0,0 +1,832 @@
-------------------------------------------------------------------
Wed Feb 7 13:59:23 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Recommend mozilla-nss-sysinit in order to have available the
/etc/pki/nssdb directory and its content, required in fips mode
(bsc#1219662)
- Do not install our crafted nss.fips.cfg file, but use the one that
the build produces with our fips.patch applied
- Removed patch:
* nss-security-provider.patch
+ this DISABLED nss security provider was not used for years and
is largely rendered obsolete by the NSS-FIPS provider
- Modified patch:
* fips.patch
+ adapt to the removal of the nss security provider
-------------------------------------------------------------------
Wed Jan 24 08:16:42 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Add JPackage base provides for SLE15 too (bsc#1219115)
-------------------------------------------------------------------
Wed Jan 17 13:18:39 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Update to upstream tag jdk-21.0.2+13 (January 2024 CPU)
* CVEs
+ CVE-2024-20918, bsc#1218907
+ CVE-2024-20919, bsc#1218903
+ CVE-2024-20921, bsc#1218905
+ CVE-2024-20945, bsc#1218909
+ CVE-2024-20952, bsc#1218911
* Security fixes
+ JDK-8308204: Enhanced certificate processing
+ JDK-8314295: Enhance verification of verifier
+ JDK-8314307: Improve loop handling
+ JDK-8314468: Improve Compiler loops
+ JDK-8316976: Improve signature handling
+ JDK-8317547: Enhance TLS connection support
* Other changes
+ JDK-8038244: (fs) Check return value of malloc in
Java_sun_nio_fs_AixNativeDispatcher_getmntctl()
+ JDK-8161536: sun/security/pkcs11/sslecc/
/ClientJSSEServerJSSE.java fails with ProviderException
+ JDK-8219652: [aix] Tests failing with JNI attach problems.
+ JDK-8225377: type annotations are not visible to javac
plugins across compilation boundaries
+ JDK-8232839: JDI AfterThreadDeathTest.java failed due to
"FAILED: Did not get expected IllegalThreadStateException on
a StepRequest.enable()"
+ JDK-8267502: JDK-8246677 caused 16x performance regression in
SynchronousQueue
+ JDK-8267509: Improve IllegalAccessException message to
include the cause of the exception
+ JDK-8268916: Tests for AffirmTrust roots
+ JDK-8286757: adlc tries to build with /pathmap but without
/experimental:deterministic
+ JDK-8294156: Allow PassFailJFrame.Builder to create test UI
+ JDK-8294158: HTML formatting for PassFailJFrame instructions
+ JDK-8294427: Check boxes and radio buttons have rendering
issues on Windows in High DPI env
+ JDK-8294535: Add screen capture functionality to
PassFailJFrame
+ JDK-8295068: SSLEngine throws NPE parsing CertificateRequests
+ JDK-8295555: Primitive wrapper caches could be `@Stable`
+ JDK-8299614: Shenandoah: STW mark should keep nmethod/oops
referenced from stack chunk alive
+ JDK-8300663: java/util/concurrent/SynchronousQueue/
/Fairness.java failed with "Error: fair=true i=0 j=1"
+ JDK-8301247: JPackage app-image exe launches multiple exe's
in JDK 17+
+ JDK-8301341: LinkedTransferQueue does not respect timeout for
poll()
+ JDK-8301457: Code in SendPortZero.java is uncommented even
after JDK-8236852 was fixed
+ JDK-8301489: C1: ShortLoopOptimizer might lift instructions
before their inputs
+ JDK-8301846: Invalid TargetDataLine after screen lock when
using JFileChooser or COM library
+ JDK-8303737: C2: Load can bypass subtype check that enforces
it's from the right object type
+ JDK-8306561: Possible out of bounds access in
print_pointer_information
+ JDK-8308103: Massive (up to ~30x) increase in C2 compilation
time since JDK 17
+ JDK-8308452: Extend internal Architecture enum with byte
order and address size
+ JDK-8308479: [s390x] Implement alternative fast-locking scheme
+ JDK-8308592: Framework for CA interoperability testing
+ JDK-8308593: Add KEEPALIVE Extended Socket Options Support
for Windows
+ JDK-8309209: C2 failed "assert(_stack_guard_state ==
stack_guard_reserved_disabled) failed: inconsistent state"
+ JDK-8309305: sun/security/ssl/SSLSocketImpl/
/BlockedAsyncClose.java fails with jtreg test timeout
+ JDK-8309545: Thread.interrupted from virtual thread
needlessly resets interrupt status
+ JDK-8309663: test fails "assert(check_alignment(result))
failed: address not aligned: 0x00000008baadbabe"
+ JDK-8309778: java/nio/file/Files/CopyAndMove.java fails when
using second test directory
+ JDK-8309974: some JVMCI tests fail when VM options include
-XX:+EnableJVMCI
+ JDK-8310239: Add missing cross modifying fence in nmethod
entry barriers
+ JDK-8310512: Cleanup indentation in jfc files
+ JDK-8310596: Utilize existing method
frame::interpreter_frame_monitor_size_in_bytes()
+ JDK-8310982: jdk/internal/util/ArchTest.java fails after
JDK-8308452 failed with Method isARM()
+ JDK-8311261: [AIX] TestAlwaysPreTouchStacks.java fails due to
java.lang.RuntimeException: Did not find expected NMT output
+ JDK-8311514: Incorrect regex in TestMetaSpaceLog.java
+ JDK-8311585: Add JRadioButtonMenuItem to bug8031573.java
+ JDK-8311591: Add SystemModulesPlugin test case that splits
module descriptors with new local variables defined by
DedupSetBuilder
+ JDK-8311630: [s390] Implementation of Foreign Function &
Memory API (Preview)
+ JDK-8311631: When multiple users run tools/jpackage/share/
/LicenseTest.java, Permission denied for writing
/var/tmp/*.files
+ JDK-8311680: Update the release version after forking Oct
CPU23_10
+ JDK-8311681: Update the Jan CPU24_01 release date in master
branch after forking Oct CPU23_10
+ JDK-8311813: C1: Uninitialized PhiResolver::_loop field
+ JDK-8311938: Add default cups include location for configure
on AIX
+ JDK-8312078: [PPC] JcmdScale.java Failing on AIX
+ JDK-8312126: NullPointerException in CertStore.getCRLs after
8297955
+ JDK-8312166: (dc) DatagramChannel's socket adaptor does not
release carrier thread when blocking in receive
+ JDK-8312174: missing JVMTI events from vthreads parked during
JVMTI attach
+ JDK-8312191: ColorConvertOp.filter for the default
destination is too slow
+ JDK-8312433: HttpClient request fails due to connection being
considered idle and closed
+ JDK-8312434: SPECjvm2008/xml.transform with CDS fails with
"can't seal package nu.xom"
+ JDK-8312440: assert(cast != nullptr) failed: must have added
a cast to pin the node
+ JDK-8312466: /bin/nm usage in AIX makes needs -X64 flag
+ JDK-8312467: relax the builddir check in
make/autoconf/basic.m4
+ JDK-8312592: New parentheses warnings after HarfBuzz 7.2.0
update
+ JDK-8312612: handle WideCharToMultiByte return values
+ JDK-8313164: src/java.desktop/windows/native/libawt/windows/
/awt_Robot.cpp GetRGBPixels adjust releasing of resources
+ JDK-8313167: Update to use jtreg 7.3
+ JDK-8313206: PKCS11 tests silently skip execution
+ JDK-8313244: NM flags handling in configure process
+ JDK-8313252: Java_sun_awt_windows_ThemeReader_paintBackground
release resources in early returns
+ JDK-8313322: RISC-V: implement MD5 intrinsic
+ JDK-8313368: (fc) FileChannel.size returns 0 on block special
files
+ JDK-8313575: Refactor PKCS11Test tests
+ JDK-8313616: support loading library members on AIX in
os::dll_load
+ JDK-8313643: Update HarfBuzz to 8.2.2
+ JDK-8313656: assert(!JvmtiExport::can_support_virtual_threads())
with -XX:-DoJVMTIVirtualThreadTransitions
+ JDK-8313756: [BACKOUT] 8308682: Enhance AES performance
+ JDK-8313760: [REDO] Enhance AES performance
+ JDK-8313779: RISC-V: use andn / orn in the MD5 instrinsic
+ JDK-8313781: Add regression tests for large page logging and
user-facing error messages
+ JDK-8313782: Add user-facing warning if THPs are enabled but
cannot be used
+ JDK-8313792: Verify 4th party information in
src/jdk.internal.le/share/legal/jline.md
+ JDK-8313873: java/nio/channels/DatagramChannel/
/SendReceiveMaxSize.java fails on AIX due to small default
RCVBUF size and different IPv6 Header interpretation
+ JDK-8314045: ArithmeticException in GaloisCounterMode
+ JDK-8314094: java/lang/ProcessHandle/InfoTest.java fails on
Windows when run as user with Administrator privileges
+ JDK-8314120: Add tests for FileDescriptor.sync
+ JDK-8314121: test tools/jpackage/share/
/RuntimePackageTest.java#id0 fails on RHEL8
+ JDK-8314191: C2 compilation fails with "bad AD file"
+ JDK-8314226: Series of colon-style fallthrough switch cases
with guards compiled incorrectly
+ JDK-8314242: Update applications/scimark/Scimark.java to
accept VM flags
+ JDK-8314246: javax/swing/JToolBar/4529206/bug4529206.java
fails intermittently on Linux
+ JDK-8314263: Signed jars triggering Logger finder recursion
and StackOverflowError
+ JDK-8314330: java/foreign tests should respect vm flags when
start new processes
+ JDK-8314476: TestJstatdPortAndServer.java failed with
"java.rmi.NoSuchObjectException: no such object in table"
+ JDK-8314495: Update to use jtreg 7.3.1
+ JDK-8314551: More generic way to handshake GC threads with
monitor deflation
+ JDK-8314580: PhaseIdealLoop::transform_long_range_checks
fails with assert "was tested before"
+ JDK-8314632: Intra-case dominance check fails in the presence
of a guard
+ JDK-8314759: VirtualThread.parkNanos timeout adjustment when
pinned should be replaced
+ JDK-8314883: Java_java_util_prefs_FileSystemPreferences_lockFile0
write result errno in missing case
+ JDK-8314935: Shenandoah: Unable to throw OOME on back-to-back
Full GCs
+ JDK-8315026: ProcessHandle implementation listing processes
on AIX should use getprocs64
+ JDK-8315062: [GHA] get-bootjdk action should return the
abolute path
+ JDK-8315082: [REDO] Generational ZGC: Tests crash with
assert(index == 0 || is_power_of_2(index))
+ JDK-8315088: C2: assert(wq.size() - before ==
EMPTY_LOOP_SIZE) failed: expect the EMPTY_LOOP_SIZE nodes of
this body if empty
+ JDK-8315195: RISC-V: Update hwprobe query for new extensions
+ JDK-8315206: RISC-V: hwprobe query is_set return wrong value
+ JDK-8315213: java/lang/ProcessHandle/TreeTest.java test
enhance output of children
+ JDK-8315214: Do not run sun/tools/jhsdb tests concurrently
+ JDK-8315362: NMT: summary diff reports threads count
incorrectly
+ JDK-8315377: C2: assert(u->find_out_with(Op_AddP) == nullptr)
failed: more than 2 chained AddP nodes?
+ JDK-8315383: jlink SystemModulesPlugin incorrectly parses the
options
+ JDK-8315415: OutputAnalyzer.shouldMatchByLine() fails in some
cases
+ JDK-8315437: Enable parallelism in
vmTestbase/nsk/monitoring/stress/classload tests
+ JDK-8315442: Enable parallelism in
vmTestbase/nsk/monitoring/stress/thread tests
+ JDK-8315452: Erroneous AST missing modifiers for partial input
+ JDK-8315499: build using devkit on Linux ppc64le RHEL puts
path to devkit into libsplashscreen
+ JDK-8315545: C1: x86 cmove can use short branches
+ JDK-8315549: CITime misreports code/total nmethod sizes
+ JDK-8315554: C1: Replace "cmp reg, 0" with "test reg, reg" on
x86
+ JDK-8315578: PPC builds are broken after JDK-8304913
+ JDK-8315579: SPARC64 builds are broken after JDK-8304913
+ JDK-8315606: Open source few swing text/html tests
+ JDK-8315612: RISC-V: intrinsic for unsignedMultiplyHigh
+ JDK-8315644: increase timeout of
sun/security/tools/jarsigner/Warning.java
+ JDK-8315651: Stop hiding AIX specific multicast socket errors
via NetworkConfiguration (aix)
+ JDK-8315683: Parallelize
java/util/concurrent/tck/JSR166TestCase.java
+ JDK-8315684: Parallelize
sun/security/util/math/TestIntegerModuloP.java
+ JDK-8315688: Update jdk21u fix version to 21.0.2
+ JDK-8315692: Parallelize
gc/stress/TestStressRSetCoarsening.java test
+ JDK-8315696: SignedLoggerFinderTest.java test failed
+ JDK-8315702: jcmd Thread.dump_to_file slow with millions of
virtual threads
+ JDK-8315706: com/sun/tools/attach/warnings/
/DynamicLoadWarningTest.java real fix for failure on AIX
+ JDK-8315735: VerifyError when switch statement used with
synchronized block
+ JDK-8315751: RandomTestBsi1999 fails often with timeouts on
Linux ppc64le
+ JDK-8315766: Parallelize
gc/stress/TestStressIHOPMultiThread.java test
+ JDK-8315770: serviceability/sa/TestJmapCoreMetaspace.java
should run with -XX:-VerifyDependencies
+ JDK-8315774: Enable parallelism in vmTestbase/gc/g1/unloading
tests
+ JDK-8315863: [GHA] Update checkout action to use v4
+ JDK-8315869: UseHeavyMonitors not used
+ JDK-8315920: C2: "control input must dominate current
control" assert failure
+ JDK-8315931: RISC-V: xxxMaxVectorTestsSmokeTest fails when
using RVV
+ JDK-8315936: Parallelize gc/stress/TestStressG1Humongous.java
test
+ JDK-8315937: Enable parallelism in
vmTestbase/nsk/stress/numeric tests
+ JDK-8315942: Sort platform enums and definitions after
JDK-8304913 follow-ups
+ JDK-8315960: test/jdk/java/io/File/TempDirDoesNotExist.java
leaves test files behind
+ JDK-8315971: ProblemList containers/docker/
/TestMemoryAwareness.java on linux-all
+ JDK-8316003: Update FileChooserSymLinkTest.java to HTML
instructions
+ JDK-8316017: Refactor timeout handler in PassFailJFrame
+ JDK-8316025: Use testUI() method of PassFailJFrame.Builder in
FileChooserSymLinkTest.java
+ JDK-8316030: Update Libpng to 1.6.40
+ JDK-8316031: SSLFlowDelegate should not log from synchronized
block
+ JDK-8316060: test/hotspot/jtreg/runtime/reflect/
/ReflectOutOfMemoryError.java may fail if heap is huge
+ JDK-8316087: Test SignedLoggerFinderTest.java is still failing
+ JDK-8316113: Infinite permission checking loop in java/net/spi/
/InetAddressResolverProvider/RuntimePermissionTest
+ JDK-8316123: ProblemList
serviceability/dcmd/gc/RunFinalizationTest.java on AIX
+ JDK-8316130: Incorrect control in
LibraryCallKit::inline_native_notify_jvmti_funcs
+ JDK-8316142: Enable parallelism in
vmTestbase/nsk/monitoring/stress/lowmem tests
+ JDK-8316156: ByteArrayInputStream.transferTo causes
MaxDirectMemorySize overflow
+ JDK-8316178: Better diagnostic header for CodeBlobs
+ JDK-8316179: Use consistent naming for lightweight locking in
MacroAssembler
+ JDK-8316181: Move the fast locking implementation out of the
.ad files
+ JDK-8316199: Remove sun/tools/jstatd/TestJstatd* tests from
problemlist for Windows.
+ JDK-8316206: Test StretchedFontTest.java fails for Baekmuk
font
+ JDK-8316304: (fs) Add support for
BasicFileAttributes.creationTime() for Linux
+ JDK-8316337: (bf) Concurrency issue in
DirectByteBuffer.Deallocator
+ JDK-8316341: sun/security/pkcs11/PKCS11Test.java needs
adjustment on Linux ppc64le Ubuntu 22
+ JDK-8316387: Exclude more failing multicast tests on AIX
after JDK-8315651
+ JDK-8316396: Endless loop in C2 compilation triggered by
AddNode::IdealIL
+ JDK-8316399: Exclude
java/net/MulticastSocket/Promiscuous.java on AIX
+ JDK-8316400: Exclude jdk/jfr/event/runtime/
/TestResidentSetSizeEvent.java on AIX
+ JDK-8316401: sun/tools/jhsdb/JStackStressTest.java failed
with "InternalError: We should have found a thread that owns
the anonymous lock"
+ JDK-8316411: compiler/compilercontrol/
/TestConflictInlineCommands.java fails intermittent with force
inline by CompileCommand missing
+ JDK-8316414: C2: large byte array clone triggers "failed:
malformed control flow" assertion failure on linux-x86
+ JDK-8316415: Parallelize
sun/security/rsa/SignedObjectChain.java subtests
+ JDK-8316418: containers/docker/TestMemoryWithCgroupV1.java
get OOM killed with Parallel GC
+ JDK-8316436: ContinuationWrapper uses unhandled nullptr oop
+ JDK-8316461: Fix: make test outputs TEST SUCCESS after
unsuccessful exit
+ JDK-8316468: os::write incorrectly handles partial write
+ JDK-8316514: Better diagnostic header for VtableStub
+ JDK-8316540: StoreReproducibilityTest fails on some locales
+ JDK-8316566: RISC-V: Zero extended narrow oop passed to
Atomic::cmpxchg
+ JDK-8316581: Improve performance of Symbol::print_value_on()
+ JDK-8316585: [REDO] runtime/InvocationTests spend a lot of
time on dependency verification
+ JDK-8316645: RISC-V: Remove dependency on libatomic by adding
cmpxchg 1b
+ JDK-8316648: jrt-fs.jar classes not reproducible between
standard and bootcycle builds
+ JDK-8316659: assert(LockingMode != LM_LIGHTWEIGHT || flag ==
CCR0) failed: bad condition register
+ JDK-8316671: sun/security/ssl/SSLSocketImpl/
/SSLSocketCloseHang.java test fails intermittent with Read
timed out
+ JDK-8316679: C2 SuperWord: wrong result, load should not be
moved before store if not comparable
+ JDK-8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java
+ JDK-8316719: C2 compilation still fails with "bad AD file"
+ JDK-8316735: Print LockStack in hs_err files
+ JDK-8316741: BasicStroke.createStrokedShape miter-limits
failing on small shapes
+ JDK-8316743: RISC-V: Change UseVectorizedMismatchIntrinsic
option result to warning
+ JDK-8316746: Top of lock-stack does not match the unlocked
object
+ JDK-8316778: test hprof lib: invalid array element type from
JavaValueArray.elementSize
+ JDK-8316859: RISC-V: Disable detection of V through HWCAP
+ JDK-8316879: RegionMatches1Tests fails if CompactStrings are
disabled after JDK-8302163
+ JDK-8316880: AArch64: "stop: Header is not fast-locked" with
-XX:-UseLSE since JDK-8315880
+ JDK-8316894: make test TEST="jtreg:test/jdk/..." fails on
AIX
+ JDK-8316906: Clarify TLABWasteTargetPercent flag
+ JDK-8316929: Shenandoah: Shenandoah degenerated GC and full
GC need to cleanup old OopMapCache entries
+ JDK-8316933: RISC-V: compiler/vectorapi/
/VectorCastShape128Test.java fails when using RVV
+ JDK-8316935: [s390x] Use consistent naming for lightweight
locking in MacroAssembler
+ JDK-8316958: Add test for unstructured locking
+ JDK-8316967: Correct the scope of vmtimer in
UnregisteredClasses::load_class
+ JDK-8317039: Enable specifying the JDK used to run jtreg
+ JDK-8317136: [AIX] Problem List
runtime/jni/terminatedThread/TestTerminatedThread.java
+ JDK-8317257: RISC-V: llvm build broken
+ JDK-8317262: LockStack::contains(oop) fails
"assert(t->is_Java_thread()) failed: incorrect cast to
JavaThread"
+ JDK-8317294: Classloading throws exceptions over already
pending exceptions
+ JDK-8317327: Remove JT_JAVA dead code in jib-profiles.js
+ JDK-8317331: Solaris build failed with "declaration can not
follow a statement (E_DECLARATION_IN_CODE)"
+ JDK-8317335: Build on windows fails after 8316645
+ JDK-8317336: Assertion error thrown during 'this' escape
analysis
+ JDK-8317340: Windows builds are not reproducible if MS VS
compiler install path differs
+ JDK-8317373: Add Telia Root CA v2
+ JDK-8317374: Add Let's Encrypt ISRG Root X2
+ JDK-8317439: Updating RE Configs for BUILD REQUEST 21.0.2+1
+ JDK-8317507: C2 compilation fails with "Exceeded _node_regs
array"
+ JDK-8317510: Change Windows debug symbol files naming to
avoid losing info when an executable and a library share the
same name
+ JDK-8317581: [s390x] Multiple test failure with LockingMode=2
+ JDK-8317601: Windows build on WSL broken after JDK-8317340
+ JDK-8317603: Improve exception messages thrown by
sun.nio.ch.Net native methods (win)
+ JDK-8317692: jcmd GC.heap_dump performance regression after
JDK-8292818
+ JDK-8317705: ProblemList sun/tools/jstat/jstatLineCountsX.sh
on linux-ppc64le and aix due to JDK-8248691
+ JDK-8317706: Exclude java/awt/Graphics2D/DrawString/
/RotTransText.java on linux
+ JDK-8317711: Exclude gtest/GTestWrapper.java on AIX
+ JDK-8317736: Stream::handleReset locks twice
+ JDK-8317751: ProblemList ConsumeForModalDialogTest.java,
MenuItemActivatedTest.java &
MouseModifiersUnitTest_Standard.java for windows
+ JDK-8317772: NMT: Make peak values available in release builds
+ JDK-8317790: Fix Bug entry for exclusion of
runtime/jni/terminatedThread/TestTerminatedThread.java on AIX
+ JDK-8317803: Exclude java/net/Socket/asyncClose/Race.java on
AIX
+ JDK-8317807: JAVA_FLAGS removed from jtreg running in
JDK-8317039
+ JDK-8317818: Combinatorial explosion during 'this' escape
analysis
+ JDK-8317834: java/lang/Thread/IsAlive.java timed out
+ JDK-8317839: Exclude java/nio/channels/Channels/
/SocketChannelStreams.java on AIX
+ JDK-8317920: JDWP-agent sends broken exception event with
onthrow option
+ JDK-8317959: Check return values of malloc in native
java.base coding
+ JDK-8317964: java/awt/Mouse/MouseModifiersUnitTest/
/MouseModifiersUnitTest_Standard.java fails on macosx-all
after JDK-8317751
+ JDK-8317967: Enhance test/jdk/javax/net/ssl/TLSCommon/
/SSLEngineTestCase.java to handle default cases
+ JDK-8317987: C2 recompilations cause high memory footprint
+ JDK-8318078: ADLC: pass ASSERT and PRODUCT flags
+ JDK-8318089: Class space not marked as such with NMT when CDS
is off
+ JDK-8318137: Change milestone to fcs for all releases
+ JDK-8318144: Match on enum constants with body compiles but
fails with MatchException
+ JDK-8318183: C2: VM may crash after hitting node limit
+ JDK-8318240: [AIX] Cleaners.java test failure
+ JDK-8318415: Adjust describing comment of os_getChildren
after 8315026
+ JDK-8318474: Fix memory reporter for thread_count
+ JDK-8318525: Atomic gtest should run as TEST_VM to access VM
capabilities
+ JDK-8318528: Rename TestUnstructuredLocking test
+ JDK-8318540: make test cannot run .jasm tests directly
+ JDK-8318562: Computational test more than 2x slower when AVX
instructions are used
+ JDK-8318587: refresh libraries cache on AIX in print_vm_info
+ JDK-8318591: avoid leaks in loadlib_aix.cpp reload_table()
+ JDK-8318669: Target OS detection in 'test-prebuilt' makefile
target is incorrect when running on MSYS2
+ JDK-8318705: [macos] ProblemList
java/rmi/registry/multipleRegistries/MultipleRegistries.java
+ JDK-8318736: com/sun/jdi/JdwpOnThrowTest.java failed with
"transport error 202: bind failed: Address already in use"
+ JDK-8318759: Add four DigiCert root certificates
+ JDK-8318889: C2: add bailout after assert Bad graph detected
in build_loop_late
+ JDK-8318895: Deoptimization results in incorrect lightweight
locking stack
+ JDK-8318951: Additional negative value check in JPEG decoding
+ JDK-8318953: RISC-V: Small refactoring for
MacroAssembler::test_bit
+ JDK-8318955: Add ReleaseIntArrayElements in
Java_sun_awt_X11_XlibWrapper_SetBitmapShape XlbWrapper.c to
early return
+ JDK-8318957: enhance agentlib:jdwp help output by info about
allow option
+ JDK-8318961: increase javacserver connection timeout values
and max retry attempts
+ JDK-8318981: compiler/compilercontrol/
/TestConflictInlineCommands.java fails intermittent with
'disallowed by CompileCommand' missing from stdout/stderr
+ JDK-8319104: GtestWrapper crashes with SIGILL in
AsyncLogTest::test_asynclog_raw on AIX opt
+ JDK-8319120: Unbound ScopedValue.get() throws the wrong
exception
+ JDK-8319184: RISC-V: improve MD5 intrinsic
+ JDK-8319187: Add three eMudhra emSign roots
+ JDK-8319195: Move most tier 1 vector API regression tests to
tier 3
+ JDK-8319268: Build failure with GCC8.3.1 after 8313643
+ JDK-8319339: Internal error on spurious markup in a hybrid
snippet
+ JDK-8319436: Proxy.newProxyInstance throws NPE if loader is
null and interface not visible from class loader
+ JDK-8319525: RISC-V: Rename *_riscv64.ad files to *_riscv.ad
under riscv/gc
+ JDK-8319532: jshell - Non-sealed declarations sometimes break
a snippet evaluation
+ JDK-8319542: Fix boundaries of region to be tested with
os::is_readable_range
+ JDK-8319700: [AArch64] C2 compilation fails with "Field too
big for insn"
+ JDK-8319828: runtime/NMT/VirtualAllocCommitMerge.java may
fail if mixing interpreted and compiled native invocations
+ JDK-8319922: libCreationTimeHelper.so fails to link in JDK 21
+ JDK-8319958: test/jdk/java/io/File/libGetXSpace.c does not
compile on Windows 32-bit
+ JDK-8319961: JvmtiEnvBase doesn't zero _ext_event_callbacks
+ JDK-8320001: javac crashes while adding type annotations to
the return type of a constructor
+ JDK-8320053: GHA: Cross-compile gtest code
+ JDK-8320209: VectorMaskGen clobbers rflags on x86_64
+ JDK-8320280: RISC-V: Avoid passing t0 as temp register to
MacroAssembler::lightweight_lock/unlock
+ JDK-8320363: ppc64 TypeEntries::type_unknown logic looks
wrong, missed optimization opportunity
+ JDK-8320597: RSA signature verification fails on signed data
that does not encode params correctly
+ JDK-8320601: ProblemList java/lang/invoke/lambda/
/LambdaFileEncodingSerialization.java on linux-all
+ JDK-8321067: Unlock experimental options in EATests.java
+ JDK-8322883: [BACKOUT] 8225377: type annotations are not
visible to javac plugins across compilation boundaries
+ JDK-8322985: [BACKOUT] 8318562: Computational test more than
2x slower when AVX instructions are used
-------------------------------------------------------------------
Thu Dec 14 13:24:11 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* fips.patch
+ use the system crypto-policies provided configuration file
by default (bsc#1218061)
-------------------------------------------------------------------
Fri Oct 27 05:18:42 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Set priority and make it the preferred JDK
-------------------------------------------------------------------
Wed Oct 25 09:26:09 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream tag jdk-21.0.1+12 (October 2023 CPU)
* Security fixes:
+ JDK-8286503: Enhance security classes
+ JDK-8308204: Enhanced certificate processing
+ JDK-8309966, CVE-2023-22081, bsc#1216374: Enhanced TLS
connections
+ JDK-8312248: Enhanced archival support redux
+ JDK-8314649: Enhanced archival support redux
+ JDK-8317121, CVE-2023-22025, bsc#1216339: vector_masked_load
instruction is moved too early after JDK-8286941
* Other changes:
+ JDK-8240567: MethodTooLargeException thrown while creating a
jlink image
+ JDK-8284772: GHA: Use GCC Major Version Dependencies Only
+ JDK-8293114: JVM should trim the native heap
+ JDK-8296581: Better system proxy support
+ JDK-8297856: Improve handling of Bidi characters
+ JDK-8299658: C1 compilation crashes in
LinearScan::resolve_exception_edge
+ JDK-8302017: Allocate BadPaddingException only if it will be
thrown
+ JDK-8303815: Improve Metaspace test speed
+ JDK-8304954: SegmentedCodeCache fails when using large pages
+ JDK-8307766: Linux: Provide the option to override the timer
slack
+ JDK-8308042: [macos] Developer ID Application Certificate not
picked up by jpackage if it contains UNICODE characters
+ JDK-8308047: java/util/concurrent/ScheduledThreadPoolExecutor/
/BasicCancelTest.java timed out and also had jcmd pipe errors
+ JDK-8308184: Launching java with large number of jars in
classpath with java.protocol.handler.pkgs system property set
can lead to StackOverflowError
+ JDK-8308474: DSA does not reset SecureRandom when initSign is
called again
+ JDK-8308609: java/lang/ScopedValue/StressStackOverflow.java
fails with "-XX:-VMContinuations"
+ JDK-8309032: jpackage does not work for module projects
unless --module-path is specified
+ JDK-8309088: security/infra/java/security/cert/
/CertPathValidator/certification/AmazonCA.java fails
+ JDK-8309214: sun/security/pkcs11/KeyStore/
/CertChainRemoval.java fails after 8301154
+ JDK-8309475: Test java/foreign/TestByteBuffer.java fails: a
problem with msync (aix)
+ JDK-8309502: RISC-V: String.indexOf intrinsic may produce
misaligned memory loads
+ JDK-8309591: Socket.setOption(TCP_QUICKACK) uses wrong level
+ JDK-8309746: Reconfigure check should include
make/conf/version-numbers.conf
+ JDK-8309889: [s390] Missing return statement after calling
jump_to_native_invoker method in
generate_method_handle_dispatch.
+ JDK-8310106: sun.security.ssl.SSLHandshake
.getHandshakeProducer() incorrectly checks handshakeConsumers
+ JDK-8310171: Bump version numbers for 21.0.1
+ JDK-8310211: serviceability/jvmti/thread/GetStackTrace/
/getstacktr03/getstacktr03.java failing
+ JDK-8310233: Fix THP detection on Linux
+ JDK-8310268: RISC-V: misaligned memory access in
String.Compare intrinsic
+ JDK-8310321: make JDKOPT_CHECK_CODESIGN_PARAMS more verbose
+ JDK-8310586: ProblemList java/lang/ScopedValue/
/StressStackOverflow.java#default with virtual threads on
linux-all
+ JDK-8310687: JDK-8303215 is incomplete
+ JDK-8310873: Re-enable locked_create_entry symbol check in
runtime/NMT/CheckForProperDetailStackTrace.java for RISC-V
+ JDK-8311026: Some G1 specific tests do not set -XX:+UseG1GC
+ JDK-8311033: [macos] PrinterJob does not take into account
Sides attribute
+ JDK-8311160: [macOS, Accessibility] VoiceOver: No
announcements on JRadioButtonMenuItem and JCheckBoxMenuItem
+ JDK-8311249: Remove unused MemAllocator::obj_memory_range
+ JDK-8311285: report some fontconfig related environment
variables in hs_err file
+ JDK-8311511: Improve description of NativeLibrary JFR event
+ JDK-8311592: ECKeySizeParameterSpec causes too many
exceptions on third party providers
+ JDK-8311682: Change milestone to fcs for all releases
+ JDK-8311862: RISC-V: small improvements to shift immediate
instructions
+ JDK-8311917: MAP_FAILED definition seems to be obsolete in
src/java.desktop/unix/native/common/awt/fontpath.c
+ JDK-8311921: Inform about MaxExpectedDataSegmentSize in case
of pthread_create failures on AIX
+ JDK-8311923: TestIRMatching.java fails on RISC-V
+ JDK-8311926: java/lang/ScopedValue/StressStackOverflow.java
takes 9mins in tier1
+ JDK-8311955: c++filt is now ibm-llvm-cxxfilt when using xlc17
/ clang on AIX
+ JDK-8311981: Test gc/stringdedup/
/TestStringDeduplicationAgeThreshold.java#ZGenerational timed
out
+ JDK-8312127: FileDescriptor.sync should temporarily increase
parallelism
+ JDK-8312180: (bf) MappedMemoryUtils passes incorrect
arguments to msync (aix)
+ JDK-8312182: THPs cause huge RSS due to thread start timing
issue
+ JDK-8312394: [linux] SIGSEGV if kernel was built without
hugepage support
+ JDK-8312395: Improve assertions in growableArray
+ JDK-8312401: SymbolTable::do_add_if_needed hangs when called
in InstanceKlass::add_initialization_error path with
requesting length exceeds max_symbol_length
+ JDK-8312489: Increase jdk.jar.maxSignatureFileSize default
which is too low for JARs such as WhiteSource/Mend unified
agent jar
+ JDK-8312525: New test runtime/os/
/TestTrimNative.java#trimNative is failing: did not see the
expected RSS reduction
+ JDK-8312535: MidiSystem.getSoundbank() throws unexpected
SecurityException
+ JDK-8312555: Ideographic characters aren't stretched by
AffineTransform.scale(2, 1)
+ JDK-8312573: Failure during CompileOnly parsing leads to
ShouldNotReachHere
+ JDK-8312585: Rename DisableTHPStackMitigation flag to
THPStackMitigation
+ JDK-8312591: GCC 6 build failure after JDK-8280982
+ JDK-8312619: Strange error message when switching over long
+ JDK-8312620: WSL Linux build crashes after JDK-8310233
+ JDK-8312625: Test serviceability/dcmd/vm/TrimLibcHeapTest.java
failed: RSS use increased
+ JDK-8312909: C1 should not inline through interface calls
with non-subtype receiver
+ JDK-8312976: MatchResult produces
StringIndexOutOfBoundsException for groups outside match
+ JDK-8312984: javac may crash on a record pattern with too few
components
+ JDK-8313081: MonitoringSupport_lock should be unconditionally
initialized after 8304074
+ JDK-8313248: C2: setScopedValueCache intrinsic exposes
nullptr pre-values to store barriers
+ JDK-8313262: C2: Sinking node may cause required cast to be
dropped
+ JDK-8313307: java/util/Formatter/Padding.java fails on some
Locales
+ JDK-8313312: Add missing classpath exception copyright header
+ JDK-8313323: javac -g on a java file which uses unnamed
variable leads to ClassFormatError when launching that class
+ JDK-8313402: C1: Incorrect LoadIndexed value numbering
+ JDK-8313428: GHA: Bump GCC versions for July 2023 updates
+ JDK-8313576: GCC 7 reports compiler warning in bundled
freetype 2.13.0
+ JDK-8313602: increase timeout for
jdk/classfile/CorpusTest.java
+ JDK-8313626: C2 crash due to unexpected exception control flow
+ JDK-8313657: com.sun.jndi.ldap.Connection.cleanup does not
close connections on SocketTimeoutErrors
+ JDK-8313676: Amend TestLoadIndexedMismatch test to target
intrinsic directly
+ JDK-8313678: SymbolTable can leak Symbols during cleanup
+ JDK-8313691: use close after failing os::fdopen in vmError
and ciEnv
+ JDK-8313701: GHA: RISC-V should use the official repository
for bootstrap
+ JDK-8313707: GHA: Bootstrap sysroots with --variant=minbase
+ JDK-8313752: InstanceKlassFlags::print_on doesn't print the
flag names
+ JDK-8313765: Invalid CEN header (invalid zip64 extra data
field size)
+ JDK-8313796: AsyncGetCallTrace crash on unreadable
interpreter method pointer
+ JDK-8313874: JNI NewWeakGlobalRef throws exception for null
arg
+ JDK-8313901: [TESTBUG] test/hotspot/jtreg/compiler/codecache/
/CodeCacheFullCountTest.java fails with
java.lang.VirtualMachineError
+ JDK-8313904: [macos] All signing tests which verifies
unsigned app images are failing
+ JDK-8314020: Print instruction blocks in byte units
+ JDK-8314024: SIGSEGV in
PhaseIdealLoop::build_loop_late_post_work due to bad immediate
dominator info
+ JDK-8314063: The socket is not closed in
Connection::createSocket when the handshake failed for LDAP
connection
+ JDK-8314117: RISC-V: Incorrect VMReg encoding in
RISCV64Frame.java
+ JDK-8314118: Update JMH devkit to 1.37
+ JDK-8314139: TEST_BUG: runtime/os/
/THPsInThreadStackPreventionTest.java could fail on machine
with large number of cores
+ JDK-8314144: gc/g1/ihop/TestIHOPStatic.java fails due to
extra concurrent mark with -Xcomp
+ JDK-8314216: Case enumConstant, pattern compilation fails
+ JDK-8314262: GHA: Cut down cross-compilation sysroots deeper
+ JDK-8314423: Multiple patterns without unnamed variables
+ JDK-8314426: runtime/os/TestTrimNative.java is failing on
slow machines
+ JDK-8314501: Shenandoah: sun/tools/jhsdb/heapconfig/
/JMapHeapConfigTest.java fails
+ JDK-8314517: some tests fail in case ipv6 is disabled on the
machine
+ JDK-8314618: RISC-V: -XX:MaxVectorSize does not work as
expected
+ JDK-8314656: GHA: No need for Debian ports keyring
installation after JDK-8313701
+ JDK-8314679: SA fails to properly attach to JVM after having
just detached from a different JVM
+ JDK-8314730: GHA: Drop libfreetype6-dev transitional package
in favor of libfreetype-dev
+ JDK-8314850: SharedRuntime::handle_wrong_method() gets called
too often when resolving Continuation.enter
+ JDK-8314960: Add Certigna Root CA - 2
+ JDK-8315020: The macro definition for LoongArch64 zero build
is not accurate.
+ JDK-8315051: jdk/jfr/jvm/TestGetEventWriter.java fails with
non-JVMCI GCs
+ JDK-8315534: Incorrect warnings about implicit annotation
processing
-------------------------------------------------------------------
Wed Oct 18 05:05:17 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Compiler flags to realign stack on ix86 (bsc#1214790)
-------------------------------------------------------------------
Thu Sep 21 11:14:41 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* reproducible-properties.patch
+ use SOURCE_DATE_EPOCH for timestamp in properties files if
it is set
-------------------------------------------------------------------
Tue Sep 19 10:46:38 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of OpenJDK 21 release
- Highlight of changes to OpenJDK 17 LTS
* Additions
+ HotSpot JVM
JEP-422: Linux/RISC-V Port (19)
° Garbage Collectors
JEP-439: Generational ZGC (21)
° Serviceability
JEP-451: Prepare to Disallow the Dynamic Loading of Agents (21)
+ Language
JEP-441: Pattern Matching for switch (21)
JEP-440: Record Patterns (21)
+ Libraries
JEP-444: Virtual Threads (21)
° Collections
JEP-431: Sequenced Collections (21)
° Cryptography
JEP-452: Key Encapsulation Mechanism API (21)
° I/O
JEP-400: UTF-8 by Default (18)
° Networking
JEP-418: Internet-Address Resolution SPI (18)
JEP-408: Simple Web Server (18)
° Reflection & Method Handles
JEP-416: Reimplement Core Reflection with Method Handles (18)
+ Tools
° JavaDoc
JEP-413: Code Snippets in Java API Documentation (18)
* Preview & Incubating
+ Language
JEP-430: String Templates (Preview) (21)
JEP-445: Unnamed Classes and Instance Main Methods (Preview) (21)
JEP-443: Unnamed Patterns and Variables (Preview) (21)
+ Libraries
JEP-442: Foreign Function & Memory API (Third Preview) (21)
JEP-446: Scoped Values (Preview) (21)
JEP-453: Structured Concurrency (Preview) (21)
JEP-448: Vector API (Sixth Incubator) (21)
* Deprecations
+ HotSpot JVM
JEP-449: Deprecate the Windows 32-bit x86 Port for Removal (21)
+ Libraries
JEP-421: Deprecate Finalization for Removal (18)

1065
java-21-openjdk.spec Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,20 @@
--- a/src/java.base/share/conf/security/java.security
+++ b/src/java.base/share/conf/security/java.security
@@ -307,6 +307,8 @@ keystore.type.compat=true
#
package.access=sun.misc.,\
sun.reflect.,\
+ org.GNOME.Accessibility.,\
+ org.GNOME.Bonobo.,\
#
# List of comma-separated packages that start with or equal this string
@@ -319,6 +321,8 @@ package.access=sun.misc.,\
#
package.definition=sun.misc.,\
sun.reflect.,\
+ org.GNOME.Accessibility.,\
+ org.GNOME.Bonobo.,\
#
# Determines whether this properties file can be appended to

11
jconsole.desktop.in Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=OpenJDK @VERSION@ Monitoring & Management Console
GenericName=OpenJDK Monitoring & Management Console
Comment=Monitor and manage OpenJDK applications
Exec=@JAVA_HOME@/bin/jconsole
Icon=java-@VERSION@
Terminal=false
Type=Application
StartupWMClass=sun-tools-jconsole-JConsole
Categories=Development;Profiling;
Version=1.0

BIN
jdk-21.0.2+13.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,15 @@
--- a/src/java.desktop/share/classes/java/awt/Toolkit.java
+++ b/src/java.desktop/share/classes/java/awt/Toolkit.java
@@ -602,7 +602,11 @@ public abstract class Toolkit {
toolkit = new HeadlessToolkit(toolkit);
}
if (!GraphicsEnvironment.isHeadless()) {
- loadAssistiveTechnologies();
+ try {
+ loadAssistiveTechnologies();
+ } catch (AWTError error) {
+ // ignore silently
+ }
}
}
return toolkit;

11
memory-limits.patch Normal file
View File

@ -0,0 +1,11 @@
--- a/src/hotspot/share/gc/shared/gc_globals.hpp
+++ b/src/hotspot/share/gc/shared/gc_globals.hpp
@@ -596,7 +596,7 @@
"Initial heap size (in bytes); zero means use ergonomics") \
constraint(InitialHeapSizeConstraintFunc,AfterErgo) \
\
- product(size_t, MaxHeapSize, ScaleForWordSize(96*M), \
+ product(size_t, MaxHeapSize, ScaleForWordSize(512*M), \
"Maximum heap size (in bytes)") \
constraint(MaxHeapSizeConstraintFunc,AfterErgo) \
\

View File

@ -0,0 +1,64 @@
--- a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java 2023-04-01 12:03:26.147543172 +0200
+++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/Config.java 2023-04-01 12:03:45.455660866 +0200
@@ -52,6 +52,7 @@
static final int ERR_HALT = 1;
static final int ERR_IGNORE_ALL = 2;
static final int ERR_IGNORE_LIB = 3;
+ static final int ERR_IGNORE_MULTI_INIT = 4;
// same as allowSingleThreadedModules but controlled via a system property
// and applied to all providers. if set to false, no SunPKCS11 instances
@@ -1037,6 +1038,7 @@
handleStartupErrors = switch (val) {
case "ignoreAll" -> ERR_IGNORE_ALL;
case "ignoreMissingLibrary" -> ERR_IGNORE_LIB;
+ case "ignoreMultipleInitialisation" -> ERR_IGNORE_MULTI_INIT;
case "halt" -> ERR_HALT;
default -> throw excToken("Invalid value for handleStartupErrors:");
};
--- a/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java 2023-04-01 12:03:26.147543172 +0200
+++ b/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java 2023-04-01 12:07:19.664979695 +0200
@@ -184,26 +184,37 @@
String nssLibraryDirectory = config.getNssLibraryDirectory();
String nssSecmodDirectory = config.getNssSecmodDirectory();
boolean nssOptimizeSpace = config.getNssOptimizeSpace();
+ int errorHandling = config.getHandleStartupErrors();
if (secmod.isInitialized()) {
if (nssSecmodDirectory != null) {
String s = secmod.getConfigDir();
if ((s != null) &&
(!s.equals(nssSecmodDirectory))) {
- throw new ProviderException("Secmod directory "
- + nssSecmodDirectory
- + " invalid, NSS already initialized with "
- + s);
+ String msg = "Secmod directory " + nssSecmodDirectory
+ + " invalid, NSS already initialized with " + s;
+ if (errorHandling == Config.ERR_IGNORE_MULTI_INIT ||
+ errorHandling == Config.ERR_IGNORE_ALL) {
+ throw new UnsupportedOperationException(msg);
+ } else {
+ throw new ProviderException(msg);
+ }
}
}
if (nssLibraryDirectory != null) {
String s = secmod.getLibDir();
if ((s != null) &&
(!s.equals(nssLibraryDirectory))) {
- throw new ProviderException("NSS library directory "
+ String msg = "NSS library directory "
+ nssLibraryDirectory
+ " invalid, NSS already initialized with "
- + s);
+ + s;
+ if (errorHandling == Config.ERR_IGNORE_MULTI_INIT ||
+ errorHandling == Config.ERR_IGNORE_ALL) {
+ throw new UnsupportedOperationException(msg);
+ } else {
+ throw new ProviderException(msg);
+ }
}
}
} else {

View File

@ -0,0 +1,28 @@
--- a/src/hotspot/cpu/zero/stack_zero.hpp
+++ b/src/hotspot/cpu/zero/stack_zero.hpp
@@ -97,7 +97,7 @@ class ZeroStack {
int shadow_pages_size() const {
return _shadow_pages_size;
}
- int abi_stack_available(Thread *thread) const;
+ ssize_t abi_stack_available(Thread *thread) const;
public:
void overflow_check(int required_words, TRAPS);
--- a/src/hotspot/cpu/zero/stack_zero.inline.hpp
+++ b/src/hotspot/cpu/zero/stack_zero.inline.hpp
@@ -46,11 +46,11 @@ inline void ZeroStack::overflow_check(int required_words, TRAPS) {
// This method returns the amount of ABI stack available for us
// to use under normal circumstances. Note that the returned
// value can be negative.
-inline int ZeroStack::abi_stack_available(Thread *thread) const {
+inline ssize_t ZeroStack::abi_stack_available(Thread *thread) const {
assert(Thread::current() == thread, "should run in the same thread");
- int stack_used = thread->stack_base() - (address) &stack_used
+ ssize_t stack_used = thread->stack_base() - (address) &stack_used
+ (StackOverflow::stack_guard_zone_size() + StackOverflow::stack_shadow_zone_size());
- int stack_free = thread->stack_size() - stack_used;
+ ssize_t stack_free = thread->stack_size() - stack_used;
return stack_free;
}

View File

@ -0,0 +1,11 @@
--- a/src/java.base/share/classes/java/util/Properties.java
+++ b/src/java.base/share/classes/java/util/Properties.java
@@ -955,7 +955,7 @@ public class Properties extends Hashtable<Object,Object> {
if (sysPropVal != null && !sysPropVal.isEmpty()) {
writeComments(bw, sysPropVal);
} else {
- bw.write("#" + new Date());
+ bw.write("#" + (System.getenv("SOURCE_DATE_EPOCH") != null ? new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))) : new Date()));
bw.newLine();
}
}

177
system-pcsclite.patch Normal file
View File

@ -0,0 +1,177 @@
--- a/make/autoconf/lib-bundled.m4
+++ b/make/autoconf/lib-bundled.m4
@@ -41,6 +41,7 @@ AC_DEFUN_ONCE([LIB_SETUP_BUNDLED_LIBS],
LIB_SETUP_ZLIB
LIB_SETUP_LCMS
LIB_SETUP_HARFBUZZ
+ LIB_SETUP_PCSCLITE
])
################################################################################
@@ -304,3 +305,41 @@ AC_DEFUN_ONCE([LIB_SETUP_HARFBUZZ],
AC_SUBST(HARFBUZZ_CFLAGS)
AC_SUBST(HARFBUZZ_LIBS)
])
+
+################################################################################
+# Setup pcsclite
+################################################################################
+AC_DEFUN_ONCE([LIB_SETUP_PCSCLITE],
+[
+ AC_ARG_WITH(pcsclite, [AS_HELP_STRING([--with-pcsclite],
+ [use pcsclite from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
+
+ AC_MSG_CHECKING([for which pcsclite to use])
+
+ # default is bundled
+ DEFAULT_PCSCLITE=bundled
+ # if user didn't specify, use DEFAULT_PCSCLITE
+ if test "x${with_pcsclite}" = "x"; then
+ with_libpng=${DEFAULT_PCSCLITE}
+ fi
+
+ if test "x${with_pcsclite}" = "xbundled"; then
+ USE_EXTERNAL_PCSCLITE=false
+ AC_MSG_RESULT([bundled])
+ elif test "x${with_pcsclite}" = "xsystem"; then
+ PKG_CHECK_MODULES(PCSCLITE, libpcsclite,
+ [ PCSCLITE_FOUND=yes ],
+ [ PCSCLITE_FOUND=no ])
+ if test "x${PCSCLITE_FOUND}" = "xyes"; then
+ USE_EXTERNAL_PCSCLITE=true
+ AC_MSG_RESULT([system])
+ else
+ AC_MSG_RESULT([system not found])
+ AC_MSG_ERROR([--with-pcsclite=system specified, but no pcsclite found!])
+ fi
+ else
+ AC_MSG_ERROR([Invalid value of --with-pcsclite: ${with_pcsclite}, use 'system' or 'bundled'])
+ fi
+
+ AC_SUBST(USE_EXTERNAL_PCSCLITE)
+])
--- a/make/autoconf/spec.gmk.in
+++ b/make/autoconf/spec.gmk.in
@@ -776,6 +776,7 @@ TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
# Build setup
USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
+USE_EXTERNAL_LIBPCSCLITE:=@USE_EXTERNAL_LIBPCSCLITE@
USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
LIBZ_CFLAGS:=@LIBZ_CFLAGS@
LIBZ_LIBS:=@LIBZ_LIBS@
--- a/make/modules/java.smartcardio/Lib.gmk
+++ b/make/modules/java.smartcardio/Lib.gmk
@@ -30,12 +30,12 @@ include LibCommon.gmk
$(eval $(call SetupJdkLibrary, BUILD_LIBJ2PCSC, \
NAME := j2pcsc, \
CFLAGS := $(CFLAGS_JDKLIB), \
- CFLAGS_unix := -D__sun_jdk, \
- EXTRA_HEADER_DIRS := libj2pcsc/MUSCLE, \
+ CFLAGS_unix := -D__sun_jdk -DUSE_SYSTEM_LIBPCSCLITE, \
+ EXTRA_HEADER_DIRS := /usr/include/PCSC, \
OPTIMIZATION := LOW, \
LDFLAGS := $(LDFLAGS_JDKLIB) \
$(call SET_SHARED_LIBRARY_ORIGIN), \
- LIBS_unix := $(LIBDL), \
+ LIBS_unix := -lpcsclite $(LIBDL), \
LIBS_windows := winscard.lib, \
))
--- a/src/java.smartcardio/unix/native/libj2pcsc/pcsc_md.c
+++ b/src/java.smartcardio/unix/native/libj2pcsc/pcsc_md.c
@@ -36,6 +36,7 @@
#include "pcsc_md.h"
+#ifndef USE_SYSTEM_LIBPCSCLITE
void *hModule;
FPTR_SCardEstablishContext scardEstablishContext;
FPTR_SCardConnect scardConnect;
@@ -47,6 +48,7 @@ FPTR_SCardListReaders scardListReaders;
FPTR_SCardBeginTransaction scardBeginTransaction;
FPTR_SCardEndTransaction scardEndTransaction;
FPTR_SCardControl scardControl;
+#endif
/*
* Throws a Java Exception by name
@@ -75,6 +77,7 @@ void throwIOException(JNIEnv *env, const char *msg)
throwByName(env, "java/io/IOException", msg);
}
+#ifndef USE_SYSTEM_LIBPCSCLITE
static void *findFunction(JNIEnv *env, void *hModule, char *functionName) {
void *fAddress = dlsym(hModule, functionName);
if (fAddress == NULL) {
@@ -85,9 +88,11 @@ void *findFunction(JNIEnv *env, void *hModule, char *functionName) {
}
return fAddress;
}
+#endif
JNIEXPORT void JNICALL Java_sun_security_smartcardio_PlatformPCSC_initialize
(JNIEnv *env, jclass thisClass, jstring jLibName) {
+#ifndef USE_SYSTEM_LIBPCSCLITE
const char *libName = (*env)->GetStringUTFChars(env, jLibName, NULL);
if (libName == NULL) {
throwNullPointerException(env, "PCSC library name is null");
@@ -141,4 +146,5 @@ JNIEXPORT void JNICALL Java_sun_security_smartcardio_PlatformPCSC_initialize
#else
scardControl = (FPTR_SCardControl) findFunction(env, hModule, "SCardControl132");
#endif // __APPLE__
+#endif
}
--- a/src/java.smartcardio/unix/native/libj2pcsc/pcsc_md.h
+++ b/src/java.smartcardio/unix/native/libj2pcsc/pcsc_md.h
@@ -23,6 +23,8 @@
* questions.
*/
+#ifndef USE_SYSTEM_LIBPCSCLITE
+
typedef LONG (*FPTR_SCardEstablishContext)(DWORD dwScope,
LPCVOID pvReserved1,
LPCVOID pvReserved2,
@@ -111,3 +113,41 @@ extern FPTR_SCardListReaders scardListReaders;
extern FPTR_SCardBeginTransaction scardBeginTransaction;
extern FPTR_SCardEndTransaction scardEndTransaction;
extern FPTR_SCardControl scardControl;
+
+#else
+
+#define CALL_SCardEstablishContext(dwScope, pvReserved1, pvReserved2, phContext) \
+ (SCardEstablishContext(dwScope, pvReserved1, pvReserved2, phContext))
+
+#define CALL_SCardConnect(hContext, szReader, dwSharedMode, dwPreferredProtocols, phCard, pdwActiveProtocols) \
+ (SCardConnect(hContext, szReader, dwSharedMode, dwPreferredProtocols, phCard, pdwActiveProtocols))
+
+#define CALL_SCardDisconnect(hCard, dwDisposition) \
+ (SCardDisconnect(hCard, dwDisposition))
+
+#define CALL_SCardStatus(hCard, mszReaderNames, pcchReaderLen, pdwState, pdwProtocol, pbAtr, pcbAtrLen) \
+ (SCardStatus(hCard, mszReaderNames, pcchReaderLen, pdwState, pdwProtocol, pbAtr, pcbAtrLen))
+
+#define CALL_SCardGetStatusChange(hContext, dwTimeout, rgReaderStates, cReaders) \
+ (SCardGetStatusChange(hContext, dwTimeout, rgReaderStates, cReaders))
+
+#define CALL_SCardTransmit(hCard, pioSendPci, pbSendBuffer, cbSendLength, \
+ pioRecvPci, pbRecvBuffer, pcbRecvLength) \
+ (SCardTransmit(hCard, pioSendPci, pbSendBuffer, cbSendLength, \
+ pioRecvPci, pbRecvBuffer, pcbRecvLength))
+
+#define CALL_SCardListReaders(hContext, mszGroups, mszReaders, pcchReaders) \
+ (SCardListReaders(hContext, mszGroups, mszReaders, pcchReaders))
+
+#define CALL_SCardBeginTransaction(hCard) \
+ (SCardBeginTransaction(hCard))
+
+#define CALL_SCardEndTransaction(hCard, dwDisposition) \
+ (SCardEndTransaction(hCard, dwDisposition))
+
+#define CALL_SCardControl(hCard, dwControlCode, pbSendBuffer, cbSendLength, \
+ pbRecvBuffer, pcbRecvLength, lpBytesReturned) \
+ (SCardControl(hCard, dwControlCode, pbSendBuffer, cbSendLength, \
+ pbRecvBuffer, pcbRecvLength, lpBytesReturned))
+
+#endif

BIN
systemtap-tapset.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

15
zero-ranges.patch Normal file
View File

@ -0,0 +1,15 @@
--- a/src/hotspot/cpu/zero/globals_zero.hpp
+++ b/src/hotspot/cpu/zero/globals_zero.hpp
@@ -52,9 +52,9 @@ define_pd_global(intx, InitArrayShortSize, 0);
#define DEFAULT_STACK_SHADOW_PAGES (5 LP64_ONLY(+1) DEBUG_ONLY(+3))
#define DEFAULT_STACK_RESERVED_PAGES (0)
-#define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES
-#define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES
-#define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES
+#define MIN_STACK_YELLOW_PAGES 1
+#define MIN_STACK_RED_PAGES 1
+#define MIN_STACK_SHADOW_PAGES 1
#define MIN_STACK_RESERVED_PAGES (0)
define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);