public class sun.net.httpserver.SelectorCache
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.httpserver.SelectorCache
super_class: java.lang.Object
{
static sun.net.httpserver.SelectorCache cache;
descriptor: Lsun/net/httpserver/SelectorCache;
flags: (0x0008) ACC_STATIC
java.util.LinkedList<sun.net.httpserver.SelectorCache$SelectorWrapper> freeSelectors;
descriptor: Ljava/util/LinkedList;
flags: (0x0000)
Signature: Ljava/util/LinkedList<Lsun/net/httpserver/SelectorCache$SelectorWrapper;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic sun.net.httpserver.SelectorCache.cache:Lsun/net/httpserver/SelectorCache;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.net.httpserver.SelectorCache.freeSelectors:Ljava/util/LinkedList;
2: new sun.net.httpserver.SelectorCache$1
dup
aload 0
invokespecial sun.net.httpserver.SelectorCache$1.<init>:(Lsun/net/httpserver/SelectorCache;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast sun.net.httpserver.SelectorCache$CacheCleaner
astore 1
start local 1 4: aload 1
invokevirtual sun.net.httpserver.SelectorCache$CacheCleaner.start:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/httpserver/SelectorCache;
4 6 1 c Lsun/net/httpserver/SelectorCache$CacheCleaner;
public static sun.net.httpserver.SelectorCache getSelectorCache();
descriptor: ()Lsun/net/httpserver/SelectorCache;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc Lsun/net/httpserver/SelectorCache;
dup
astore 0
monitorenter
1: getstatic sun.net.httpserver.SelectorCache.cache:Lsun/net/httpserver/SelectorCache;
ifnonnull 3
2: new sun.net.httpserver.SelectorCache
dup
invokespecial sun.net.httpserver.SelectorCache.<init>:()V
putstatic sun.net.httpserver.SelectorCache.cache:Lsun/net/httpserver/SelectorCache;
3: StackMap locals: java.lang.Class
StackMap stack:
aload 0
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 0
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
getstatic sun.net.httpserver.SelectorCache.cache:Lsun/net/httpserver/SelectorCache;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 4 5 any
5 6 5 any
synchronized java.nio.channels.Selector getSelector();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield sun.net.httpserver.SelectorCache.freeSelectors:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.size:()I
ifle 5
2: aload 0
getfield sun.net.httpserver.SelectorCache.freeSelectors:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.remove:()Ljava/lang/Object;
checkcast sun.net.httpserver.SelectorCache$SelectorWrapper
astore 1
3: aload 1
invokevirtual sun.net.httpserver.SelectorCache$SelectorWrapper.getSelector:()Ljava/nio/channels/Selector;
astore 2
start local 2 4: goto 6
end local 2 5: StackMap locals: sun.net.httpserver.SelectorCache$SelectorWrapper
StackMap stack:
invokestatic java.nio.channels.Selector.open:()Ljava/nio/channels/Selector;
astore 2
start local 2 6: StackMap locals: java.nio.channels.Selector
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/SelectorCache;
1 7 1 wrapper Lsun/net/httpserver/SelectorCache$SelectorWrapper;
4 5 2 selector Ljava/nio/channels/Selector;
6 7 2 selector Ljava/nio/channels/Selector;
Exceptions:
throws java.io.IOException
synchronized void freeSelector(java.nio.channels.Selector);
descriptor: (Ljava/nio/channels/Selector;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.httpserver.SelectorCache.freeSelectors:Ljava/util/LinkedList;
new sun.net.httpserver.SelectorCache$SelectorWrapper
dup
aload 1
invokespecial sun.net.httpserver.SelectorCache$SelectorWrapper.<init>:(Ljava/nio/channels/Selector;)V
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/httpserver/SelectorCache;
0 2 1 selector Ljava/nio/channels/Selector;
MethodParameters:
Name Flags
selector
}
SourceFile: "SelectorCache.java"
NestMembers:
sun.net.httpserver.SelectorCache$1 sun.net.httpserver.SelectorCache$CacheCleaner sun.net.httpserver.SelectorCache$SelectorWrapper
InnerClasses:
sun.net.httpserver.SelectorCache$1
CacheCleaner = sun.net.httpserver.SelectorCache$CacheCleaner of sun.net.httpserver.SelectorCache
private SelectorWrapper = sun.net.httpserver.SelectorCache$SelectorWrapper of sun.net.httpserver.SelectorCache