Skip to content

Commit 2749659

Browse files
[GR-50849] Merge in tag jdk-22+27.
PullRequest: labsjdk-ce/41
2 parents 4b4e181 + c36d95b commit 2749659

File tree

1,606 files changed

+37279
-35430
lines changed

Some content is hidden

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

1,606 files changed

+37279
-35430
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ jobs:
6060
- 'jdk/tier1 part 3'
6161
- 'langtools/tier1'
6262
- 'hs/tier1 common'
63-
- 'hs/tier1 compiler'
63+
- 'hs/tier1 compiler part 1'
64+
- 'hs/tier1 compiler part 2'
65+
- 'hs/tier1 compiler part 3'
6466
- 'hs/tier1 gc'
6567
- 'hs/tier1 runtime'
6668
- 'hs/tier1 serviceability'
@@ -83,8 +85,16 @@ jobs:
8385
test-suite: 'test/hotspot/jtreg/:tier1_common'
8486
debug-suffix: -debug
8587

86-
- test-name: 'hs/tier1 compiler'
87-
test-suite: 'test/hotspot/jtreg/:tier1_compiler'
88+
- test-name: 'hs/tier1 compiler part 1'
89+
test-suite: 'test/hotspot/jtreg/:tier1_compiler_1'
90+
debug-suffix: -debug
91+
92+
- test-name: 'hs/tier1 compiler part 2'
93+
test-suite: 'test/hotspot/jtreg/:tier1_compiler_2 test/hotspot/jtreg/:tier1_compiler_not_xcomp'
94+
debug-suffix: -debug
95+
96+
- test-name: 'hs/tier1 compiler part 3'
97+
test-suite: 'test/hotspot/jtreg/:tier1_compiler_3'
8898
debug-suffix: -debug
8999

90100
- test-name: 'hs/tier1 gc'

ci.jsonnet

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ local contains(str, needle) = std.findSubstr(needle, str) != [];
3131
ZLIB_BUNDLING: "system",
3232
MX_PYTHON: "python3.8"
3333
},
34+
packages+: {
35+
cmake: "==3.22.2",
36+
},
3437
},
3538

3639
Windows:: self.OSBase + {
@@ -243,7 +246,7 @@ local contains(str, needle) = std.findSubstr(needle, str) != [];
243246
# Downstream Graal branch to test against. If you change this value to anything but
244247
# "master", you must create an ol-jira issue to change it back to master once the
245248
# next JVMCI release has been made. Add the issue id as a comment here.
246-
local downstream_branch = "labsjdk/automation-11-30-2023-3913",
249+
local downstream_branch = "labsjdk/automation-12-8-2023-8501",
247250

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

make/CompileInterimLangtools.gmk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ define SetupInterimModule
9999
EXCLUDE_FILES := $(TOPDIR)/src/$1/share/classes/module-info.java \
100100
$(TOPDIR)/src/$1/share/classes/javax/tools/ToolProvider.java \
101101
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/Main.java \
102+
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/MemoryContext.java \
103+
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/MemoryModuleFinder.java \
104+
$(TOPDIR)/src/$1/share/classes/com/sun/tools/javac/launcher/SourceLauncher.java \
102105
Standard.java, \
103106
EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim/module-info.java \
104107
$($1.interim_EXTRA_FILES), \

make/autoconf/basic_tools.m4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,17 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS],
390390
391391
if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
392392
UTIL_REQUIRE_PROGS(DSYMUTIL, dsymutil)
393+
AC_MSG_CHECKING([if dsymutil supports --reproducer option])
394+
if $DSYMUTIL --help | $GREP -q '\--reproducer '; then
395+
AC_MSG_RESULT([yes])
396+
# --reproducer option is supported
397+
# set "--reproducer Off" to prevent unnecessary temporary
398+
# directories creation
399+
DSYMUTIL="$DSYMUTIL --reproducer Off"
400+
else
401+
# --reproducer option isn't supported
402+
AC_MSG_RESULT([no])
403+
fi
393404
UTIL_REQUIRE_PROGS(MIG, mig)
394405
UTIL_REQUIRE_PROGS(XATTR, xattr)
395406
UTIL_LOOKUP_PROGS(CODESIGN, codesign)

make/jdk/src/classes/build/tools/module/GenModuleInfoSource.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,11 @@ private void process(Parser parser, boolean extraFile) throws IOException {
473473
if (parser.peekToken() != null) { // must be EOF
474474
throw parser.newError("is malformed");
475475
}
476+
} else if (token.equals("import")) {
477+
nextIdentifier(parser);
478+
skipTokenOrThrow(parser, ";", "missing semicolon");
479+
} else if (token.startsWith("@")) {
480+
continue;
476481
} else {
477482
throw parser.newError("missing keyword");
478483
}

make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java

Lines changed: 204 additions & 95 deletions
Large diffs are not rendered by default.

make/modules/java.base/Java.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ EXCLUDE_FILES += \
3636
$(TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
3737

3838
EXCLUDES += java/lang/doc-files \
39-
jdk/internal/classfile/snippet-files \
40-
jdk/internal/classfile/components/snippet-files
39+
java/lang/classfile/snippet-files \
40+
java/lang/classfile/components/snippet-files
4141

4242
# Exclude BreakIterator classes that are just used in compile process to generate
4343
# data files and shouldn't go in the product

make/modules/jdk.compiler/Gendata.gmk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ CT_MODULES_API_TARGETS := \
4242
$(foreach m, $(CT_MODULES) $(CT_TRANSITIVE_MODULES), \
4343
$(call SetupJavaCompilationApiTarget, $m, $(JDK_OUTPUTDIR)/modules/$m))
4444

45+
#undocumented modules which should also be included in ct.sym:
46+
CT_EXTRA_MODULES := jdk.unsupported
47+
4548
SYMBOL_FILES := $(wildcard $(MODULE_SRC)/share/data/symbols/*)
4649

4750
CT_DATA_DESCRIPTION += $(MODULE_SRC)/share/data/symbols/symbols
@@ -72,6 +75,7 @@ $(SUPPORT_OUTPUTDIR)/symbols/ct.sym: $(COMPILE_CREATE_SYMBOLS) $(SYMBOL_FILES) \
7275
$(RM) -r $(@D)
7376
$(MKDIR) -p $(@D)
7477
$(ECHO) Creating ct.sym classes
78+
$(ECHO) $(CT_MODULES) $(CT_TRANSITIVE_MODULES) $(CT_EXTRA_MODULES) >$(SUPPORT_OUTPUTDIR)/symbols/included-modules
7579
$(BUILD_JAVA_SMALL) \
7680
$(COMPILECREATESYMBOLS_ADD_EXPORTS) \
7781
-classpath $(BUILDTOOLS_OUTPUTDIR)/create_symbols_javac \
@@ -82,7 +86,8 @@ $(SUPPORT_OUTPUTDIR)/symbols/ct.sym: $(COMPILE_CREATE_SYMBOLS) $(SYMBOL_FILES) \
8286
$(SOURCE_DATE_EPOCH) \
8387
$(JDK_SOURCE_TARGET_VERSION) \
8488
"$(VERSION_PRE)" \
85-
$(JDK_OUTPUTDIR)/modules/
89+
$(JDK_OUTPUTDIR)/modules/ \
90+
$(SUPPORT_OUTPUTDIR)/symbols/included-modules
8691
$(TOUCH) $@
8792

8893
# Copy ct.sym to the modules libs dir

make/src/classes/build/tools/jfr/GenerateJfrFiles.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2023, 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,6 +198,7 @@ static class TypeElement {
198198
String period = "";
199199
boolean cutoff;
200200
boolean throttle;
201+
String level = "";
201202
boolean experimental;
202203
boolean internal;
203204
long id;
@@ -222,6 +223,7 @@ public void persist(DataOutputStream pos) throws IOException {
222223
pos.writeUTF(period);
223224
pos.writeBoolean(cutoff);
224225
pos.writeBoolean(throttle);
226+
pos.writeUTF(level);
225227
pos.writeBoolean(experimental);
226228
pos.writeBoolean(internal);
227229
pos.writeLong(id);
@@ -520,6 +522,7 @@ public void startElement(String uri, String localName, String qName, Attributes
520522
currentType.startTime = getBoolean(attributes, "startTime", true);
521523
currentType.period = getString(attributes, "period");
522524
currentType.cutoff = getBoolean(attributes, "cutoff", false);
525+
currentType.level = getString(attributes, "level");
523526
currentType.throttle = getBoolean(attributes, "throttle", false);
524527
currentType.commitState = getString(attributes, "commitState");
525528
currentType.isEvent = "Event".equals(qName);
@@ -651,7 +654,7 @@ private static void printJfrEventControlHpp(Metadata metadata, File outputFile)
651654
out.write("");
652655
out.write("struct jfrNativeEventSetting {");
653656
out.write(" jlong threshold_ticks;");
654-
out.write(" jlong cutoff_ticks;");
657+
out.write(" jlong miscellaneous;");
655658
out.write(" u1 stacktrace;");
656659
out.write(" u1 enabled;");
657660
out.write(" u1 large;");

make/test/BuildMicrobenchmark.gmk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
9898
BIN := $(MICROBENCHMARK_CLASSES), \
9999
JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED \
100100
--add-exports java.base/sun.invoke.util=ALL-UNNAMED \
101-
--add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
102-
--add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
103-
--add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
104-
--add-exports java.base/jdk.internal.classfile.instruction=ALL-UNNAMED \
105-
--add-exports java.base/jdk.internal.classfile.components=ALL-UNNAMED \
106101
--add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED \
107102
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
108103
--add-exports java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \

0 commit comments

Comments
 (0)