Skip to content

Commit 24f54c4

Browse files
committed
Make isEnabled helpers respect unscoped controls
1 parent f39921e commit 24f54c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/DebugContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,15 +764,15 @@ public boolean isVerifyEnabled() {
764764
}
765765

766766
public boolean isCountEnabled() {
767-
return currentScope != null && currentScope.isCountEnabled();
767+
return currentScope != null && currentScope.isCountEnabled() || immutable.unscopedCounters != null;
768768
}
769769

770770
public boolean isTimeEnabled() {
771-
return currentScope != null && currentScope.isTimeEnabled();
771+
return currentScope != null && currentScope.isTimeEnabled() || immutable.unscopedTimers != null;
772772
}
773773

774774
public boolean isMemUseTrackingEnabled() {
775-
return currentScope != null && currentScope.isMemUseTrackingEnabled();
775+
return currentScope != null && currentScope.isMemUseTrackingEnabled() || immutable.unscopedMemUseTrackers != null;
776776
}
777777

778778
public boolean isDumpEnabledForMethod() {

0 commit comments

Comments
 (0)