class sun.net.www.http.KeepAliveStreamCleaner extends java.util.LinkedList<sun.net.www.http.KeepAliveCleanerEntry> implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.www.http.KeepAliveStreamCleaner
super_class: java.util.LinkedList
{
protected static int MAX_DATA_REMAINING;
descriptor: I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
protected static int MAX_CAPACITY;
descriptor: I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
protected static final int TIMEOUT;
descriptor: I
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 5000
private static final int MAX_RETRIES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private final java.util.concurrent.locks.ReentrantLock queueLock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.locks.Condition waiter;
descriptor: Ljava/util/concurrent/locks/Condition;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: sipush 512
putstatic sun.net.www.http.KeepAliveStreamCleaner.MAX_DATA_REMAINING:I
1: bipush 10
putstatic sun.net.www.http.KeepAliveStreamCleaner.MAX_CAPACITY:I
2: new sun.net.www.http.KeepAliveStreamCleaner$1
dup
invokespecial sun.net.www.http.KeepAliveStreamCleaner$1.<init>:()V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
4: invokevirtual java.lang.Integer.intValue:()I
sipush 1024
5: imul
istore 0
start local 0 6: iload 0
putstatic sun.net.www.http.KeepAliveStreamCleaner.MAX_DATA_REMAINING:I
7: new sun.net.www.http.KeepAliveStreamCleaner$2
dup
invokespecial sun.net.www.http.KeepAliveStreamCleaner$2.<init>:()V
8: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
9: invokevirtual java.lang.Integer.intValue:()I
10: istore 1
start local 1 11: iload 1
putstatic sun.net.www.http.KeepAliveStreamCleaner.MAX_CAPACITY:I
end local 1 end local 0 12: return
LocalVariableTable:
Start End Slot Name Signature
6 12 0 maxData I
11 12 1 maxCapacity I
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.LinkedList.<init>:()V
1: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.net.www.http.KeepAliveStreamCleaner.queueLock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
aload 0
getfield sun.net.www.http.KeepAliveStreamCleaner.queueLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.newCondition:()Ljava/util/concurrent/locks/Condition;
putfield sun.net.www.http.KeepAliveStreamCleaner.waiter:Ljava/util/concurrent/locks/Condition;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/http/KeepAliveStreamCleaner;
final void signalAll();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.KeepAliveStreamCleaner.waiter:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.signalAll:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/http/KeepAliveStreamCleaner;
final void lock();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.KeepAliveStreamCleaner.queueLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/http/KeepAliveStreamCleaner;
final void unlock();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.KeepAliveStreamCleaner.queueLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/http/KeepAliveStreamCleaner;
public boolean offer(sun.net.www.http.KeepAliveCleanerEntry);
descriptor: (Lsun/net/www/http/KeepAliveCleanerEntry;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.size:()I
getstatic sun.net.www.http.KeepAliveStreamCleaner.MAX_CAPACITY:I
if_icmplt 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.util.LinkedList.offer:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/http/KeepAliveStreamCleaner;
0 3 1 e Lsun/net/www/http/KeepAliveCleanerEntry;
MethodParameters:
Name Flags
e
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=12, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: StackMap locals: sun.net.www.http.KeepAliveCleanerEntry
StackMap stack:
aload 0
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.lock:()V
2: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 3: ldc 5000
lstore 4
start local 4 4: goto 13
5: StackMap locals: long long
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStreamCleaner.waiter:Ljava/util/concurrent/locks/Condition;
lload 4
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.locks.Condition.await:(JLjava/util/concurrent/TimeUnit;)Z
pop
6: invokestatic java.lang.System.currentTimeMillis:()J
lstore 6
start local 6 7: lload 6
lload 2
lsub
lstore 8
start local 8 8: lload 8
lload 4
lcmp
ifle 11
9: aload 0
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.poll:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveCleanerEntry
astore 1
10: goto 18
11: StackMap locals: long long
StackMap stack:
lload 6
lstore 2
12: lload 4
lload 8
lsub
lstore 4
end local 8 end local 6 13: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.poll:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveCleanerEntry
dup
astore 1
ifnull 5
end local 4 end local 2 14: goto 18
StackMap locals: sun.net.www.http.KeepAliveStreamCleaner sun.net.www.http.KeepAliveCleanerEntry
StackMap stack: java.lang.Throwable
15: astore 10
16: aload 0
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.unlock:()V
17: aload 10
athrow
18: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.unlock:()V
19: aload 1
ifnonnull 21
20: goto 60
21: StackMap locals:
StackMap stack:
aload 1
invokevirtual sun.net.www.http.KeepAliveCleanerEntry.getKeepAliveStream:()Lsun/net/www/http/KeepAliveStream;
astore 2
start local 2 22: aload 2
ifnull 59
23: aload 2
invokevirtual sun.net.www.http.KeepAliveStream.lock:()V
24: aload 1
invokevirtual sun.net.www.http.KeepAliveCleanerEntry.getHttpClient:()Lsun/net/www/http/HttpClient;
astore 3
start local 3 25: aload 3
ifnull 51
aload 3
invokevirtual sun.net.www.http.HttpClient.isInKeepAliveCache:()Z
ifne 51
26: aload 3
invokevirtual sun.net.www.http.HttpClient.getReadTimeout:()I
istore 4
start local 4 27: aload 3
sipush 5000
invokevirtual sun.net.www.http.HttpClient.setReadTimeout:(I)V
28: aload 2
invokevirtual sun.net.www.http.KeepAliveStream.remainingToRead:()J
lstore 5
start local 5 29: lload 5
lconst_0
lcmp
ifle 39
30: lconst_0
lstore 7
start local 7 31: iconst_0
istore 9
start local 9 32: goto 37
33: StackMap locals: sun.net.www.http.KeepAliveStreamCleaner sun.net.www.http.KeepAliveCleanerEntry sun.net.www.http.KeepAliveStream sun.net.www.http.HttpClient int long long int
StackMap stack:
lload 5
lload 7
lsub
lstore 5
34: aload 2
lload 5
invokevirtual sun.net.www.http.KeepAliveStream.skip:(J)J
lstore 7
35: lload 7
lconst_0
lcmp
ifne 37
36: iinc 9 1
37: StackMap locals:
StackMap stack:
lload 7
lload 5
lcmp
ifge 38
iload 9
iconst_5
if_icmplt 33
38: StackMap locals:
StackMap stack:
lload 5
lload 7
lsub
lstore 5
end local 9 end local 7 39: StackMap locals:
StackMap stack:
lload 5
lconst_0
lcmp
ifne 43
40: aload 3
iload 4
invokevirtual sun.net.www.http.HttpClient.setReadTimeout:(I)V
41: aload 3
invokevirtual sun.net.www.http.HttpClient.finished:()V
42: goto 51
43: StackMap locals:
StackMap stack:
aload 3
invokevirtual sun.net.www.http.HttpClient.closeServer:()V
end local 5 end local 4 44: goto 51
StackMap locals: sun.net.www.http.KeepAliveStreamCleaner sun.net.www.http.KeepAliveCleanerEntry sun.net.www.http.KeepAliveStream sun.net.www.http.HttpClient
StackMap stack: java.io.IOException
45: pop
46: aload 3
invokevirtual sun.net.www.http.HttpClient.closeServer:()V
47: aload 2
invokevirtual sun.net.www.http.KeepAliveStream.setClosed:()V
goto 56
48: StackMap locals:
StackMap stack: java.lang.Throwable
astore 10
49: aload 2
invokevirtual sun.net.www.http.KeepAliveStream.setClosed:()V
50: aload 10
athrow
51: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.net.www.http.KeepAliveStream.setClosed:()V
end local 3 52: goto 56
StackMap locals: sun.net.www.http.KeepAliveStreamCleaner sun.net.www.http.KeepAliveCleanerEntry sun.net.www.http.KeepAliveStream
StackMap stack: java.lang.Throwable
53: astore 11
54: aload 2
invokevirtual sun.net.www.http.KeepAliveStream.unlock:()V
55: aload 11
athrow
56: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.net.www.http.KeepAliveStream.unlock:()V
end local 2 57: goto 59
StackMap locals: sun.net.www.http.KeepAliveStreamCleaner sun.net.www.http.KeepAliveCleanerEntry
StackMap stack: java.lang.InterruptedException
58: pop
59: StackMap locals:
StackMap stack:
aload 1
ifnonnull 1
60: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 61 0 this Lsun/net/www/http/KeepAliveStreamCleaner;
1 61 1 kace Lsun/net/www/http/KeepAliveCleanerEntry;
3 14 2 before J
4 14 4 timeout J
7 13 6 after J
8 13 8 elapsed J
22 57 2 kas Lsun/net/www/http/KeepAliveStream;
25 52 3 hc Lsun/net/www/http/HttpClient;
27 44 4 oldTimeout I
29 44 5 remainingToRead J
31 39 7 n J
32 39 9 retries I
Exception table:
from to target type
2 15 15 any
25 44 45 Class java.io.IOException
25 47 48 any
24 53 53 any
1 20 58 Class java.lang.InterruptedException
21 57 58 Class java.lang.InterruptedException
public boolean offer(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast sun.net.www.http.KeepAliveCleanerEntry
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.offer:(Lsun/net/www/http/KeepAliveCleanerEntry;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/util/LinkedList<Lsun/net/www/http/KeepAliveCleanerEntry;>;Ljava/lang/Runnable;
SourceFile: "KeepAliveStreamCleaner.java"
NestMembers:
sun.net.www.http.KeepAliveStreamCleaner$1 sun.net.www.http.KeepAliveStreamCleaner$2
InnerClasses:
sun.net.www.http.KeepAliveStreamCleaner$1
sun.net.www.http.KeepAliveStreamCleaner$2