< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/DebugContext.java
Print this page
@@ -30,15 +30,13 @@
import static org.graalvm.compiler.debug.DebugOptions.DumpOnError;
import static org.graalvm.compiler.debug.DebugOptions.DumpOnPhaseChange;
import static org.graalvm.compiler.debug.DebugOptions.ListMetrics;
import static org.graalvm.compiler.debug.DebugOptions.Log;
import static org.graalvm.compiler.debug.DebugOptions.MemUseTrackers;
-import static org.graalvm.compiler.debug.DebugOptions.MethodFilter;
import static org.graalvm.compiler.debug.DebugOptions.Time;
import static org.graalvm.compiler.debug.DebugOptions.Timers;
import static org.graalvm.compiler.debug.DebugOptions.TrackMemUse;
-import static org.graalvm.compiler.debug.DebugOptions.Verify;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
@@ -372,20 +370,11 @@
assert handler instanceof DebugVerifyHandler;
verifyHandlers.add((DebugVerifyHandler) handler);
}
}
}
- currentConfig = new DebugConfigImpl(
- options,
- Log.getValue(options),
- Count.getValue(options),
- TrackMemUse.getValue(options),
- Time.getValue(options),
- Dump.getValue(options),
- Verify.getValue(options),
- MethodFilter.getValue(options),
- logStream, dumpHandlers, verifyHandlers);
+ currentConfig = new DebugConfigImpl(options, logStream, dumpHandlers, verifyHandlers);
currentScope = new ScopeImpl(this, Thread.currentThread());
currentScope.updateFlags(currentConfig);
metricsEnabled = true;
} else {
metricsEnabled = immutable.hasUnscopedMetrics() || immutable.listMetrics;
@@ -573,11 +562,11 @@
} else {
return null;
}
}
- private final Invariants invariants = Assertions.ENABLED ? new Invariants() : null;
+ private final Invariants invariants = Assertions.assertionsEnabled() ? new Invariants() : null;
static StackTraceElement[] getStackTrace(Thread thread) {
return thread.getStackTrace();
}
< prev index next >