Skip to content

Commit d40875a

Browse files
author
Datadog Syncup Service
committed
Merge branch 'upstream-master'
2 parents 1af0b55 + 4a12f5b commit d40875a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3114
-172
lines changed

make/conf/github-actions.conf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ GTEST_VERSION=1.14.0
2929
JTREG_VERSION=7.4+1
3030

3131
LINUX_X64_BOOT_JDK_EXT=tar.gz
32-
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_linux-x64_bin.tar.gz
33-
LINUX_X64_BOOT_JDK_SHA256=41536f115668308ecf4eba92aaf6acaeb0936225828b741efd83b6173ba82963
32+
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_linux-x64_bin.tar.gz
33+
LINUX_X64_BOOT_JDK_SHA256=08fea92724127c6fa0f2e5ea0b07ff4951ccb1e2f22db3c21eebbd7347152a67
3434

3535
ALPINE_LINUX_X64_BOOT_JDK_EXT=tar.gz
36-
ALPINE_LINUX_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_x64_alpine-linux_hotspot_22.0.2_9.tar.gz
37-
ALPINE_LINUX_X64_BOOT_JDK_SHA256=49f73414824b1a7c268a611225fa4d7ce5e25600201e0f1cd59f94d1040b5264
36+
ALPINE_LINUX_X64_BOOT_JDK_URL=https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_x64_alpine-linux_hotspot_23_37.tar.gz
37+
ALPINE_LINUX_X64_BOOT_JDK_SHA256=bff4c78f30d8d173e622bf2f40c36113df47337fc6d1ee5105ed2459841165aa
3838

3939
MACOS_AARCH64_BOOT_JDK_EXT=tar.gz
40-
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_macos-aarch64_bin.tar.gz
41-
MACOS_AARCH64_BOOT_JDK_SHA256=3dab98730234e1a87aec14bcb8171d2cae101e96ff4eed1dab96abbb08e843fd
40+
MACOS_AARCH64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_macos-aarch64_bin.tar.gz
41+
MACOS_AARCH64_BOOT_JDK_SHA256=9527bf080a74ae6dca51df413aa826f0c011c6048885e4c8ad112172be8815f3
4242

4343
MACOS_X64_BOOT_JDK_EXT=tar.gz
44-
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_macos-x64_bin.tar.gz
45-
MACOS_X64_BOOT_JDK_SHA256=e8b3ec7a7077711223d31156e771f11723cd7af31c2017f1bd2eda20855940fb
44+
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_macos-x64_bin.tar.gz
45+
MACOS_X64_BOOT_JDK_SHA256=5c3a909fd2079d0e376dd43c85c4f7d02d08914866f196480bd47784b2a0121e
4646

4747
WINDOWS_X64_BOOT_JDK_EXT=zip
48-
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_windows-x64_bin.zip
49-
WINDOWS_X64_BOOT_JDK_SHA256=f2a9b9ab944e71a64637fcdc6b13a1188cf02d4eb9ecf71dc927e98b3e45f5dc
48+
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_windows-x64_bin.zip
49+
WINDOWS_X64_BOOT_JDK_SHA256=cba5013874ba50cae543c86fe6423453816c77281e2751a8a9a633d966f1dc04

make/conf/jib-profiles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ var getJibProfilesCommon = function (input, data) {
390390
};
391391
};
392392

393-
common.boot_jdk_version = "22";
394-
common.boot_jdk_build_number = "36";
393+
common.boot_jdk_version = "23";
394+
common.boot_jdk_build_number = "37";
395395
common.boot_jdk_home = input.get("boot_jdk", "install_path") + "/jdk-"
396396
+ common.boot_jdk_version
397397
+ (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");

make/conf/version-numbers.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ DEFAULT_VERSION_DATE=2025-03-18
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=68 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11
40-
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="22 23 24"
40+
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="23 24"
4141
DEFAULT_JDK_SOURCE_TARGET_VERSION=24
4242
DEFAULT_PROMOTED_VERSION_PRE=ea

src/hotspot/cpu/s390/matcher_s390.hpp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2017, 2022 SAP SE. All rights reserved.
2+
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
3+
* Copyright (c) 2017, 2024 SAP SE. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -63,11 +63,16 @@
6363
return true;
6464
}
6565

66-
// Suppress CMOVL. Conditional move available on z/Architecture only from z196 onwards. Not exploited yet.
67-
static int long_cmove_cost() { return ConditionalMoveLimit; }
66+
// Use conditional move (CMOVL)
67+
static int long_cmove_cost() {
68+
// z196/z11 or later hardware support conditional moves
69+
return VM_Version::has_LoadStoreConditional() ? 0 : ConditionalMoveLimit;
70+
}
6871

69-
// Suppress CMOVF. Conditional move available on z/Architecture only from z196 onwards. Not exploited yet.
70-
static int float_cmove_cost() { return ConditionalMoveLimit; }
72+
static int float_cmove_cost() {
73+
// z196/z11 or later hardware support conditional moves
74+
return VM_Version::has_LoadStoreConditional() ? 0 : ConditionalMoveLimit;
75+
}
7176

7277
// Set this as clone_shift_expressions.
7378
static bool narrow_oop_use_complex_address() {

src/hotspot/os/linux/cgroupV2Subsystem_linux.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ class CgroupV2CpuController: public CgroupCpuController {
6464
bool is_read_only() override {
6565
return reader()->is_read_only();
6666
}
67-
const char* subsystem_path() {
67+
const char* subsystem_path() override {
6868
return reader()->subsystem_path();
6969
}
7070
bool needs_hierarchy_adjustment() override {
7171
return reader()->needs_hierarchy_adjustment();
7272
}
73-
void set_subsystem_path(const char* cgroup_path) {
73+
void set_subsystem_path(const char* cgroup_path) override {
7474
reader()->set_subsystem_path(cgroup_path);
7575
}
76-
const char* mount_point() { return reader()->mount_point(); }
76+
const char* mount_point() override { return reader()->mount_point(); }
7777
const char* cgroup_path() override { return reader()->cgroup_path(); }
7878
};
7979

@@ -97,16 +97,16 @@ class CgroupV2MemoryController final: public CgroupMemoryController {
9797
bool is_read_only() override {
9898
return reader()->is_read_only();
9999
}
100-
const char* subsystem_path() {
100+
const char* subsystem_path() override {
101101
return reader()->subsystem_path();
102102
}
103103
bool needs_hierarchy_adjustment() override {
104104
return reader()->needs_hierarchy_adjustment();
105105
}
106-
void set_subsystem_path(const char* cgroup_path) {
106+
void set_subsystem_path(const char* cgroup_path) override {
107107
reader()->set_subsystem_path(cgroup_path);
108108
}
109-
const char* mount_point() { return reader()->mount_point(); }
109+
const char* mount_point() override { return reader()->mount_point(); }
110110
const char* cgroup_path() override { return reader()->cgroup_path(); }
111111
};
112112

src/hotspot/share/gc/g1/g1RemSet.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,10 @@ class G1MergeHeapRootsTask : public WorkerTask {
967967
_merged[G1GCPhaseTimes::MergeRSCards] += increment;
968968
}
969969

970+
void dec_remset_cards(size_t decrement) {
971+
_merged[G1GCPhaseTimes::MergeRSCards] -= decrement;
972+
}
973+
970974
size_t merged(uint i) const { return _merged[i]; }
971975
};
972976

@@ -1091,6 +1095,11 @@ class G1MergeHeapRootsTask : public WorkerTask {
10911095

10921096
G1MergeCardSetStats stats() {
10931097
_merge_card_set_cache.flush();
1098+
// Compensation for the dummy cards that were initially pushed into the
1099+
// card cache.
1100+
// We do not need to compensate for the other counters because the dummy
1101+
// card mark will never update another counter because it is initally "dirty".
1102+
_stats.dec_remset_cards(G1MergeCardSetCache::CacheSize);
10941103
return _stats;
10951104
}
10961105
};

src/hotspot/share/gc/shenandoah/shenandoahSimpleBitMap.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class ShenandoahSimpleBitMap {
8080
bool is_forward_consecutive_ones(idx_t start_idx, idx_t count) const;
8181
bool is_backward_consecutive_ones(idx_t last_idx, idx_t count) const;
8282

83+
static inline uintx tail_mask(uintx bit_number);
84+
8385
public:
8486

8587
inline idx_t aligned_index(idx_t idx) const {

src/hotspot/share/gc/shenandoah/shenandoahSimpleBitMap.inline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "gc/shenandoah/shenandoahSimpleBitMap.hpp"
2929

30-
inline uintx tail_mask(uintx bit_number) {
30+
inline uintx ShenandoahSimpleBitMap::tail_mask(uintx bit_number) {
3131
if (bit_number >= BitsPerWord) {
3232
return -1;
3333
}

src/java.base/share/classes/java/util/zip/ZipEntry.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -564,20 +564,20 @@ void setExtra0(byte[] extra, boolean doZIP64, boolean isLOC) {
564564
// be the magic value and it "accidentally" has some
565565
// bytes in extra match the id.
566566
if (sz >= 16) {
567-
size = get64(extra, off);
568-
csize = get64(extra, off + 8);
567+
size = get64S(extra, off);
568+
csize = get64S(extra, off + 8);
569569
}
570570
} else {
571571
// CEN extra zip64
572572
if (size == ZIP64_MAGICVAL) {
573573
if (off + 8 > len) // invalid zip64 extra
574574
break; // fields, just skip
575-
size = get64(extra, off);
575+
size = get64S(extra, off);
576576
}
577577
if (csize == ZIP64_MAGICVAL) {
578578
if (off + 16 > len) // invalid zip64 extra
579579
break; // fields, just skip
580-
csize = get64(extra, off + 8);
580+
csize = get64S(extra, off + 8);
581581
}
582582
}
583583
}
@@ -588,15 +588,15 @@ void setExtra0(byte[] extra, boolean doZIP64, boolean isLOC) {
588588
int pos = off + 4; // reserved 4 bytes
589589
if (get16(extra, pos) != 0x0001 || get16(extra, pos + 2) != 24)
590590
break;
591-
long wtime = get64(extra, pos + 4);
591+
long wtime = get64S(extra, pos + 4);
592592
if (wtime != WINDOWS_TIME_NOT_AVAILABLE) {
593593
mtime = winTimeToFileTime(wtime);
594594
}
595-
wtime = get64(extra, pos + 12);
595+
wtime = get64S(extra, pos + 12);
596596
if (wtime != WINDOWS_TIME_NOT_AVAILABLE) {
597597
atime = winTimeToFileTime(wtime);
598598
}
599-
wtime = get64(extra, pos + 20);
599+
wtime = get64S(extra, pos + 20);
600600
if (wtime != WINDOWS_TIME_NOT_AVAILABLE) {
601601
ctime = winTimeToFileTime(wtime);
602602
}

src/java.base/share/classes/java/util/zip/ZipError.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,9 +28,12 @@
2828
/**
2929
* Signals that an unrecoverable error has occurred.
3030
*
31+
* @deprecated ZipError is no longer used and is obsolete.
32+
* {@link ZipException} should be used instead.
3133
* @author Dave Bristor
3234
* @since 1.6
3335
*/
36+
@Deprecated(since="24", forRemoval = true)
3437
public class ZipError extends InternalError {
3538
@java.io.Serial
3639
private static final long serialVersionUID = 853973422266861979L;

0 commit comments

Comments
 (0)