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

[GR-63347] Update labsjdk to 25+15-jvmci-b01. #10909

Merged
merged 34 commits into from
Mar 26, 2025
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d30a873
Automatic merge of master into galahad
OracleLabsAutomation Mar 13, 2025
8c96100
Automatic merge of master into galahad
OracleLabsAutomation Mar 13, 2025
4469bba
Automatic merge of master into galahad
OracleLabsAutomation Mar 13, 2025
0ddbec3
Automatic merge of master into galahad
OracleLabsAutomation Mar 14, 2025
7c7323b
Automatic merge of master into galahad
OracleLabsAutomation Mar 14, 2025
08bf7cb
Automatic merge of master into galahad
OracleLabsAutomation Mar 14, 2025
b15326e
Automatic merge of master into galahad
OracleLabsAutomation Mar 14, 2025
920e28f
Automatic merge of master into galahad
OracleLabsAutomation Mar 14, 2025
a72d181
Automatic merge of master into galahad
OracleLabsAutomation Mar 14, 2025
2293e4e
Automatic merge of master into galahad
OracleLabsAutomation Mar 15, 2025
f1da7fc
Automatic merge of master into galahad
OracleLabsAutomation Mar 15, 2025
d63b1ba
Adapt JDK-8345687: Improve the implementation of SegmentFactories::al…
mur47x111 Dec 9, 2024
457cb00
Automatic merge of master into galahad
OracleLabsAutomation Mar 17, 2025
b6dcb61
Automatic merge of master into galahad
OracleLabsAutomation Mar 17, 2025
fef9d31
Automatic merge of master into galahad
OracleLabsAutomation Mar 18, 2025
1110f1c
Automatic merge of master into galahad
OracleLabsAutomation Mar 18, 2025
95524bf
Automatic merge of master into galahad
OracleLabsAutomation Mar 18, 2025
0cddf64
Automatic merge of master into galahad
OracleLabsAutomation Mar 18, 2025
bbe22b5
Update galahad jdk.
mur47x111 Dec 9, 2024
1d4b683
[JDK-8345785] Adapt JDK-8345687: Improve the implementation of Segmen…
mur47x111 Mar 18, 2025
a866c68
Automatic merge of master into galahad
OracleLabsAutomation Mar 18, 2025
2216acd
Automatic merge of master into galahad
OracleLabsAutomation Mar 18, 2025
ca8a533
Automatic merge of master into galahad
OracleLabsAutomation Mar 19, 2025
fe1a0a5
Automatic merge of master into galahad
OracleLabsAutomation Mar 19, 2025
8cd5f30
Automatic merge of master into galahad
OracleLabsAutomation Mar 19, 2025
97e9eed
Automatic merge of master into galahad
OracleLabsAutomation Mar 19, 2025
756791b
Automatic merge of master into galahad
OracleLabsAutomation Mar 19, 2025
6de1a67
update JVMCI to 25+15-jvmci-b01
OracleLabsAutomation Mar 22, 2025
b6e2aa8
Merge tag 'jdk-25+15' into labsjdk/adopt-25+15-master
jovanstevanovic Mar 24, 2025
81ae438
Update JVMCI version.
jovanstevanovic Mar 24, 2025
4dcba02
Update BasedOnJDKFile locations.
jovanstevanovic Mar 24, 2025
008ec8a
Add missing intrinsics for Math.max/min (JDK-8307513)
mur47x111 Mar 24, 2025
91339a6
deploy labsjdk snapshots
marwan-hallaoui Mar 24, 2025
108949e
Fix style check.
jovanstevanovic Mar 24, 2025
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
16 changes: 8 additions & 8 deletions common.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

"COMMENT.jdks": "When adding or removing JDKs keep in sync with JDKs in ci/common.jsonnet",
"jdks": {
"galahad-jdk": {"name": "jpg-jdk", "version": "25", "build_id": "jdk-25+14-1480", "platformspecific": true, "extrabundles": ["static-libs"]},
"galahad-jdk": {"name": "jpg-jdk", "version": "25", "build_id": "jdk-25+15-1632", "platformspecific": true, "extrabundles": ["static-libs"]},

"oraclejdk17": {"name": "jpg-jdk", "version": "17.0.7", "build_id": "jdk-17.0.7+8", "platformspecific": true, "extrabundles": ["static-libs"]},
"labsjdk-ce-17": {"name": "labsjdk", "version": "ce-17.0.7+4-jvmci-23.1-b02", "platformspecific": true },
@@ -45,13 +45,13 @@

"oraclejdk23": {"name": "jpg-jdk", "version": "23", "build_id": "jdk-23+37", "platformspecific": true, "extrabundles": ["static-libs"]},

"oraclejdk-latest": {"name": "jpg-jdk", "version": "25", "build_id": "jdk-25+14", "platformspecific": true, "extrabundles": ["static-libs"]},
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-25+14-jvmci-b01", "platformspecific": true },
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-25+14-jvmci-b01-debug", "platformspecific": true },
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-25+14-jvmci-b01-sulong", "platformspecific": true },
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-25+14-jvmci-b01", "platformspecific": true },
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-25+14-jvmci-b01-debug", "platformspecific": true },
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-25+14-jvmci-b01-sulong", "platformspecific": true }
"oraclejdk-latest": {"name": "jpg-jdk", "version": "25", "build_id": "jdk-25+15", "platformspecific": true, "extrabundles": ["static-libs"]},
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-25+15-jvmci-b01", "platformspecific": true },
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-25+15-jvmci-b01-debug", "platformspecific": true },
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-25+15-jvmci-b01-sulong", "platformspecific": true },
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-25+15-jvmci-b01", "platformspecific": true },
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-25+15-jvmci-b01-debug", "platformspecific": true },
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-25+15-jvmci-b01-sulong", "platformspecific": true }
},

"eclipse": {
Original file line number Diff line number Diff line change
@@ -56,8 +56,8 @@ public final class JVMCIVersionCheck {
private static final Map<String, Map<String, Version>> JVMCI_MIN_VERSIONS = Map.of(
"21", Map.of(DEFAULT_VENDOR_ENTRY, createLegacyVersion(23, 1, 33)),
"25", Map.of(
"Oracle Corporation", createLabsJDKVersion("25+14", 1),
DEFAULT_VENDOR_ENTRY, createLabsJDKVersion("25+14", 1)));
"Oracle Corporation", createLabsJDKVersion("25+15", 1),
DEFAULT_VENDOR_ENTRY, createLabsJDKVersion("25+15", 1)));
private static final int NA = 0;
/**
* Minimum Java release supported by Graal.
Original file line number Diff line number Diff line change
@@ -111,6 +111,10 @@ public UnimplementedGraalIntrinsics(Architecture arch) {

if (jdk >= 25) {
add(toBeInvestigated,
// JDK-8307513: C2: intrinsify Math.max(long,long) and
// Math.min(long,long)
"java/lang/Math.max(JJ)J",
"java/lang/Math.min(JJ)J",
// JDK-8342103: C2 compiler support for Float16 type and associated
// scalar operations
"jdk/internal/vm/vector/Float16Math.fma(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljdk/internal/vm/vector/Float16Math$TernaryOperator;)Ljava/lang/Object;",
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ private static String decodeString(Pointer buf, int[] stringEnds, int index) {
return CTypeConversion.toJavaString((CCharPointer) buf.add(start), Word.unsigned(length), StandardCharsets.UTF_8);
}

@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+3/src/hotspot/os/posix/attachListener_posix.cpp#L321-L328")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/os/posix/attachListener_posix.cpp#L323-L325")
private static void complete(int socket, int code, String response) {
/* Send the return code. */
byte[] returnCodeData = Integer.toString(code).getBytes(StandardCharsets.UTF_8);
Original file line number Diff line number Diff line change
@@ -54,14 +54,14 @@ public abstract class AttachListenerThread extends Thread {
protected static final int ARG_COUNT_MAX = 3;

@SuppressWarnings("this-escape")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+18/src/hotspot/share/services/attachListener.cpp#L453-L467")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/share/services/attachListener.cpp#L667-L681")
public AttachListenerThread() {
super(PlatformThreads.singleton().systemGroup, "Attach Listener");
this.setDaemon(true);
}

@Override
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+18/src/hotspot/share/services/attachListener.cpp#L377-L436")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/share/services/attachListener.cpp#L585-L650")
public void run() {
try {
while (true) {
@@ -83,7 +83,7 @@ public void run() {
}
}

@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+18/src/hotspot/share/services/attachListener.cpp#L205-L217")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/share/services/attachListener.cpp#L205-L217")
private static void handleJcmd(AttachOperation op) {
try {
/* jcmd only uses the first argument. */
@@ -94,7 +94,7 @@ private static void handleJcmd(AttachOperation op) {
}
}

@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+18/src/hotspot/share/services/diagnosticFramework.cpp#L383-L420")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/share/services/diagnosticFramework.cpp#L382-L418")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+24/src/hotspot/share/services/diagnosticFramework.cpp#L422-L439")
private static String parseAndExecute(String input) throws Throwable {
String[] args = StringUtil.split(input, " ");
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/memory/allocation.inline.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/memory/allStatic.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/nmt/memTag.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/runtime/os.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/share/runtime/os.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/runtime/os.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/runtime/os.inline.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/utilities/checkedCast.hpp")
@@ -85,7 +85,7 @@
// The following annotations are for files in `src/svm`, which are completely customized for SVM
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/logging/log.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/memory/allocation.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+14/src/hotspot/share/runtime/globals.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/share/runtime/globals.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/utilities/debug.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+13/src/hotspot/share/utilities/debug.hpp")
public class ContainerLibrary {
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ public VMSystemPropertiesDCmd() {
}

@Override
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+18/src/hotspot/share/services/attachListener.cpp#L67-L109")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+15/src/hotspot/share/services/attachListener.cpp#L221-L264")
public String execute(DCmdArguments args) throws Throwable {
/* serializePropertiesToByteArray() explicitly returns a ISO_8859_1 encoded byte array. */
byte[] bytes = VMSupport.serializePropertiesToByteArray();
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@
import com.oracle.svm.core.annotate.RecomputeFieldValue.Kind;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import com.oracle.svm.core.annotate.TargetElement;
import com.oracle.svm.core.snippets.KnownIntrinsics;

import jdk.internal.misc.Unsafe;
@@ -68,7 +69,12 @@ public static ClassLoader latestUserDefinedLoader0() {
@Alias @InjectAccessors(DirectMemoryAccessors.class) //
private static long directMemory;
@Alias @InjectAccessors(PageAlignDirectMemoryAccessors.class) //
private static boolean pageAlignDirectMemory;
@TargetElement(onlyWith = JDKLatest.class) //
private static Boolean pageAlignDirectMemory;

@Alias @InjectAccessors(PageAlignDirectMemoryJDK21Accessors.class) //
@TargetElement(name = "pageAlignDirectMemory", onlyWith = JDK21OrEarlier.class) //
private static boolean pageAlignDirectMemoryJDK21;
}

final class DirectMemoryAccessors {
@@ -125,7 +131,7 @@ final class PageAlignDirectMemoryAccessors {
private static boolean initialized;
private static boolean pageAlignDirectMemory;

static boolean getPageAlignDirectMemory() {
static Boolean getPageAlignDirectMemory() {
if (!initialized) {
initialize();
}
@@ -140,3 +146,9 @@ private static void initialize() {
initialized = true;
}
}

final class PageAlignDirectMemoryJDK21Accessors {
static boolean getPageAlignDirectMemory() {
return PageAlignDirectMemoryAccessors.getPageAlignDirectMemory();
}
}
Loading
Oops, something went wrong.