[debugger] dropped obsolete registry flag

GitOrigin-RevId: c17f92aee854a88d5026c0956186940319ac39fb
This commit is contained in:
Egor Ushakov
2020-11-24 12:48:07 +03:00
committed by intellij-monorepo-bot
parent 2014756a02
commit cd1f0e36c6
2 changed files with 4 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.engine.requests;
import com.intellij.debugger.JavaDebuggerBundle;
@@ -10,7 +10,6 @@ import com.intellij.debugger.ui.overhead.OverheadProducer;
import com.intellij.debugger.ui.overhead.OverheadTimings;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.ui.SimpleColoredComponent;
import com.sun.jdi.*;
import com.sun.jdi.event.Event;
@@ -50,7 +49,7 @@ public class MethodReturnValueWatcher implements OverheadProducer {
LOG.debug("<- " + event.method());
}
try {
if (Registry.is("debugger.watch.return.speedup") && myEntryMethod != null) {
if (myEntryMethod != null) {
if (myEntryMethod.equals(event.method())) {
LOG.debug("Now watching all");
enableEntryWatching(true);
@@ -167,9 +166,7 @@ public class MethodReturnValueWatcher implements OverheadProducer {
clear();
myThread = thread;
if (Registry.is("debugger.watch.return.speedup")) {
createEntryRequest().enable();
}
createEntryRequest().enable();
createExitRequest().enable();
}
}
@@ -197,7 +194,7 @@ public class MethodReturnValueWatcher implements OverheadProducer {
@NotNull
private <T extends EventRequest> T prepareRequest(T request) {
request.setSuspendPolicy(Registry.is("debugger.watch.return.speedup") ? EventRequest.SUSPEND_EVENT_THREAD : EventRequest.SUSPEND_NONE);
request.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
if (myThread != null) {
if (request instanceof MethodEntryRequest) {
((MethodEntryRequest)request).addThreadFilter(myThread);