Skip to content

[GR-65447] Update labsjdk to 25+25-jvmci-b01 #11300

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

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
14689eb
Automatic merge of master into galahad
OracleLabsAutomation May 25, 2025
7f46d2d
Automatic merge of master into galahad
OracleLabsAutomation May 26, 2025
bc70848
Automatic merge of master into galahad
OracleLabsAutomation May 27, 2025
d6e1a1e
Automatic merge of master into galahad
OracleLabsAutomation May 27, 2025
531ebe2
Automatic merge of master into galahad
OracleLabsAutomation May 27, 2025
109be6d
Automatic merge of master into galahad
OracleLabsAutomation May 27, 2025
32f7a90
Automatic merge of master into galahad
OracleLabsAutomation May 27, 2025
1d1ce74
Automatic merge of master into galahad
OracleLabsAutomation May 27, 2025
2f1df1c
Automatic merge of master into galahad
OracleLabsAutomation May 28, 2025
29d9139
Automatic merge of master into galahad
OracleLabsAutomation May 28, 2025
5b992ef
Automatic merge of master into galahad
OracleLabsAutomation May 28, 2025
4beeed1
Automatic merge of master into galahad
OracleLabsAutomation May 29, 2025
caab18d
Automatic merge of master into galahad
OracleLabsAutomation May 29, 2025
2fac056
Automatic merge of master into galahad
OracleLabsAutomation May 29, 2025
9a41965
Automatic merge of master into galahad
OracleLabsAutomation May 29, 2025
541167e
Fix Libgraal build failure after GR-43908
mur47x111 May 29, 2025
d4f2d18
Update galahad jdk
mur47x111 May 29, 2025
9dbbc99
update JVMCI to 25+25-jvmci-b01
OracleLabsAutomation May 29, 2025
e4a88a6
Automatic merge of master into galahad
OracleLabsAutomation May 29, 2025
2c27fa0
[JDK-8358082] Adapt JDK-8357581: [JVMCI] Add HotSpotProfilingInfo
mur47x111 May 29, 2025
613330f
compiler: update JVMCIVersionCheck
zapster May 30, 2025
2a5ef27
Merge with galahad branch
zapster May 30, 2025
b94dd20
Merge with master
zapster May 30, 2025
32e596a
sdk: bump mx version
zapster May 30, 2025
3d08b5a
svm: review @BasedOnJDKFile changes
zapster May 30, 2025
2a9e02b
svm: adopt "JDK-8352251: Implement JEP 518: JFR Cooperative Sampling"
zapster May 30, 2025
a24ee1a
deploy labsjdk snapshots
marwan-hallaoui May 31, 2025
c2ffd2d
Merge with master
zapster Jun 2, 2025
45487df
svm: adopt "JDK-8356372: JVMTI heap sampling not working properly wit…
zapster Jun 2, 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
Expand Up @@ -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+24-2970", "platformspecific": true, "extrabundles": ["static-libs"]},
"galahad-jdk": {"name": "jpg-jdk", "version": "25", "build_id": "jdk-25+26-3156", "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 },
Expand Down Expand Up @@ -45,13 +45,13 @@

"oraclejdk24": {"name": "jpg-jdk", "version": "24", "build_id": "jdk-24.0.1+9", "platformspecific": true, "extrabundles": ["static-libs"]},

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

"eclipse": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -33,6 +33,7 @@
import jdk.graal.compiler.core.common.LibGraalSupport;
import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime;
import jdk.vm.ci.hotspot.HotSpotObjectConstantScope;
import jdk.vm.ci.hotspot.HotSpotProfilingInfo;
import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
import jdk.vm.ci.hotspot.HotSpotSpeculationLog;
import jdk.vm.ci.hotspot.VMIntrinsicMethod;
Expand All @@ -48,9 +49,6 @@
public class HotSpotGraalServices {

private static final Method methodGetOopMapAt;
private static final Class<?> hotspotProfilingInfoClass;
private static final Method getDecompileCountMethod;
private static final Field methodDataField;

static {
Method getOopMapAt = null;
Expand All @@ -61,18 +59,6 @@ public class HotSpotGraalServices {
}

methodGetOopMapAt = getOopMapAt;

try {
@SuppressWarnings("unchecked")
Class<?> hotspotMethodData = Class.forName("jdk.vm.ci.hotspot.HotSpotMethodData");
hotspotProfilingInfoClass = Class.forName("jdk.vm.ci.hotspot.HotSpotProfilingInfo");
methodDataField = hotspotProfilingInfoClass.getDeclaredField("methodData");
methodDataField.setAccessible(true);
getDecompileCountMethod = hotspotMethodData.getDeclaredMethod("getDecompileCount");
getDecompileCountMethod.setAccessible(true);
} catch (ClassNotFoundException | NoSuchMethodException | NoSuchFieldException e) {
throw new InternalError("decompile count isn't available", e);
}
}

/**
Expand Down Expand Up @@ -108,13 +94,8 @@ public static BitSet getOopMapAt(ResolvedJavaMethod method, int bci) {
*/
public static int getDecompileCount(ResolvedJavaMethod method) {
ProfilingInfo info = method.getProfilingInfo();
if (hotspotProfilingInfoClass.isAssignableFrom(info.getClass())) {
try {
Object methodData = methodDataField.get(info);
return (int) getDecompileCountMethod.invoke(methodData);
} catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(info.toString(), e);
}
if (info instanceof HotSpotProfilingInfo hotSpotProfilingInfo) {
return hotSpotProfilingInfo.getDecompileCount();
}
return -1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public final class JVMCIVersionCheck {
*/
private static final Map<String, Map<String, Version>> JVMCI_MIN_VERSIONS = Map.of(
"25", Map.of(
"Oracle Corporation", createLabsJDKVersion("25+24", 1),
DEFAULT_VENDOR_ENTRY, createLabsJDKVersion("25+24", 1)));
"Oracle Corporation", createLabsJDKVersion("25+25", 1),
DEFAULT_VENDOR_ENTRY, createLabsJDKVersion("25+25", 1)));
private static final int NA = 0;
/**
* Minimum Java release supported by Graal.
Expand Down
2 changes: 1 addition & 1 deletion sdk/mx.sdk/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# SOFTWARE.
#
suite = {
"mxversion": "7.49.0",
"mxversion": "7.54.3",
"name" : "sdk",
"version" : "25.0.0",
"release" : False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+7/src/hotspot/share/gc/shared/adaptiveSizePolicy.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+20/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+12/src/hotspot/share/gc/parallel/psParallelCompact.cpp#L963-L1180")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+6/src/hotspot/share/gc/parallel/psScavenge.cpp#L321-L637")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/gc/parallel/psParallelCompact.cpp#L964-L1181")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/gc/parallel/psScavenge.cpp#L319-L635")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+20/src/hotspot/share/gc/shared/gc_globals.hpp#L303-L407")
class AdaptiveCollectionPolicy extends AbstractCollectionPolicy {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private static Pointer allocateRawMemory(UnsignedWord size, BooleanPointer alloc
return allocateRawMemoryOutsideTlab(size, allocatedOutsideTlab);
}

@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+8/src/hotspot/share/gc/shared/memAllocator.cpp#L256-L318")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/gc/shared/memAllocator.cpp#L257-L329")
@Uninterruptible(reason = "Holds uninitialized memory.")
private static Pointer allocateRawMemoryInTlabSlow(UnsignedWord size) {
ThreadLocalAllocation.Descriptor tlab = getTlab();
Expand Down Expand Up @@ -416,7 +416,7 @@ private static Pointer allocateRawMemoryInTlabSlow(UnsignedWord size) {
return memory;
}

@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-23-ga/src/hotspot/share/gc/shared/memAllocator.cpp#L240-L251")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/gc/shared/memAllocator.cpp#L239-L251")
@Uninterruptible(reason = "Holds uninitialized memory.")
private static Pointer allocateRawMemoryOutsideTlab(UnsignedWord size, BooleanPointer allocatedOutsideTlab) {
allocatedOutsideTlab.write(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ static void fillTlab(Pointer start, Pointer top, WordPointer newSize) {
refillWasteLimit.set(initialRefillWasteLimit());
}

@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-23-ga/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp#L150-L153")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp#L143-L145")
@Uninterruptible(reason = "Accesses TLAB")
static void retireTlabBeforeAllocation() {
long availableTlabMemory = availableTlabMemory(getTlab()).rawValue();
refillWaste.set(refillWaste.get() + UninterruptibleUtils.NumUtil.safeToInt(availableTlabMemory));
retireCurrentTlab(CurrentIsolate.getCurrentThread(), false);
}

@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-23-ga/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp#L137-L148")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp#L131-L141")
@Uninterruptible(reason = "Accesses TLAB")
private static void retireCurrentTlab(IsolateThread thread, boolean calculateStats) {
ThreadLocalAllocation.Descriptor tlab = getTlab(thread);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/os/linux/os_linux.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/os/linux/os_linux.inline.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/os/posix/include/jvm_md.h")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+21/src/hotspot/os/posix/os_posix.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+21/src/hotspot/os/posix/os_posix.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/os/posix/os_posix.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/os/posix/os_posix.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/os/posix/os_posix.inline.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+22/src/hotspot/share/memory/allocation.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+21/src/hotspot/share/memory/allocation.inline.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/share/memory/allStatic.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/share/nmt/memTag.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+22/src/hotspot/share/runtime/os.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+21/src/hotspot/share/runtime/os.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/runtime/os.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/share/runtime/os.inline.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/share/utilities/checkedCast.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+22/src/hotspot/share/utilities/compilerWarnings_gcc.hpp")
Expand All @@ -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+18/src/hotspot/share/logging/log.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+23/src/hotspot/share/memory/allocation.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+24/src/hotspot/share/runtime/globals.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/hotspot/share/runtime/globals.hpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+21/src/hotspot/share/utilities/debug.cpp")
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+18/src/hotspot/share/utilities/debug.hpp")
public class ContainerLibrary {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@
*/
package com.oracle.svm.core.jfr.logging;

import com.oracle.svm.core.util.BasedOnJDKFile;

/**
* This enum contains all log tags that are in at least one {@link jdk.jfr.internal.LogTag}. This
* class is necessary because {@link jdk.jfr.internal.LogTag} is an enum of log tag sets, and does
* not provide the individual log tags.
*/
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+25/src/jdk.jfr/share/classes/jdk/jfr/internal/LogTag.java")
enum JfrLogTag {
JFR,
SYSTEM,
Expand All @@ -41,6 +44,7 @@ enum JfrLogTag {
STREAMING,
THROTTLE,
PERIODIC,
SAMPLING,
DCMD,
START
}