You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/GraalHotSpotVMConfigAccess.java
Copy file name to clipboardExpand all lines: compiler/src/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/HotSpotHashCodeSnippets.java
Copy file name to clipboardExpand all lines: compiler/src/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/HotSpotReplacementsUtil.java
+5-10Lines changed: 5 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -511,18 +511,13 @@ public static int objectMonitorSuccOffset(@InjectedParameter GraalHotSpotVMConfi
511
511
}
512
512
513
513
/**
514
-
* Mask for a biasable, locked or unlocked mark word.
515
-
*
516
-
* <pre>
517
-
* +----------------------------------+-+-+
518
-
* | 1|1|1|
519
-
* +----------------------------------+-+-+
520
-
* </pre>
521
-
*
514
+
* Mask for a biasable, locked or unlocked mark word. It is the least significant 3 bits prior
515
+
* to Java 18 (1 bit for biased locking and 2 bits for stack locking or heavy locking), and 2
516
+
* bits afterwards due to elimination of the biased locking.
Copy file name to clipboardExpand all lines: compiler/src/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/MonitorSnippets.java
if (probability(FREQUENT_PROBABILITY, mark.and(biasedLockMaskInPlace(INJECTED_VMCONFIG)).equal(WordFactory.unsigned(biasedLockPattern(INJECTED_VMCONFIG))))) {
546
+
if (probability(FREQUENT_PROBABILITY, mark.and(lockMaskInPlace(INJECTED_VMCONFIG)).equal(WordFactory.unsigned(biasedLockPattern(INJECTED_VMCONFIG))))) {
0 commit comments