Skip to content

Commit 98d21ff

Browse files
[GR-49364] Merge in tag jdk-22+18.
PullRequest: labsjdk-ce/17
2 parents bf45cee + 30d91a7 commit 98d21ff

File tree

391 files changed

+9419
-5418
lines changed

Some content is hidden

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

391 files changed

+9419
-5418
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ local contains(str, needle) = std.findSubstr(needle, str) != [];
243243
# Downstream Graal branch to test against. If you change this value to anything but
244244
# "master", you must create an ol-jira issue to change it back to master once the
245245
# next JVMCI release has been made. Add the issue id as a comment here.
246-
local downstream_branch = "master",
246+
local downstream_branch = "me/GR-49364",
247247

248248
local clone_graal(defs) = {
249249
# Checkout the graal-enterprise repo to the "_gate" version of the

make/RunTests.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ ifeq ($(TEST_JOBS), 0)
178178
c = c * $(TEST_JOBS_FACTOR_JDL); \
179179
c = c * $(TEST_JOBS_FACTOR_MACHINE); \
180180
if (c < 1) c = 1; \
181-
printf "%.0f", c; \
181+
c = c + 0.5; \
182+
printf "%d", c; \
182183
}')
183184
endif
184185

make/autoconf/flags-cflags.m4

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -799,15 +799,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
799799
$1_TOOLCHAIN_CFLAGS="${$1_GCC6_CFLAGS}"
800800
801801
$1_WARNING_CFLAGS_JVM="-Wno-format-zero-length -Wtype-limits -Wuninitialized"
802-
elif test "x$TOOLCHAIN_TYPE" = xclang; then
803-
NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
804-
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
805-
PREFIX: $3,
806-
IF_FALSE: [
807-
NO_DELETE_NULL_POINTER_CHECKS_CFLAG=
808-
]
809-
)
810-
$1_TOOLCHAIN_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG}"
811802
fi
812803
813804
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
@@ -852,6 +843,17 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
852843
FILE_MACRO_CFLAGS=
853844
]
854845
)
846+
if test "x$FILE_MACRO_CFLAGS" != x; then
847+
# Add -pathmap for all VS system include paths using Windows
848+
# full Long path name that is generated by the compiler
849+
for ipath in ${$3SYSROOT_CFLAGS}; do
850+
if test "x${ipath:0:2}" == "x-I"; then
851+
ipath_path=${ipath#"-I"}
852+
UTIL_FIXUP_WIN_LONG_PATH(ipath_path)
853+
FILE_MACRO_CFLAGS="$FILE_MACRO_CFLAGS -pathmap:\"$ipath_path\"=vsi"
854+
fi
855+
done
856+
fi
855857
fi
856858
857859
AC_MSG_CHECKING([how to prevent absolute paths in output])
@@ -929,17 +931,12 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
929931
# $2 - Prefix for compiler variables (either BUILD_ or nothing).
930932
AC_DEFUN([FLAGS_SETUP_GCC6_COMPILER_FLAGS],
931933
[
932-
# These flags are required for GCC 6 builds as undefined behavior in OpenJDK code
933-
# runs afoul of the more aggressive versions of these optimizations.
934-
# Notably, value range propagation now assumes that the this pointer of C++
935-
# member functions is non-null.
936-
NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
937-
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
938-
PREFIX: $2, IF_FALSE: [NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""])
934+
# This flag is required for GCC 6 builds as undefined behavior in OpenJDK code
935+
# runs afoul of the more aggressive versions of this optimization.
939936
NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
940937
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$NO_LIFETIME_DSE_CFLAG],
941938
PREFIX: $2, IF_FALSE: [NO_LIFETIME_DSE_CFLAG=""])
942-
$1_GCC6_CFLAGS="${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}"
939+
$1_GCC6_CFLAGS="${NO_LIFETIME_DSE_CFLAG}"
943940
])
944941

945942
AC_DEFUN_ONCE([FLAGS_SETUP_BRANCH_PROTECTION],

make/autoconf/libraries.m4

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ AC_DEFUN([LIB_SETUP_JVM_LIBS],
108108
BASIC_JVM_LIBS_$1="$BASIC_JVM_LIBS_$1 -latomic"
109109
fi
110110
fi
111-
112-
# Because RISC-V only has word-sized atomics, it requires libatomic where
113-
# other common architectures do not, so link libatomic by default.
114-
if test "x$OPENJDK_$1_OS" = xlinux && test "x$OPENJDK_$1_CPU" = xriscv64; then
115-
BASIC_JVM_LIBS_$1="$BASIC_JVM_LIBS_$1 -latomic"
116-
fi
117111
])
118112

119113
################################################################################

make/autoconf/util_paths.m4

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,23 @@ AC_DEFUN([UTIL_FIXUP_PATH],
118118
fi
119119
])
120120

121+
##############################################################################
122+
# Fixup path to be a Windows full long path
123+
AC_DEFUN([UTIL_FIXUP_WIN_LONG_PATH],
124+
[
125+
# Only process if variable expands to non-empty
126+
path="[$]$1"
127+
if test "x$path" != x; then
128+
if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
129+
win_path=$($PATHTOOL -wl "$path")
130+
if test "x$win_path" != "x$path"; then
131+
$1="$win_path"
132+
fi
133+
fi
134+
fi
135+
])
136+
137+
121138
###############################################################################
122139
# Check if the given file is a unix-style or windows-style executable, that is,
123140
# if it expects paths in unix-style or windows-style.

make/conf/github-actions.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ GTEST_VERSION=1.14.0
2929
JTREG_VERSION=7.3.1+1
3030

3131
LINUX_X64_BOOT_JDK_EXT=tar.gz
32-
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_linux-x64_bin.tar.gz
33-
LINUX_X64_BOOT_JDK_SHA256=bb863b2d542976d1ae4b7b81af3e78b1e4247a64644350b552d298d8dc5980dc
32+
LINUX_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_linux-x64_bin.tar.gz
33+
LINUX_X64_BOOT_JDK_SHA256=a30c454a9bef8f46d5f1bf3122830014a8fbe7ac03b5f8729bc3add4b92a1d0a
3434

3535
MACOS_X64_BOOT_JDK_EXT=tar.gz
36-
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_macos-x64_bin.tar.gz
37-
MACOS_X64_BOOT_JDK_SHA256=47cf960d9bb89dbe987535a389f7e26c42de7c984ef5108612d77c81aa8cc6a4
36+
MACOS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_macos-x64_bin.tar.gz
37+
MACOS_X64_BOOT_JDK_SHA256=af32e84c11009f72f783fdcdc9917efc277893988f097e198e2576875d1e88c1
3838

3939
WINDOWS_X64_BOOT_JDK_EXT=zip
40-
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_windows-x64_bin.zip
41-
WINDOWS_X64_BOOT_JDK_SHA256=c92fae5e42b9aecf444a66c8ec563c652f60b1e231dfdd33a4f5a3e3603058fb
40+
WINDOWS_X64_BOOT_JDK_URL=https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_windows-x64_bin.zip
41+
WINDOWS_X64_BOOT_JDK_SHA256=5434faaf029e66e7ce6e75770ca384de476750984a7d2881ef7686894c4b4944

make/conf/jib-profiles.js

Lines changed: 3 additions & 6 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 = "20";
394-
common.boot_jdk_build_number = "36";
393+
common.boot_jdk_version = "21";
394+
common.boot_jdk_build_number = "35";
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" : "");
@@ -945,10 +945,7 @@ var getJibProfilesProfiles = function (input, common, data) {
945945
target_os: input.build_os,
946946
target_cpu: input.build_cpu,
947947
dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
948-
labels: "test",
949-
environment: {
950-
"JT_JAVA": common.boot_jdk_home
951-
}
948+
labels: "test"
952949
}
953950
};
954951
profiles = concatObjects(profiles, testOnlyProfiles);

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=2024-03-19
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=66 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11
40-
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="20 21 22"
40+
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="21 22"
4141
DEFAULT_JDK_SOURCE_TARGET_VERSION=22
4242
DEFAULT_PROMOTED_VERSION_PRE=ea

make/jdk/src/classes/build/tools/cldrconverter/CLDRConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,8 @@ private static void generateWindowsTZMappings() throws Exception {
11841184
Files.createDirectories(Paths.get(DESTINATION_DIR, "windows", "conf"));
11851185
Files.write(Paths.get(DESTINATION_DIR, "windows", "conf", "tzmappings"),
11861186
handlerWinZones.keySet().stream()
1187+
.filter(k -> k.endsWith(":001") ||
1188+
!handlerWinZones.get(k).equals(handlerWinZones.get(k.replaceFirst(":\\w{2,3}$", ":001"))))
11871189
.map(k -> k + ":" + handlerWinZones.get(k) + ":")
11881190
.sorted(new Comparator<String>() {
11891191
public int compare(String t1, String t2) {

make/modules/java.base/Java.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# questions.
2424
#
2525

26-
DISABLED_WARNINGS_java += this-escape
26+
DISABLED_WARNINGS_java += this-escape restricted
2727

2828
DOCLINT += -Xdoclint:all/protected \
2929
'-Xdoclint/package:java.*,javax.*'

0 commit comments

Comments
 (0)