public class io.netty.util.ResourceLeakDetector<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.util.ResourceLeakDetector
super_class: java.lang.Object
{
private static final java.lang.String PROP_LEVEL_OLD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "io.netty.leakDetectionLevel"
private static final java.lang.String PROP_LEVEL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "io.netty.leakDetection.level"
private static final io.netty.util.ResourceLeakDetector$Level DEFAULT_LEVEL;
descriptor: Lio/netty/util/ResourceLeakDetector$Level;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lio/netty/util/ResourceLeakDetector$Level;
private static final java.lang.String PROP_TARGET_RECORDS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "io.netty.leakDetection.targetRecords"
private static final int DEFAULT_TARGET_RECORDS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int TARGET_RECORDS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static io.netty.util.ResourceLeakDetector$Level level;
descriptor: Lio/netty/util/ResourceLeakDetector$Level;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Lio/netty/util/ResourceLeakDetector$Level;
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final int DEFAULT_SAMPLING_INTERVAL;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 128
private final java.util.concurrent.ConcurrentMap<io.netty.util.ResourceLeakDetector$DefaultResourceLeak<?>, io.netty.util.ResourceLeakDetector$LeakEntry> allLeaks;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Lio/netty/util/ResourceLeakDetector$DefaultResourceLeak<*>;Lio/netty/util/ResourceLeakDetector$LeakEntry;>;
private final java.lang.ref.ReferenceQueue<java.lang.Object> refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
private final java.util.concurrent.ConcurrentMap<java.lang.String, java.lang.Boolean> reportedLeaks;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Ljava/lang/Boolean;>;
private final java.lang.String resourceType;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int samplingInterval;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicReference<java.lang.String[]> excludedMethods;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<[Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=0
0: getstatic io.netty.util.ResourceLeakDetector$Level.SIMPLE:Lio/netty/util/ResourceLeakDetector$Level;
putstatic io.netty.util.ResourceLeakDetector.DEFAULT_LEVEL:Lio/netty/util/ResourceLeakDetector$Level;
1: ldc Lio/netty/util/ResourceLeakDetector;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
2: ldc "io.netty.noResourceLeakDetection"
invokestatic io.netty.util.internal.SystemPropertyUtil.get:(Ljava/lang/String;)Ljava/lang/String;
ifnull 10
3: ldc "io.netty.noResourceLeakDetection"
iconst_0
invokestatic io.netty.util.internal.SystemPropertyUtil.getBoolean:(Ljava/lang/String;Z)Z
istore 0
start local 0 4: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.noResourceLeakDetection: {}"
iload 0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
5: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
6: ldc "-Dio.netty.noResourceLeakDetection is deprecated. Use '-D{}={}' instead."
7: ldc "io.netty.leakDetection.level"
getstatic io.netty.util.ResourceLeakDetector.DEFAULT_LEVEL:Lio/netty/util/ResourceLeakDetector$Level;
invokevirtual io.netty.util.ResourceLeakDetector$Level.name:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
8: invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
9: goto 11
end local 0 10: StackMap locals:
StackMap stack:
iconst_0
istore 0
start local 0 11: StackMap locals: int
StackMap stack:
iload 0
ifeq 12
getstatic io.netty.util.ResourceLeakDetector$Level.DISABLED:Lio/netty/util/ResourceLeakDetector$Level;
goto 13
StackMap locals:
StackMap stack:
12: getstatic io.netty.util.ResourceLeakDetector.DEFAULT_LEVEL:Lio/netty/util/ResourceLeakDetector$Level;
StackMap locals:
StackMap stack: io.netty.util.ResourceLeakDetector$Level
13: astore 1
start local 1 14: ldc "io.netty.leakDetectionLevel"
aload 1
invokevirtual io.netty.util.ResourceLeakDetector$Level.name:()Ljava/lang/String;
invokestatic io.netty.util.internal.SystemPropertyUtil.get:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 15: ldc "io.netty.leakDetection.level"
aload 2
invokestatic io.netty.util.internal.SystemPropertyUtil.get:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
16: aload 2
invokestatic io.netty.util.ResourceLeakDetector$Level.parseLevel:(Ljava/lang/String;)Lio/netty/util/ResourceLeakDetector$Level;
astore 3
start local 3 17: ldc "io.netty.leakDetection.targetRecords"
iconst_4
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.util.ResourceLeakDetector.TARGET_RECORDS:I
18: aload 3
putstatic io.netty.util.ResourceLeakDetector.level:Lio/netty/util/ResourceLeakDetector$Level;
19: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 22
20: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-D{}: {}"
ldc "io.netty.leakDetection.level"
aload 3
invokevirtual io.netty.util.ResourceLeakDetector$Level.name:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
21: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-D{}: {}"
ldc "io.netty.leakDetection.targetRecords"
getstatic io.netty.util.ResourceLeakDetector.TARGET_RECORDS:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 3 end local 2 end local 1 end local 0 22: StackMap locals:
StackMap stack:
new java.util.concurrent.atomic.AtomicReference
dup
getstatic io.netty.util.internal.EmptyArrays.EMPTY_STRINGS:[Ljava/lang/String;
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:(Ljava/lang/Object;)V
23: putstatic io.netty.util.ResourceLeakDetector.excludedMethods:Ljava/util/concurrent/atomic/AtomicReference;
24: return
LocalVariableTable:
Start End Slot Name Signature
4 10 0 disabled Z
11 22 0 disabled Z
14 22 1 defaultLevel Lio/netty/util/ResourceLeakDetector$Level;
15 22 2 levelStr Ljava/lang/String;
17 22 3 level Lio/netty/util/ResourceLeakDetector$Level;
public static void setEnabled(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
ifeq 1
getstatic io.netty.util.ResourceLeakDetector$Level.SIMPLE:Lio/netty/util/ResourceLeakDetector$Level;
goto 2
StackMap locals:
StackMap stack:
1: getstatic io.netty.util.ResourceLeakDetector$Level.DISABLED:Lio/netty/util/ResourceLeakDetector$Level;
StackMap locals:
StackMap stack: io.netty.util.ResourceLeakDetector$Level
2: invokestatic io.netty.util.ResourceLeakDetector.setLevel:(Lio/netty/util/ResourceLeakDetector$Level;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 enabled Z
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
enabled
public static boolean isEnabled();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic io.netty.util.ResourceLeakDetector.getLevel:()Lio/netty/util/ResourceLeakDetector$Level;
invokevirtual io.netty.util.ResourceLeakDetector$Level.ordinal:()I
getstatic io.netty.util.ResourceLeakDetector$Level.DISABLED:Lio/netty/util/ResourceLeakDetector$Level;
invokevirtual io.netty.util.ResourceLeakDetector$Level.ordinal:()I
if_icmple 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void setLevel(io.netty.util.ResourceLeakDetector$Level);
descriptor: (Lio/netty/util/ResourceLeakDetector$Level;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "level"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
putstatic io.netty.util.ResourceLeakDetector.level:Lio/netty/util/ResourceLeakDetector$Level;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 level Lio/netty/util/ResourceLeakDetector$Level;
Signature: (Lio/netty/util/ResourceLeakDetector$Level;)V
MethodParameters:
Name Flags
level
public static io.netty.util.ResourceLeakDetector$Level getLevel();
descriptor: ()Lio/netty/util/ResourceLeakDetector$Level;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.util.ResourceLeakDetector.level:Lio/netty/util/ResourceLeakDetector$Level;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Lio/netty/util/ResourceLeakDetector$Level;
public void <init>(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Class;)Ljava/lang/String;
invokespecial io.netty.util.ResourceLeakDetector.<init>:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 2 1 resourceType Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
resourceType
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
sipush 128
ldc 9223372036854775807
invokespecial io.netty.util.ResourceLeakDetector.<init>:(Ljava/lang/String;IJ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 2 1 resourceType Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
resourceType
public void <init>(java.lang.Class<?>, int, );
descriptor: (Ljava/lang/Class;IJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
invokespecial io.netty.util.ResourceLeakDetector.<init>:(Ljava/lang/Class;I)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 2 1 resourceType Ljava/lang/Class<*>;
0 2 2 samplingInterval I
0 2 3 maxActive J
Signature: (Ljava/lang/Class<*>;IJ)V
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
resourceType
samplingInterval
maxActive
public void <init>(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Class;)Ljava/lang/String;
iload 2
ldc 9223372036854775807
invokespecial io.netty.util.ResourceLeakDetector.<init>:(Ljava/lang/String;IJ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 2 1 resourceType Ljava/lang/Class<*>;
0 2 2 samplingInterval I
Signature: (Ljava/lang/Class<*>;I)V
MethodParameters:
Name Flags
resourceType
samplingInterval
public void <init>(java.lang.String, int, long);
descriptor: (Ljava/lang/String;IJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic io.netty.util.internal.PlatformDependent.newConcurrentHashMap:()Ljava/util/concurrent/ConcurrentMap;
putfield io.netty.util.ResourceLeakDetector.allLeaks:Ljava/util/concurrent/ConcurrentMap;
2: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield io.netty.util.ResourceLeakDetector.refQueue:Ljava/lang/ref/ReferenceQueue;
3: aload 0
invokestatic io.netty.util.internal.PlatformDependent.newConcurrentHashMap:()Ljava/util/concurrent/ConcurrentMap;
putfield io.netty.util.ResourceLeakDetector.reportedLeaks:Ljava/util/concurrent/ConcurrentMap;
4: aload 1
ifnonnull 6
5: new java.lang.NullPointerException
dup
ldc "resourceType"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: io.netty.util.ResourceLeakDetector java.lang.String int long
StackMap stack:
aload 0
aload 1
putfield io.netty.util.ResourceLeakDetector.resourceType:Ljava/lang/String;
7: aload 0
iload 2
putfield io.netty.util.ResourceLeakDetector.samplingInterval:I
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 9 1 resourceType Ljava/lang/String;
0 9 2 samplingInterval I
0 9 3 maxActive J
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
resourceType
samplingInterval
maxActive
public final io.netty.util.ResourceLeak open(T);
descriptor: (Ljava/lang/Object;)Lio/netty/util/ResourceLeak;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.netty.util.ResourceLeakDetector.track0:(Ljava/lang/Object;)Lio/netty/util/ResourceLeakDetector$DefaultResourceLeak;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 1 1 obj TT;
Signature: (TT;)Lio/netty/util/ResourceLeak;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
obj
public final io.netty.util.ResourceLeakTracker<T> track(T);
descriptor: (Ljava/lang/Object;)Lio/netty/util/ResourceLeakTracker;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.netty.util.ResourceLeakDetector.track0:(Ljava/lang/Object;)Lio/netty/util/ResourceLeakDetector$DefaultResourceLeak;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 1 1 obj TT;
Signature: (TT;)Lio/netty/util/ResourceLeakTracker<TT;>;
MethodParameters:
Name Flags
obj
private io.netty.util.ResourceLeakDetector$DefaultResourceLeak track0(T);
descriptor: (Ljava/lang/Object;)Lio/netty/util/ResourceLeakDetector$DefaultResourceLeak;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.netty.util.ResourceLeakDetector.level:Lio/netty/util/ResourceLeakDetector$Level;
astore 2
start local 2 1: aload 2
getstatic io.netty.util.ResourceLeakDetector$Level.DISABLED:Lio/netty/util/ResourceLeakDetector$Level;
if_acmpne 3
2: aconst_null
areturn
3: StackMap locals: io.netty.util.ResourceLeakDetector$Level
StackMap stack:
aload 2
invokevirtual io.netty.util.ResourceLeakDetector$Level.ordinal:()I
getstatic io.netty.util.ResourceLeakDetector$Level.PARANOID:Lio/netty/util/ResourceLeakDetector$Level;
invokevirtual io.netty.util.ResourceLeakDetector$Level.ordinal:()I
if_icmpge 8
4: invokestatic io.netty.util.internal.PlatformDependent.threadLocalRandom:()Ljava/util/Random;
aload 0
getfield io.netty.util.ResourceLeakDetector.samplingInterval:I
invokevirtual java.util.Random.nextInt:(I)I
ifne 7
5: aload 0
invokevirtual io.netty.util.ResourceLeakDetector.reportLeak:()V
6: new io.netty.util.ResourceLeakDetector$DefaultResourceLeak
dup
aload 1
aload 0
getfield io.netty.util.ResourceLeakDetector.refQueue:Ljava/lang/ref/ReferenceQueue;
aload 0
getfield io.netty.util.ResourceLeakDetector.allLeaks:Ljava/util/concurrent/ConcurrentMap;
invokespecial io.netty.util.ResourceLeakDetector$DefaultResourceLeak.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;Ljava/util/concurrent/ConcurrentMap;)V
areturn
7: StackMap locals:
StackMap stack:
aconst_null
areturn
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.util.ResourceLeakDetector.reportLeak:()V
9: new io.netty.util.ResourceLeakDetector$DefaultResourceLeak
dup
aload 1
aload 0
getfield io.netty.util.ResourceLeakDetector.refQueue:Ljava/lang/ref/ReferenceQueue;
aload 0
getfield io.netty.util.ResourceLeakDetector.allLeaks:Ljava/util/concurrent/ConcurrentMap;
invokespecial io.netty.util.ResourceLeakDetector$DefaultResourceLeak.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;Ljava/util/concurrent/ConcurrentMap;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 10 1 obj TT;
1 10 2 level Lio/netty/util/ResourceLeakDetector$Level;
Signature: (TT;)Lio/netty/util/ResourceLeakDetector$DefaultResourceLeak;
MethodParameters:
Name Flags
obj
private void clearRefQueue();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.util.ResourceLeakDetector.refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast io.netty.util.ResourceLeakDetector$DefaultResourceLeak
astore 1
start local 1 1: aload 1
ifnonnull 3
2: goto 5
3: StackMap locals: io.netty.util.ResourceLeakDetector$DefaultResourceLeak
StackMap stack:
aload 1
invokevirtual io.netty.util.ResourceLeakDetector$DefaultResourceLeak.dispose:()Z
pop
end local 1 4: goto 0
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
1 4 1 ref Lio/netty/util/ResourceLeakDetector$DefaultResourceLeak;
private void reportLeak();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isErrorEnabled:()Z
ifne 3
1: aload 0
invokevirtual io.netty.util.ResourceLeakDetector.clearRefQueue:()V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.util.ResourceLeakDetector.refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast io.netty.util.ResourceLeakDetector$DefaultResourceLeak
astore 1
start local 1 4: aload 1
ifnonnull 6
5: goto 15
6: StackMap locals: io.netty.util.ResourceLeakDetector$DefaultResourceLeak
StackMap stack:
aload 1
invokevirtual io.netty.util.ResourceLeakDetector$DefaultResourceLeak.dispose:()Z
ifne 8
7: goto 3
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual io.netty.util.ResourceLeakDetector$DefaultResourceLeak.toString:()Ljava/lang/String;
astore 2
start local 2 9: aload 0
getfield io.netty.util.ResourceLeakDetector.reportedLeaks:Ljava/util/concurrent/ConcurrentMap;
aload 2
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnonnull 3
10: aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifeq 13
11: aload 0
aload 0
getfield io.netty.util.ResourceLeakDetector.resourceType:Ljava/lang/String;
invokevirtual io.netty.util.ResourceLeakDetector.reportUntracedLeak:(Ljava/lang/String;)V
12: goto 3
13: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 0
getfield io.netty.util.ResourceLeakDetector.resourceType:Ljava/lang/String;
aload 2
invokevirtual io.netty.util.ResourceLeakDetector.reportTracedLeak:(Ljava/lang/String;Ljava/lang/String;)V
end local 2 end local 1 14: goto 3
15: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
4 14 1 ref Lio/netty/util/ResourceLeakDetector$DefaultResourceLeak;
9 14 2 records Ljava/lang/String;
protected void reportTracedLeak(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
1: ldc "LEAK: {}.release() was not called before it's garbage-collected. See http://netty.io/wiki/reference-counted-objects.html for more information.{}"
2: aload 1
aload 2
3: invokeinterface io.netty.util.internal.logging.InternalLogger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 5 1 resourceType Ljava/lang/String;
0 5 2 records Ljava/lang/String;
MethodParameters:
Name Flags
resourceType
records
protected void reportUntracedLeak(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.netty.util.ResourceLeakDetector.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "LEAK: {}.release() was not called before it's garbage-collected. Enable advanced leak reporting to find out where the leak occurred. To enable advanced leak reporting, specify the JVM option '-D{}={}' or call {}.setLevel() See http://netty.io/wiki/reference-counted-objects.html for more information."
iconst_4
anewarray java.lang.Object
dup
iconst_0
1: aload 1
aastore
dup
iconst_1
ldc "io.netty.leakDetection.level"
aastore
dup
iconst_2
getstatic io.netty.util.ResourceLeakDetector$Level.ADVANCED:Lio/netty/util/ResourceLeakDetector$Level;
invokevirtual io.netty.util.ResourceLeakDetector$Level.name:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
aastore
dup
iconst_3
aload 0
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
aastore
2: invokeinterface io.netty.util.internal.logging.InternalLogger.error:(Ljava/lang/String;[Ljava/lang/Object;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 4 1 resourceType Ljava/lang/String;
MethodParameters:
Name Flags
resourceType
protected void reportInstancesLeak(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/ResourceLeakDetector<TT;>;
0 1 1 resourceType Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
resourceType
public static void addExclusions(java.lang.Class, java.lang.String[]);
descriptor: (Ljava/lang/Class;[Ljava/lang/String;)V
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: new java.util.HashSet
dup
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 1: aload 0
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 6
StackMap locals: java.lang.Class java.lang.String[] java.util.Set top int int java.lang.reflect.Method[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 2
aload 3
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
ifeq 5
aload 2
invokeinterface java.util.Set.isEmpty:()Z
ifeq 5
4: goto 7
end local 3 5: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 5
if_icmplt 2
7: StackMap locals: java.lang.Class java.lang.String[] java.util.Set
StackMap stack:
aload 2
invokeinterface java.util.Set.isEmpty:()Z
ifne 9
8: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Can't find '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
getstatic io.netty.util.ResourceLeakDetector.excludedMethods:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.lang.String[]
astore 3
start local 3 10: aload 3
aload 3
arraylength
iconst_2
aload 1
arraylength
imul
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast java.lang.String[]
astore 4
start local 4 11: iconst_0
istore 5
start local 5 12: goto 16
13: StackMap locals: java.lang.String[] java.lang.String[] int
StackMap stack:
aload 4
aload 3
arraylength
iload 5
iconst_2
imul
iadd
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
14: aload 4
aload 3
arraylength
iload 5
iconst_2
imul
iadd
iconst_1
iadd
aload 1
iload 5
aaload
aastore
15: iinc 5 1
StackMap locals:
StackMap stack:
16: iload 5
aload 1
arraylength
if_icmplt 13
end local 5 17: getstatic io.netty.util.ResourceLeakDetector.excludedMethods:Ljava/util/concurrent/atomic/AtomicReference;
aload 3
aload 4
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 9
18: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 clz Ljava/lang/Class;
0 19 1 methodNames [Ljava/lang/String;
1 19 2 nameSet Ljava/util/Set<Ljava/lang/String;>;
3 5 3 method Ljava/lang/reflect/Method;
10 19 3 oldMethods [Ljava/lang/String;
11 19 4 newMethods [Ljava/lang/String;
12 17 5 i I
MethodParameters:
Name Flags
clz
methodNames
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ResourceLeakDetector.java"
NestMembers:
io.netty.util.ResourceLeakDetector$DefaultResourceLeak io.netty.util.ResourceLeakDetector$LeakEntry io.netty.util.ResourceLeakDetector$Level io.netty.util.ResourceLeakDetector$Record
InnerClasses:
private final DefaultResourceLeak = io.netty.util.ResourceLeakDetector$DefaultResourceLeak of io.netty.util.ResourceLeakDetector
private final LeakEntry = io.netty.util.ResourceLeakDetector$LeakEntry of io.netty.util.ResourceLeakDetector
public final Level = io.netty.util.ResourceLeakDetector$Level of io.netty.util.ResourceLeakDetector
private final Record = io.netty.util.ResourceLeakDetector$Record of io.netty.util.ResourceLeakDetector