Skip to content

Commit 0915cc6

Browse files
committed
[GR-59798] Fix JDK21 compatibility issue after JDK-8341645.
PullRequest: graal/19307
2 parents bc83294 + 681fc9a commit 0915cc6

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/GraalHotSpotVMConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public int threadLastJavaFpOffset() {
390390
public final int unlockedValue = getConstant("markWord::unlocked_value", Integer.class);
391391
public final int monitorValue = getConstant("markWord::monitor_value", Integer.class);
392392
public final int ageMaskInPlace = getConstant("markWord::age_mask_in_place", Integer.class);
393-
public final int unusedMark = getConstant("markWord::marked_value", Integer.class);
393+
public final int unusedMark = getConstant("markWord::marked_value", Integer.class, 3, JDK > 21);
394394
// Identity hash code value when uninitialized.
395395
public final int uninitializedIdentityHashCodeValue = getConstant("markWord::no_hash", Integer.class);
396396

@@ -400,7 +400,6 @@ public int threadLastJavaFpOffset() {
400400
public final int objectMonitorCxq = getFieldOffset("ObjectMonitor::_cxq", Integer.class, "ObjectWaiter*");
401401
public final int objectMonitorEntryList = getFieldOffset("ObjectMonitor::_EntryList", Integer.class, "ObjectWaiter*");
402402
public final int objectMonitorSucc = getFieldOffset("ObjectMonitor::_succ", Integer.class, JDK > 21 ? "int64_t" : "JavaThread*");
403-
public final int objectMonitorStackLocker = getFieldOffset("ObjectMonitor::_stack_locker", Integer.class, "BasicLock*");
404403

405404
public final int contEntry = getFieldOffset("JavaThread::_cont_entry", Integer.class, "ContinuationEntry*", -1, JDK >= 24);
406405
public final int pinCount = getFieldOffset("ContinuationEntry::_pin_count", Integer.class, "uint32_t", -1, JDK >= 24);

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/replacements/HotSpotReplacementsUtil.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,6 @@ public static int objectMonitorSuccOffset(@InjectedParameter GraalHotSpotVMConfi
590590
return config.objectMonitorSucc;
591591
}
592592

593-
@Fold
594-
public static int objectMonitorStackLockerOffset(@InjectedParameter GraalHotSpotVMConfig config) {
595-
return config.objectMonitorStackLocker;
596-
}
597-
598593
/**
599594
* Mask for a biasable, locked or unlocked mark word. It is the least significant 3 bits prior
600595
* to Java 18 (1 bit for biased locking and 2 bits for stack locking or heavy locking), and 2

0 commit comments

Comments
 (0)