Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sapmachine (22) #1502: Integrate public changes of OpenJDK 22.0.2 #1663

Merged
merged 88 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
882978f
8325313: Header format error in TestIntrinsicBailOut after JDK-8317299
TobiHartmann Mar 6, 2024
324d7cc
8327467: Bump version numbers for 22.0.2
Mar 6, 2024
d6fc2b1
8325862: set -XX:+ErrorFileToStderr when executing java in containers…
MBaesken Mar 6, 2024
648a161
8323519: Add applications/ctw/modules to Hotspot tiered testing
shipilev Mar 6, 2024
cebe57d
8321075: RISC-V: UseSystemMemoryBarrier lacking proper OS support
robehn Mar 7, 2024
6ac9326
8327391: Add SipHash attribution file
JesperIRL Mar 7, 2024
cffdef1
8326936: RISC-V: Shenandoah GC crashes due to incorrect atomic memory…
zifeihan Mar 8, 2024
f5cfcbb
8326140: src/jdk.accessibility/windows/native/libjavaaccessbridge/Acc…
MBaesken Mar 8, 2024
6b307d7
8327059: os::Linux::print_proc_sys_info add swappiness information
MBaesken Mar 8, 2024
f510fe8
8326891: Prefer RPATH over RUNPATH for $ORIGIN rpaths in internal JDK…
erikj79 Mar 8, 2024
fd11382
8324834: Use _LARGE_FILES on AIX
MBaesken Mar 8, 2024
b2275aa
8325730: StringBuilder.toString allocation for the empty String
shipilev Mar 11, 2024
244c1d8
8187759: Background not refreshed when painting over a transparent JF…
Renjithkannath Mar 11, 2024
9b52a00
8322943: runtime/CompressedOops/CompressedClassPointers.java fails on…
Mar 11, 2024
2e5c300
8320005: Allow loading of shared objects with .a extension on AIX
Mar 12, 2024
a99aa0e
8322484: 22-b26 Regression in J2dBench-bimg_misc-G1 (and more) on Win…
Mar 12, 2024
0c6f3bd
8324733: [macos14] Problem list tests which fail due to macOS bug des…
Mar 13, 2024
b8fa711
8325432: enhance assert message "relocation addr must be in this sect…
MBaesken Mar 13, 2024
6aa344a
8325743: test/jdk/java/nio/channels/unixdomain/SocketOptions.java enh…
MBaesken Mar 13, 2024
82c3743
8326496: [test] checkHsErrFileContent support printing hserr in erro…
MBaesken Mar 13, 2024
2ec72f9
8312383: Log X509ExtendedKeyManager implementation class name in TLS/…
Mar 18, 2024
6c2eefc
8326529: JFR: Test for CompilerCompile events fails due to time out
roberttoyonaga Mar 18, 2024
afce5e6
8322503: Shenandoah: Clarify gc state usage
Mar 18, 2024
98ea70d
8327040: Problemlist ActionListenerCalledTwiceTest.java test failing …
prsadhuk Mar 20, 2024
5ff2b5d
8325613: CTW: Stale method cleanup requires GC after Sweeper removal
shipilev Mar 21, 2024
c90dd21
8328165: improve assert(idx < _maxlrg) failed: oob
MBaesken Mar 21, 2024
5b3e566
8328524: [x86] StringRepeat.java failure on linux-x86: Could not rese…
GoeLin Mar 22, 2024
089aad7
8328066: WhiteBoxResizeTest failure on linux-x86: Could not reserve e…
GoeLin Mar 22, 2024
14bd76f
8326960: GHA: RISC-V sysroot cannot be debootstrapped due to ongoing …
shipilev Mar 25, 2024
dcca5da
8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gp…
RealCLanger Mar 25, 2024
2c00048
8328812: Update and move siphash license
JesperIRL Mar 25, 2024
ba80d42
8328948: GHA: Restoring sysroot from cache skips the build after JDK-…
shipilev Mar 28, 2024
8888745
8328705: GHA: Cross-compilation jobs do not require build JDK
shipilev Mar 28, 2024
f2e1be5
8326643: JDK server does not send a dummy change_cipher_spec record a…
Apr 2, 2024
39948e5
8324648: Avoid NoSuchMethodError when instantiating NativePRNG
olivergillespie Apr 2, 2024
5cb863d
8324646: Avoid Class.forName in SecureRandom constructor
olivergillespie Apr 2, 2024
e2d6c5e
8328825: Google CAInterop test failures
shipilev Apr 3, 2024
aead789
8319548: Unexpected internal name for Filler array klass causes error…
ChrisHegarty Apr 4, 2024
2374d1e
8328988: [macos14] Problem list LightweightEventTest.java which fails…
Apr 4, 2024
8d7d8a4
8328638: Fallback option for POST-only OCSP requests
shipilev Apr 4, 2024
5d7f7da
8325567: jspawnhelper without args fails with segfault
shipilev Apr 4, 2024
95772e6
8329013: StackOverflowError when starting Apache Tomcat with signed jar
coffeys Apr 4, 2024
083f9d1
8328776: [AIX] remove checked_vmgetinfo, use vmgetinfo directly
MBaesken Apr 5, 2024
8f0f42b
8328709: AIX os::get_summary_cpu_info support Power 10
MBaesken Apr 5, 2024
20d95c5
8327468: Do not restart close if errno is EINTR [macOS/linux]
MBaesken Apr 5, 2024
92d6fa4
8325579: Inconsistent behavior in com.sun.jndi.ldap.Connection::creat…
RealCLanger Apr 5, 2024
3d6bd8e
8328604: remove on_aix() function
MBaesken Apr 9, 2024
22230b3
8326521: JFR: CompilerPhase event test fails on windows 32 bit
roberttoyonaga Apr 9, 2024
98a63a8
8328589: unify os::breakpoint among posix platforms
MBaesken Apr 10, 2024
817cf13
8328702: C2: Crash during parsing because sub type check is not folded
chhagedorn Apr 10, 2024
3b35164
8329545: [s390x] Fix garbage value being passed in Argument Register
Apr 10, 2024
dbaca7a
8325028: (ch) Pipe channels should lazily set socket to non-blocking …
Apr 10, 2024
bcf0d25
8329823: RISC-V: Need to sync CPU features with related JVM flags
zifeihan Apr 11, 2024
64b4949
8328316: Finisher cannot emit if stream is sequential and integrator …
Apr 11, 2024
3d99b8f
8309218: java/util/concurrent/locks/Lock/OOMEInAQS.java still times o…
Apr 11, 2024
11adb6e
8329656: assertion failed in MAP_ARCHIVE_MMAP_FAILURE path: Invalid i…
tstuefe Apr 16, 2024
c45dbbc
8327631: Update IANA Language Subtag Registry to Version 2024-03-07
GoeLin Apr 16, 2024
ae466e2
8323801: <s> tag doesn't strikethrough the text
aivanov-jdk Apr 17, 2024
5968567
8324632: Update Zlib Data Compression Library to Version 1.3.1
Apr 17, 2024
52915be
8329570: G1: Excessive is_obj_dead_cond calls in verification
shipilev Apr 17, 2024
829d047
Merge
Apr 17, 2024
2ae0188
8330242: RISC-V: Simplify and remove CORRECT_COMPILER_ATOMIC_SUPPORT …
zifeihan Apr 18, 2024
0c57256
8327990: [macosx-aarch64] Various tests fail with -XX:+AssertWXAtThre…
reinrich Apr 18, 2024
1188d40
8323782: Race: Thread::interrupt vs. AbstractInterruptibleChannel.begin
reinrich Apr 18, 2024
ac9ca97
8329528: G1 does not update TAMS correctly when dropping retained reg…
Apr 22, 2024
ccb1a3e
8324933: ConcurrentHashTable::statistics_calculate synchronization is…
coffeys Apr 22, 2024
5f333b5
8326106: Write and clear stack trace table outside of safepoint
coffeys Apr 22, 2024
52b43e9
8324874: AArch64: crypto pmull based CRC32/CRC32C intrinsics clobber …
TobiHartmann Apr 22, 2024
bde0fad
8330011: [s390x] update block-comments to make code consistent
offamitkumar Apr 22, 2024
bf8146e
8328744: Parallel: Parallel GC throws OOM before heap is fully expanded
zhengyu123 Apr 22, 2024
a93848c
8295111: dpkg appears to have problems resolving symbolically linked …
Apr 23, 2024
53f758e
8328166: Epsilon: 'EpsilonHeap::allocate_work' misuses the parameter …
shipilev Apr 23, 2024
890e046
8320707: Virtual thread test updates
shipilev Apr 24, 2024
849b720
8328953: JEditorPane.read throws ChangedCharSetException
aivanov-jdk Apr 24, 2024
e66cf81
8305072: Win32ShellFolder2.compareTo is inconsistent
aivanov-jdk Apr 24, 2024
5de1d5c
8323670: A few client tests intermittently throw ConcurrentModificati…
aivanov-jdk Apr 24, 2024
4395278
8327137: Add test for ConcurrentModificationException in BasicDirecto…
aivanov-jdk Apr 24, 2024
71d0fcf
8330156: RISC-V: Range check auipc + signed 12 imm instruction
robehn Apr 29, 2024
0f4bc65
8328168: Epsilon: Premature OOM when allocating object larger than un…
shipilev Apr 29, 2024
5eb11e5
8310513: [s390x] Intrinsify recursive ObjectMonitor locking
offamitkumar Apr 29, 2024
7381b84
8320692: Null icon returned for .exe without custom icon
aivanov-jdk Apr 29, 2024
e6ba0ee
8325179: Race in BasicDirectoryModel.validateFileCache
aivanov-jdk Apr 29, 2024
f08201c
8325095: C2: bailout message broken: ResourceArea allocated string us…
shipilev Apr 29, 2024
b2fbc82
8322962: Upcall stub might go undetected when freezing frames
shipilev Apr 29, 2024
437d655
8324121: SIGFPE in PhaseIdealLoop::extract_long_range_checks
shipilev Apr 29, 2024
bb313b5
8323685: PrintSystemDictionaryAtExit has mutex rank assert
Apr 30, 2024
72d3f61
8326974: ODR violation in macroAssembler_aarch64.cpp
lewurm Apr 30, 2024
1c111f7
Merge branch 'sapmachine22' into merge-jdk-22.0.2
RealCLanger May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/build-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,32 @@ jobs:
debian-arch: arm64
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye
tolerate-sysroot-errors: false
- target-cpu: arm
gnu-arch: arm
debian-arch: armhf
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye
tolerate-sysroot-errors: false
gnu-abi: eabihf
- target-cpu: s390x
gnu-arch: s390x
debian-arch: s390x
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye
tolerate-sysroot-errors: false
- target-cpu: ppc64le
gnu-arch: powerpc64le
debian-arch: ppc64el
debian-repository: https://httpredir.debian.org/debian/
debian-version: bullseye
tolerate-sysroot-errors: false
- target-cpu: riscv64
gnu-arch: riscv64
debian-arch: riscv64
debian-repository: https://httpredir.debian.org/debian/
debian-version: sid
tolerate-sysroot-errors: true

steps:
- name: 'Checkout the JDK source'
Expand All @@ -93,13 +98,6 @@ jobs:
with:
platform: linux-x64

# Use linux-x64 JDK bundle as build JDK
- name: 'Get build JDK'
id: buildjdk
uses: ./.github/actions/get-bundles
with:
platform: linux-x64

- name: 'Get GTest'
id: gtest
uses: ./.github/actions/get-gtest
Expand Down Expand Up @@ -130,6 +128,7 @@ jobs:
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Create sysroot'
id: create-sysroot
run: >
sudo debootstrap
--arch=${{ matrix.debian-arch }}
Expand All @@ -140,6 +139,7 @@ jobs:
${{ matrix.debian-version }}
sysroot
${{ matrix.debian-repository }}
continue-on-error: ${{ matrix.tolerate-sysroot-errors }}
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Prepare sysroot'
Expand All @@ -151,7 +151,12 @@ jobs:
rm -rf sysroot/usr/{sbin,bin,share}
rm -rf sysroot/usr/lib/{apt,gcc,udev,systemd}
rm -rf sysroot/usr/libexec/gcc
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
if: steps.create-sysroot.outcome == 'success' && steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Remove broken sysroot'
run: |
sudo rm -rf sysroot/
if: steps.create-sysroot.outcome != 'success' && steps.get-cached-sysroot.outputs.cache-hit != 'true'

- name: 'Configure'
run: >
Expand All @@ -165,18 +170,19 @@ jobs:
--disable-precompiled-headers
--openjdk-target=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}
--with-sysroot=sysroot
--with-build-jdk=${{ steps.buildjdk.outputs.jdk-path }}
--with-jmod-compress=zip-1
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
echo "Dumping config.log:" &&
cat config.log &&
exit 1)
if: steps.create-sysroot.outcome == 'success' || steps.get-cached-sysroot.outputs.cache-hit == 'true'

- name: 'Build'
id: build
uses: ./.github/actions/do-build
with:
make-target: 'hotspot ${{ inputs.make-arguments }}'
platform: linux-${{ matrix.target-cpu }}
if: steps.create-sysroot.outcome == 'success' || steps.get-cached-sysroot.outputs.cache-hit == 'true'
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ jobs:
gcc-major-version: '10'
configure-arguments: ${{ github.event.inputs.configure-arguments }}
make-arguments: ${{ github.event.inputs.make-arguments }}
# The linux-x64 jdk bundle is used as buildjdk for the cross-compile job
if: needs.select.outputs.linux-x64 == 'true' || needs.select.outputs.linux-cross-compile == 'true'
if: needs.select.outputs.linux-x64 == 'true'

build-linux-x86:
name: linux-x86
Expand Down Expand Up @@ -221,7 +220,6 @@ jobs:
name: linux-cross-compile
needs:
- select
- build-linux-x64
uses: ./.github/workflows/build-cross-compile.yml
with:
gcc-major-version: '10'
Expand Down
2 changes: 1 addition & 1 deletion .jcheck/conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[general]
project=jdk-updates
jbs=JDK
version=22.0.1
version=22.0.2

[checks]
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
Expand Down
12 changes: 9 additions & 3 deletions make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Setup flags for C/C++ compiler
#

###############################################################################
################################################################################
#
# How to compile shared libraries.
#
Expand All @@ -37,7 +37,10 @@ AC_DEFUN([FLAGS_SETUP_SHARED_LIBS],
if test "x$TOOLCHAIN_TYPE" = xgcc; then
# Default works for linux, might work on other platforms as well.
SHARED_LIBRARY_FLAGS='-shared'
SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN[$]1'
# --disable-new-dtags forces use of RPATH instead of RUNPATH for rpaths.
# This protects internal library dependencies within the JDK from being
# overridden using LD_LIBRARY_PATH. See JDK-8326891 for more information.
SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN[$]1 -Wl,--disable-new-dtags'
SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN"
SET_SHARED_LIBRARY_NAME='-Wl,-soname=[$]1'
SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=[$]1'
Expand All @@ -63,6 +66,9 @@ AC_DEFUN([FLAGS_SETUP_SHARED_LIBS],
# Default works for linux, might work on other platforms as well.
SHARED_LIBRARY_FLAGS='-shared'
SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN[$]1'
if test "x$OPENJDK_TARGET_OS" = xlinux; then
SET_EXECUTABLE_ORIGIN="$SET_EXECUTABLE_ORIGIN -Wl,--disable-new-dtags"
fi
SET_SHARED_LIBRARY_NAME='-Wl,-soname=[$]1'
SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=[$]1'

Expand Down Expand Up @@ -431,7 +437,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
CFLAGS_OS_DEF_JVM="-D_ALLBSD_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE"
CFLAGS_OS_DEF_JDK="-D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
elif test "x$OPENJDK_TARGET_OS" = xaix; then
CFLAGS_OS_DEF_JVM="-DAIX"
CFLAGS_OS_DEF_JVM="-DAIX -D_LARGE_FILES"
elif test "x$OPENJDK_TARGET_OS" = xbsd; then
CFLAGS_OS_DEF_JDK="-D_ALLBSD_SOURCE"
elif test "x$OPENJDK_TARGET_OS" = xwindows; then
Expand Down
12 changes: 6 additions & 6 deletions make/conf/github-actions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ GTEST_VERSION=1.14.0
JTREG_VERSION=7.3.1+1

LINUX_X64_BOOT_JDK_EXT=tar.gz
LINUX_X64_BOOT_JDK_URL=https://github.com/SAP/SapMachine/releases/download/sapmachine-22/sapmachine-jdk-22_linux-x64_bin.tar.gz
LINUX_X64_BOOT_JDK_SHA256=42c13834842b64e3a553aaee308b99802db81e48a0b7e0c87bf3a9791ce29d60
LINUX_X64_BOOT_JDK_URL=https://github.com/SAP/SapMachine/releases/download/sapmachine-22.0.1/sapmachine-jdk-22.0.1_linux-x64_bin.tar.gz
LINUX_X64_BOOT_JDK_SHA256=21794bbccd5bcfd4ef40d5a6b7ae7f43aea5311365f7470239e1899012329888

MACOS_X64_BOOT_JDK_EXT=tar.gz
MACOS_X64_BOOT_JDK_URL=https://github.com/SAP/SapMachine/releases/download/sapmachine-22/sapmachine-jdk-22_macos-x64_bin.tar.gz
MACOS_X64_BOOT_JDK_SHA256=63f5c6ecb1aebea19892c740e0bed610a85376b0115566b83d34ded642d19d8a
MACOS_X64_BOOT_JDK_URL=https://github.com/SAP/SapMachine/releases/download/sapmachine-22.0.1/sapmachine-jdk-22.0.1_macos-x64_bin.tar.gz
MACOS_X64_BOOT_JDK_SHA256=99d49029c3fd6afaf8630ddb6444e879b203fe50c868b2e24c6b738330ed9876

WINDOWS_X64_BOOT_JDK_EXT=zip
WINDOWS_X64_BOOT_JDK_URL=https://github.com/SAP/SapMachine/releases/download/sapmachine-22/sapmachine-jdk-22_windows-x64_bin.zip
WINDOWS_X64_BOOT_JDK_SHA256=1f4e8d834ac3af6c49ea3d2260ab6e312175d56a3a98d65a47659bbbce497cb4
WINDOWS_X64_BOOT_JDK_URL=https://github.com/SAP/SapMachine/releases/download/sapmachine-22.0.1/sapmachine-jdk-22.0.1_windows-x64_bin.zip
WINDOWS_X64_BOOT_JDK_SHA256=e0f11b9697f2cf6c8d04fadab1086c8bb5b3f0499c17b7d172dcbca9891f8dd5
8 changes: 4 additions & 4 deletions src/hotspot/cpu/aarch64/compressedKlass_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ static char* reserve_at_eor_compatible_address(size_t size, bool aslr) {
0x7800, 0x7c00, 0x7e00, 0x7f00, 0x7f80, 0x7fc0, 0x7fe0, 0x7ff0, 0x7ff8,
0x7ffc, 0x7ffe, 0x7fff
};
static constexpr int num_immediates = sizeof(immediates) / sizeof(immediates[0]);
const int start_index = aslr ? os::next_random((int)os::javaTimeNanos()) : 0;
static constexpr unsigned num_immediates = sizeof(immediates) / sizeof(immediates[0]);
const unsigned start_index = aslr ? os::next_random((int)os::javaTimeNanos()) : 0;
constexpr int max_tries = 64;
for (int ntry = 0; result == nullptr && ntry < max_tries; ntry ++) {
// As in os::attempt_reserve_memory_between, we alternate between higher and lower
// addresses; this maximizes the chance of early success if part of the address space
// is not accessible (e.g. 39-bit address space).
const int alt_index = (ntry & 1) ? 0 : num_immediates / 2;
const int index = (start_index + ntry + alt_index) % num_immediates;
const unsigned alt_index = (ntry & 1) ? 0 : num_immediates / 2;
const unsigned index = (start_index + ntry + alt_index) % num_immediates;
const uint64_t immediate = ((uint64_t)immediates[index]) << 32;
assert(immediate > 0 && Assembler::operand_valid_for_logical_immediate(/*is32*/false, immediate),
"Invalid immediate %d " UINT64_FORMAT, index, immediate);
Expand Down
Loading
Loading