Skip to content

Commit 4a01817

Browse files
committed
Enable lock ordering verification in release build.
1 parent 88968f0 commit 4a01817

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
import jdk.graal.compiler.core.common.type.ObjectStamp;
111111
import jdk.graal.compiler.core.common.type.StampFactory;
112112
import jdk.graal.compiler.core.common.type.StampPair;
113-
import jdk.graal.compiler.debug.Assertions;
114113
import jdk.graal.compiler.debug.GraalError;
115114
import jdk.graal.compiler.graph.Node.ConstantNodeParameter;
116115
import jdk.graal.compiler.graph.Node.NodeIntrinsic;
@@ -887,7 +886,7 @@ private static boolean isVirtualLock(FrameState frameState, int lockIdx) {
887886
}
888887

889888
private boolean verifyLockOrder(MonitorEnterNode monitorenterNode) {
890-
if (Assertions.assertionsEnabled() && requiresStrictLockOrder) {
889+
if (requiresStrictLockOrder) {
891890
FrameState state = monitorenterNode.stateAfter();
892891
boolean subsequentLocksMustBeEliminated = false;
893892
for (int lockIdx = 0; lockIdx < state.locksSize(); lockIdx++) {

0 commit comments

Comments
 (0)