Skip to content

Commit d8dcc39

Browse files
Merge tag 'jdk-25+13' into labsjdk/adopt-jdk-25+13-master
Added tag jdk-25+13 for changeset 11a37c8
2 parents 359c1dd + 11a37c8 commit d8dcc39

File tree

804 files changed

+14307
-13754
lines changed

Some content is hidden

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

804 files changed

+14307
-13754
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ NashornProfile.txt
2222
/.cache
2323
/.gdbinit
2424
/.lldbinit
25+
**/core.[0-9]*

make/RunTests.gmk

Lines changed: 73 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -530,21 +530,34 @@ define SetupRunGtestTestBody
530530
$$(call LogWarn, Test report is stored in $$(strip \
531531
$$(subst $$(TOPDIR)/, , $$($1_TEST_RESULTS_DIR))))
532532
$$(if $$(wildcard $$($1_RESULT_FILE)), \
533-
$$(eval $1_TOTAL := $$(shell $$(AWK) '/==========.* tests? from .* \
534-
test (cases?|suites?) ran/ { print $$$$2 }' $$($1_RESULT_FILE))) \
535-
$$(if $$($1_TOTAL), , $$(eval $1_TOTAL := 0)) \
533+
$$(eval $1_RUN := $$(shell $$(AWK) \
534+
'/==========.* tests? from .* test (cases?|suites?) ran/ { print $$$$2 }' \
535+
$$($1_RESULT_FILE))) \
536+
$$(if $$($1_RUN), , $$(eval $1_RUN := 0)) \
536537
$$(eval $1_PASSED := $$(shell $$(AWK) '/\[ PASSED \] .* tests?./ \
537538
{ print $$$$4 }' $$($1_RESULT_FILE))) \
538539
$$(if $$($1_PASSED), , $$(eval $1_PASSED := 0)) \
540+
$$(eval $1_SKIPPED := $$(shell $$(AWK) \
541+
'/YOU HAVE [0-9]+ DISABLED TEST/ { \
542+
if (match($$$$0, /[0-9]+/, arr)) { \
543+
print arr[0]; \
544+
found=1; \
545+
} \
546+
if (!found) { print 0; } \
547+
}' \
548+
$$($1_RESULT_FILE))) \
539549
$$(eval $1_FAILED := $$(shell $$(AWK) '/\[ FAILED \] .* tests?, \
540550
listed below/ { print $$$$4 }' $$($1_RESULT_FILE))) \
541551
$$(if $$($1_FAILED), , $$(eval $1_FAILED := 0)) \
542552
$$(eval $1_ERROR := $$(shell \
543-
$$(EXPR) $$($1_TOTAL) - $$($1_PASSED) - $$($1_FAILED))) \
553+
$$(EXPR) $$($1_RUN) - $$($1_PASSED) - $$($1_FAILED))) \
554+
$$(eval $1_TOTAL := $$(shell \
555+
$$(EXPR) $$($1_RUN) + $$($1_SKIPPED))) \
544556
, \
545557
$$(eval $1_PASSED := 0) \
546558
$$(eval $1_FAILED := 0) \
547559
$$(eval $1_ERROR := 1) \
560+
$$(eval $1_SKIPPED := 0) \
548561
$$(eval $1_TOTAL := 1) \
549562
)
550563

@@ -668,6 +681,7 @@ define SetupRunMicroTestBody
668681
$$(eval $1_ERROR := 1) \
669682
$$(eval $1_TOTAL := 1) \
670683
)
684+
$$(eval $1_SKIPPED := 0)
671685

672686
$1: run-test-$1 parse-test-$1
673687

@@ -1036,23 +1050,64 @@ define SetupRunJtregTestBody
10361050
$$(call LogWarn, Finished running test '$$($1_TEST)')
10371051
$$(call LogWarn, Test report is stored in $$(strip \
10381052
$$(subst $$(TOPDIR)/, , $$($1_TEST_RESULTS_DIR))))
1053+
1054+
# Read jtreg documentation to learn on the test stats categories:
1055+
# https://github.com/openjdk/jtreg/blob/master/src/share/doc/javatest/regtest/faq.md#what-do-all-those-numbers-in-the-test-results-line-mean
1056+
# In jtreg, "skipped:" category accounts for tests that threw jtreg.SkippedException at runtime.
1057+
# At the same time these tests contribute to "passed:" tests.
1058+
# In here we don't want that and so we substract number of "skipped:" from "passed:".
1059+
10391060
$$(if $$(wildcard $$($1_RESULT_FILE)), \
1040-
$$(eval $1_PASSED := $$(shell $$(AWK) '{ gsub(/[,;]/, ""); \
1061+
$$(eval $1_PASSED_AND_RUNTIME_SKIPPED := $$(shell $$(AWK) '{ gsub(/[,;]/, ""); \
10411062
for (i=1; i<=NF; i++) { if ($$$$i == "passed:") \
10421063
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
1043-
$$(if $$($1_PASSED), , $$(eval $1_PASSED := 0)) \
1064+
$$(if $$($1_PASSED_AND_RUNTIME_SKIPPED), , $$(eval $1_PASSED_AND_RUNTIME_SKIPPED := 0)) \
10441065
$$(eval $1_FAILED := $$(shell $$(AWK) '{gsub(/[,;]/, ""); \
10451066
for (i=1; i<=NF; i++) { if ($$$$i == "failed:") \
10461067
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
10471068
$$(if $$($1_FAILED), , $$(eval $1_FAILED := 0)) \
1069+
$$(eval $1_RUNTIME_SKIPPED := $$(shell $$(AWK) '{gsub(/[,;]/, ""); \
1070+
for (i=1; i<=NF; i++) { if ($$$$i == "skipped:") \
1071+
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
1072+
$$(if $$($1_RUNTIME_SKIPPED), , $$(eval $1_RUNTIME_SKIPPED := 0)) \
1073+
$$(eval $1_SKIPPED := $$(shell \
1074+
$$(AWK) \
1075+
'BEGIN { \
1076+
overall_skipped = 0; \
1077+
patterns[1] = "skipped"; \
1078+
patterns[2] = "excluded"; \
1079+
patterns[3] = "not in match-list"; \
1080+
patterns[4] = "did not match keywords"; \
1081+
patterns[5] = "did not meet module requirements"; \
1082+
patterns[6] = "did not meet platform requirements"; \
1083+
patterns[7] = "did not match prior status"; \
1084+
patterns[8] = "did not meet time-limit requirements"; \
1085+
} { \
1086+
split($$$$0, arr, ";"); \
1087+
for (item in arr) { \
1088+
for (p in patterns) { \
1089+
if (match(arr[item], patterns[p] ": [0-9]+")) { \
1090+
overall_skipped += substr(arr[item], RSTART + length(patterns[p]) + 2, RLENGTH); \
1091+
} \
1092+
} \
1093+
} \
1094+
print overall_skipped; \
1095+
}' \
1096+
$$($1_RESULT_FILE) \
1097+
)) \
10481098
$$(eval $1_ERROR := $$(shell $$(AWK) '{gsub(/[,;]/, ""); \
10491099
for (i=1; i<=NF; i++) { if ($$$$i == "error:") \
10501100
print $$$$(i+1) } }' $$($1_RESULT_FILE))) \
10511101
$$(if $$($1_ERROR), , $$(eval $1_ERROR := 0)) \
1102+
\
1103+
$$(eval $1_PASSED := $$(shell \
1104+
$$(EXPR) $$($1_PASSED_AND_RUNTIME_SKIPPED) - $$($1_RUNTIME_SKIPPED))) \
10521105
$$(eval $1_TOTAL := $$(shell \
1053-
$$(EXPR) $$($1_PASSED) + $$($1_FAILED) + $$($1_ERROR))) \
1106+
$$(EXPR) $$($1_PASSED) + $$($1_FAILED) + $$($1_ERROR) + $$($1_SKIPPED))) \
10541107
, \
1055-
$$(eval $1_PASSED := 0) \
1108+
$$(eval $1_PASSED_AND_RUNTIME_SKIPPED := 0) \
1109+
$$(eval $1_RUNTIME_SKIPPED := 0) \
1110+
$$(eval $1_SKIPPED := 0) \
10561111
$$(eval $1_FAILED := 0) \
10571112
$$(eval $1_ERROR := 1) \
10581113
$$(eval $1_TOTAL := 1) \
@@ -1111,8 +1166,6 @@ define SetupRunSpecialTestBody
11111166
|| $$(ECHO) $$$$? > $$($1_EXITCODE) \
11121167
))
11131168

1114-
$1_RESULT_FILE := $$($1_TEST_RESULTS_DIR)/gtest.txt
1115-
11161169
# We can not parse the various "special" tests.
11171170
parse-test-$1: run-test-$1
11181171
$$(call LogWarn, Finished running test '$$($1_TEST)')
@@ -1122,6 +1175,7 @@ define SetupRunSpecialTestBody
11221175
$$(eval $1_PASSED := $$(shell \
11231176
if [ `$(CAT) $$($1_EXITCODE)` = "0" ]; then $(ECHO) 1; else $(ECHO) 0; fi \
11241177
))
1178+
$$(eval $1_SKIPPED := 0)
11251179
$$(eval $1_FAILED := $$(shell \
11261180
if [ `$(CAT) $$($1_EXITCODE)` = "0" ]; then $(ECHO) 0; else $(ECHO) 1; fi \
11271181
))
@@ -1231,8 +1285,8 @@ run-test-report: post-run-test
12311285
$(ECHO) >> $(TEST_SUMMARY) ==============================
12321286
$(ECHO) >> $(TEST_SUMMARY) Test summary
12331287
$(ECHO) >> $(TEST_SUMMARY) ==============================
1234-
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5s %5s %5s %5s %2s\n" " " \
1235-
TEST TOTAL PASS FAIL ERROR " "
1288+
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5s %5s %5s %5s %5s %2s\n" " " \
1289+
TEST TOTAL PASS FAIL ERROR SKIP " "
12361290
$(foreach test, $(TESTS_TO_RUN), \
12371291
$(eval TEST_ID := $(shell $(ECHO) $(strip $(test)) | \
12381292
$(TR) -cs '[a-z][A-Z][0-9]\n' '[_*1000]')) \
@@ -1244,15 +1298,15 @@ run-test-report: post-run-test
12441298
, \
12451299
$(eval TEST_NAME := $(test)) \
12461300
) \
1247-
$(if $(filter $($(TEST_ID)_PASSED), $($(TEST_ID)_TOTAL)), \
1248-
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %2s\n" \
1249-
" " "$(TEST_NAME)" $($(TEST_ID)_TOTAL) $($(TEST_ID)_PASSED) \
1250-
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) " " $(NEWLINE) \
1251-
, \
1252-
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %2s\n" \
1301+
$(if $(filter-out 0, $($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR)), \
1302+
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %5d %2s\n" \
12531303
">>" "$(TEST_NAME)" $($(TEST_ID)_TOTAL) $($(TEST_ID)_PASSED) \
1254-
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) "<<" $(NEWLINE) \
1304+
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) $($(TEST_ID)_SKIPPED) "<<" $(NEWLINE) \
12551305
$(eval TEST_FAILURE := true) \
1306+
, \
1307+
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s %5d %5d %5d %5d %5d %2s\n" \
1308+
" " "$(TEST_NAME)" $($(TEST_ID)_TOTAL) $($(TEST_ID)_PASSED) \
1309+
$($(TEST_ID)_FAILED) $($(TEST_ID)_ERROR) $($(TEST_ID)_SKIPPED) " " $(NEWLINE) \
12561310
) \
12571311
)
12581312
$(ECHO) >> $(TEST_SUMMARY) ==============================

make/autoconf/flags-cflags.m4

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,16 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
482482
else
483483
DEBUG_CFLAGS_JDK="-DDEBUG"
484484
485+
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang ; then
486+
INIT_PATTERN_FLAG="-ftrivial-auto-var-init=pattern"
487+
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$INIT_PATTERN_FLAG],
488+
IF_TRUE: [
489+
DEBUG_CFLAGS_JDK="$DEBUG_CFLAGS_JDK $INIT_PATTERN_FLAG"
490+
DEBUG_CFLAGS_JVM="$INIT_PATTERN_FLAG"
491+
]
492+
)
493+
fi
494+
485495
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
486496
DEBUG_CFLAGS_JVM="-fpic -mcmodel=large"
487497
fi

make/conf/jib-profiles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ var getJibProfiles = function (input) {
207207
// Exclude list to use when Jib creates a source bundle
208208
data.src_bundle_excludes = [
209209
"build", "{,**/}webrev*", "{,**/}.hg", "{,**/}JTwork*", "{,**/}JTreport*",
210-
"{,**/}.git"
210+
"{,**/}.git",
211+
"{,**/}core.[0-9]*"
211212
];
212213
// Include list to use when creating a minimal jib source bundle which
213214
// contains just the jib configuration files.

make/hotspot/lib/CompileGtest.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ $(eval $(call SetupJdkLibrary, BUILD_GTEST_LIBJVM, \
104104
undef stringop-overflow, \
105105
DISABLED_WARNINGS_gcc_test_metaspace_misc.cpp := unused-const-variable, \
106106
DISABLED_WARNINGS_gcc_test_threadCpuLoad.cpp := address, \
107+
DISABLED_WARNINGS_gcc_test_tribool.cpp := uninitialized, \
107108
DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang) \
108109
undef switch format-nonliteral tautological-undefined-compare \
109110
self-assign-overloaded, \

make/hotspot/lib/CompileJvm.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ CFLAGS_VM_VERSION := \
8989
-DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"' \
9090
-DCPU='"$(OPENJDK_TARGET_CPU_VM_VERSION)"' \
9191
-DHOTSPOT_BUILD_TIME='"$(HOTSPOT_BUILD_TIME)"' \
92+
-DJVM_VARIANT='"$(JVM_VARIANT)"' \
9293
#
9394

9495
################################################################################

make/hotspot/lib/JvmFeatures.gmk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,9 @@ ifeq ($(call check-jvm-feature, opt-size), true)
224224
frame_ppc.cpp \
225225
frame_s390.cpp \
226226
frame_x86.cpp \
227-
genCollectedHeap.cpp \
228227
generation.cpp \
229228
growableArray.cpp \
230229
handles.cpp \
231-
hashtable.cpp \
232230
heap.cpp \
233231
icache.cpp \
234232
icache_arm.cpp \
@@ -246,7 +244,6 @@ ifeq ($(call check-jvm-feature, opt-size), true)
246244
linkResolver.cpp \
247245
klass.cpp \
248246
klassVtable.cpp \
249-
markSweep.cpp \
250247
memRegion.cpp \
251248
memoryPool.cpp \
252249
method.cpp \

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2025, 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
@@ -198,7 +198,6 @@ Map<String, Object> getTargetMap() throws Exception {
198198
String[] cldrBundles = getCLDRPath().split(",");
199199

200200
// myMap contains resources for id.
201-
@SuppressWarnings("unchecked")
202201
Map<String, Object> myMap = new HashMap<>();
203202
int index;
204203
for (index = 0; index < cldrBundles.length; index++) {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2025, 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
@@ -1079,7 +1079,6 @@ private String getTarget(String path, String calType, String context, String wid
10791079
}
10801080

10811081
@Override
1082-
@SuppressWarnings("fallthrough")
10831082
public void endElement(String uri, String localName, String qName) throws SAXException {
10841083
assert qName.equals(currentContainer.getqName()) : "current=" + currentContainer.getqName() + ", param=" + qName;
10851084
switch (qName) {

make/modules/java.base/gensrc/GensrcScopedMemoryAccess.gmk

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ define GenerateScopedOp
4242

4343
$1_Type := $2
4444

45+
ifeq ($$($1_Type), Boolean)
46+
$1_type := boolean
47+
$1_BoxType := $$($1_Type)
48+
49+
$1_rawType := $$($1_type)
50+
$1_RawType := $$($1_Type)
51+
$1_RawBoxType := $$($1_BoxType)
52+
53+
$1_ARGS += -KCAS
54+
endif
55+
4556
ifeq ($$($1_Type), Byte)
4657
$1_type := byte
4758
$1_BoxType := $$($1_Type)
@@ -50,6 +61,7 @@ define GenerateScopedOp
5061
$1_RawType := $$($1_Type)
5162
$1_RawBoxType := $$($1_BoxType)
5263

64+
$1_ARGS += -KCAS
5365
$1_ARGS += -Kbyte
5466
endif
5567

@@ -60,6 +72,8 @@ define GenerateScopedOp
6072
$1_rawType := $$($1_type)
6173
$1_RawType := $$($1_Type)
6274
$1_RawBoxType := $$($1_BoxType)
75+
76+
$1_ARGS += -KCAS
6377
$1_ARGS += -KUnaligned
6478
endif
6579

@@ -70,6 +84,8 @@ define GenerateScopedOp
7084
$1_rawType := $$($1_type)
7185
$1_RawType := $$($1_Type)
7286
$1_RawBoxType := $$($1_BoxType)
87+
88+
$1_ARGS += -KCAS
7389
$1_ARGS += -KUnaligned
7490
endif
7591

@@ -82,8 +98,6 @@ define GenerateScopedOp
8298
$1_RawBoxType := $$($1_BoxType)
8399

84100
$1_ARGS += -KCAS
85-
$1_ARGS += -KAtomicAdd
86-
$1_ARGS += -KBitwise
87101
$1_ARGS += -KUnaligned
88102
endif
89103

@@ -96,8 +110,6 @@ define GenerateScopedOp
96110
$1_RawBoxType := $$($1_BoxType)
97111

98112
$1_ARGS += -KCAS
99-
$1_ARGS += -KAtomicAdd
100-
$1_ARGS += -KBitwise
101113
$1_ARGS += -KUnaligned
102114
endif
103115

@@ -133,15 +145,15 @@ define GenerateScopedOp
133145
$1_ARGS += -KBitwise
134146
endif
135147

136-
ifneq ($$(findstring $$($1_Type), Byte Short Char), )
148+
ifneq ($$(findstring $$($1_Type), Boolean Byte Short Char), )
137149
$1_ARGS += -KShorterThanInt
138150
endif
139151
endef
140152

141153
################################################################################
142154
# Setup a rule for generating the ScopedMemoryAccess java class
143155

144-
SCOPE_MEMORY_ACCESS_TYPES := Byte Short Char Int Long Float Double
156+
SCOPE_MEMORY_ACCESS_TYPES := Boolean Byte Short Char Int Long Float Double
145157
$(foreach t, $(SCOPE_MEMORY_ACCESS_TYPES), \
146158
$(eval $(call GenerateScopedOp,BIN_$t,$t)))
147159

0 commit comments

Comments
 (0)