public class org.eclipse.jetty.util.LeakDetector<T> extends org.eclipse.jetty.util.component.AbstractLifeCycle implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.LeakDetector
super_class: org.eclipse.jetty.util.component.AbstractLifeCycle
{
private static final org.eclipse.jetty.util.log.Logger LOG;
descriptor: Lorg/eclipse/jetty/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.ref.ReferenceQueue<T> queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<TT;>;
private final java.util.concurrent.ConcurrentMap<java.lang.String, org.eclipse.jetty.util.LeakDetector<T>.LeakInfo> resources;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lorg/eclipse/jetty/util/LeakDetector<TT;>.LeakInfo;>;
private java.lang.Thread thread;
descriptor: Ljava/lang/Thread;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/eclipse/jetty/util/LeakDetector;
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.util.LeakDetector.LOG:Lorg/eclipse/jetty/util/log/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.eclipse.jetty.util.component.AbstractLifeCycle.<init>:()V
1: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield org.eclipse.jetty.util.LeakDetector.queue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.eclipse.jetty.util.LeakDetector.resources:Ljava/util/concurrent/ConcurrentMap;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
public boolean acquired();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.eclipse.jetty.util.LeakDetector.id:(Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield org.eclipse.jetty.util.LeakDetector.resources:Ljava/util/concurrent/ConcurrentMap;
aload 2
new org.eclipse.jetty.util.LeakDetector$LeakInfo
dup
aload 0
aload 1
aload 2
invokespecial org.eclipse.jetty.util.LeakDetector$LeakInfo.<init>:(Lorg/eclipse/jetty/util/LeakDetector;Ljava/lang/Object;Ljava/lang/String;)V
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.util.LeakDetector$LeakInfo
astore 3
start local 3 2: aload 3
ifnull 4
3: iconst_0
ireturn
4: StackMap locals: java.lang.String org.eclipse.jetty.util.LeakDetector$LeakInfo
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
0 5 1 resource TT;
1 5 2 id Ljava/lang/String;
2 5 3 info Lorg/eclipse/jetty/util/LeakDetector<TT;>.LeakInfo;
Signature: (TT;)Z
MethodParameters:
Name Flags
resource
public boolean released();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.eclipse.jetty.util.LeakDetector.id:(Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield org.eclipse.jetty.util.LeakDetector.resources:Ljava/util/concurrent/ConcurrentMap;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.util.LeakDetector$LeakInfo
astore 3
start local 3 2: aload 3
ifnull 4
3: iconst_1
ireturn
4: StackMap locals: java.lang.String org.eclipse.jetty.util.LeakDetector$LeakInfo
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
0 5 1 resource TT;
1 5 2 id Ljava/lang/String;
2 5 3 info Lorg/eclipse/jetty/util/LeakDetector<TT;>.LeakInfo;
Signature: (TT;)Z
MethodParameters:
Name Flags
resource
public java.lang.String id(T);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
0 1 1 resource TT;
Signature: (TT;)Ljava/lang/String;
MethodParameters:
Name Flags
resource
protected void doStart();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.eclipse.jetty.util.component.AbstractLifeCycle.doStart:()V
1: aload 0
new java.lang.Thread
dup
aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
putfield org.eclipse.jetty.util.LeakDetector.thread:Ljava/lang/Thread;
2: aload 0
getfield org.eclipse.jetty.util.LeakDetector.thread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
3: aload 0
getfield org.eclipse.jetty.util.LeakDetector.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
Exceptions:
throws java.lang.Exception
protected void doStop();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.eclipse.jetty.util.component.AbstractLifeCycle.doStop:()V
1: aload 0
getfield org.eclipse.jetty.util.LeakDetector.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
Exceptions:
throws java.lang.Exception
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: goto 6
1: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.LeakDetector.queue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.remove:()Ljava/lang/ref/Reference;
checkcast org.eclipse.jetty.util.LeakDetector$LeakInfo
astore 1
start local 1 2: getstatic org.eclipse.jetty.util.LeakDetector.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 4
3: getstatic org.eclipse.jetty.util.LeakDetector.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Resource GC'ed: {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
4: StackMap locals: org.eclipse.jetty.util.LeakDetector$LeakInfo
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.LeakDetector.resources:Ljava/util/concurrent/ConcurrentMap;
aload 1
getfield org.eclipse.jetty.util.LeakDetector$LeakInfo.id:Ljava/lang/String;
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 6
5: aload 0
aload 1
invokevirtual org.eclipse.jetty.util.LeakDetector.leaked:(Lorg/eclipse/jetty/util/LeakDetector$LeakInfo;)V
end local 1 6: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.eclipse.jetty.util.LeakDetector.isRunning:()Z
ifne 1
7: goto 9
8: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
2 6 1 leakInfo Lorg/eclipse/jetty/util/LeakDetector<TT;>.LeakInfo;
Exception table:
from to target type
0 7 8 Class java.lang.InterruptedException
protected void leaked(org.eclipse.jetty.util.LeakDetector<T>.LeakInfo);
descriptor: (Lorg/eclipse/jetty/util/LeakDetector$LeakInfo;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.eclipse.jetty.util.LeakDetector.LOG:Lorg/eclipse/jetty/util/log/Logger;
new java.lang.StringBuilder
dup
ldc "Resource leaked: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
getfield org.eclipse.jetty.util.LeakDetector$LeakInfo.description:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
getfield org.eclipse.jetty.util.LeakDetector$LeakInfo.stackFrames:Ljava/lang/Throwable;
invokeinterface org.eclipse.jetty.util.log.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/util/LeakDetector<TT;>;
0 2 1 leakInfo Lorg/eclipse/jetty/util/LeakDetector<TT;>.LeakInfo;
Signature: (Lorg/eclipse/jetty/util/LeakDetector<TT;>.LeakInfo;)V
MethodParameters:
Name Flags
leakInfo
}
Signature: <T:Ljava/lang/Object;>Lorg/eclipse/jetty/util/component/AbstractLifeCycle;Ljava/lang/Runnable;
SourceFile: "LeakDetector.java"
NestMembers:
org.eclipse.jetty.util.LeakDetector$LeakInfo
InnerClasses:
public LeakInfo = org.eclipse.jetty.util.LeakDetector$LeakInfo of org.eclipse.jetty.util.LeakDetector