File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
jdk.graal.compiler/src/jdk/graal/compiler/debug
jdk.graal.compiler.test/src/jdk/graal/compiler/debug/test Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ public void testIsCountEnabled1() {
344
344
map .put (DebugOptions .Count , "" );
345
345
OptionValues options = new OptionValues (map );
346
346
DebugContext debug = new Builder (options ).build ();
347
- try (Scope s1 = debug .scope ("Scope" )) {
347
+ try (Scope _ = debug .scope ("Scope" )) {
348
348
Assert .assertTrue (debug .isCountEnabled ());
349
349
}
350
350
}
@@ -355,7 +355,7 @@ public void testIsCountEnabled2() {
355
355
map .put (DebugOptions .Counters , "" );
356
356
OptionValues options = new OptionValues (map );
357
357
DebugContext debug = new Builder (options ).build ();
358
- try (Scope s1 = debug .scope ("Scope" )) {
358
+ try (Scope _ = debug .scope ("Scope" )) {
359
359
Assert .assertTrue (debug .isCountEnabled ());
360
360
}
361
361
}
Original file line number Diff line number Diff line change @@ -764,15 +764,15 @@ public boolean isVerifyEnabled() {
764
764
}
765
765
766
766
public boolean isCountEnabled () {
767
- return currentScope != null && currentScope .isCountEnabled ();
767
+ return currentScope != null && currentScope .isCountEnabled () || immutable . unscopedCounters != null ;
768
768
}
769
769
770
770
public boolean isTimeEnabled () {
771
- return currentScope != null && currentScope .isTimeEnabled ();
771
+ return currentScope != null && currentScope .isTimeEnabled () || immutable . unscopedTimers != null ;
772
772
}
773
773
774
774
public boolean isMemUseTrackingEnabled () {
775
- return currentScope != null && currentScope .isMemUseTrackingEnabled ();
775
+ return currentScope != null && currentScope .isMemUseTrackingEnabled () || immutable . unscopedMemUseTrackers != null ;
776
776
}
777
777
778
778
public boolean isDumpEnabledForMethod () {
You can’t perform that action at this time.
0 commit comments