IDEA-206160 Instrumentation in java.lang.Thread does not work when running as Debug mode in Intellij Idea

disable agent during redefinition or retransform
This commit is contained in:
Egor Ushakov
2019-01-31 15:02:40 +03:00
parent a4bf5fe122
commit 2a1bce6d61
@@ -168,7 +168,7 @@ public class CaptureAgent {
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) {
if (className != null) {
if (className != null && classBeingRedefined == null) { // we do not support redefinition or retransform
List<InstrumentPoint> classPoints = myInstrumentPoints.get(className);
if (classPoints != null) {
try {