class sun.nio.ch.SolarisEventPort extends sun.nio.ch.Port
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.SolarisEventPort
super_class: sun.nio.ch.Port
{
private static final sun.misc.Unsafe unsafe;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int addressSize;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final int SIZEOF_PORT_EVENT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int OFFSETOF_EVENTS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final int OFFSETOF_SOURCE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4
static final int OFFSETOF_OBJECT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8
static final short PORT_SOURCE_USER;
descriptor: S
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 3
static final short PORT_SOURCE_FD;
descriptor: S
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4
private final int port;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
putstatic sun.nio.ch.SolarisEventPort.unsafe:Lsun/misc/Unsafe;
1: getstatic sun.nio.ch.SolarisEventPort.unsafe:Lsun/misc/Unsafe;
invokevirtual sun.misc.Unsafe.addressSize:()I
putstatic sun.nio.ch.SolarisEventPort.addressSize:I
2: bipush 16
bipush 24
invokestatic sun.nio.ch.SolarisEventPort.dependsArch:(II)I
putstatic sun.nio.ch.SolarisEventPort.SIZEOF_PORT_EVENT:I
3: invokestatic sun.nio.ch.IOUtil.load:()V
4: return
LocalVariableTable:
Start End Slot Name Signature
private static int dependsArch(int, int);
descriptor: (II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.SolarisEventPort.addressSize:I
iconst_4
if_icmpne 1
iload 0
goto 2
StackMap locals:
StackMap stack:
1: iload 1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value32 I
0 3 1 value64 I
MethodParameters:
Name Flags
value32
value64
void <init>(java.nio.channels.spi.AsynchronousChannelProvider, sun.nio.ch.ThreadPool);
descriptor: (Ljava/nio/channels/spi/AsynchronousChannelProvider;Lsun/nio/ch/ThreadPool;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial sun.nio.ch.Port.<init>:(Ljava/nio/channels/spi/AsynchronousChannelProvider;Lsun/nio/ch/ThreadPool;)V
1: aload 0
invokestatic sun.nio.ch.SolarisEventPort.port_create:()I
putfield sun.nio.ch.SolarisEventPort.port:I
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SolarisEventPort;
0 3 1 provider Ljava/nio/channels/spi/AsynchronousChannelProvider;
0 3 2 pool Lsun/nio/ch/ThreadPool;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
provider
pool
sun.nio.ch.SolarisEventPort start();
descriptor: ()Lsun/nio/ch/SolarisEventPort;
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new sun.nio.ch.SolarisEventPort$EventHandlerTask
dup
aload 0
invokespecial sun.nio.ch.SolarisEventPort$EventHandlerTask.<init>:(Lsun/nio/ch/SolarisEventPort;)V
invokevirtual sun.nio.ch.SolarisEventPort.startThreads:(Ljava/lang/Runnable;)V
1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SolarisEventPort;
private void implClose();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.SolarisEventPort.closed:Z
ifeq 4
2: aload 1
monitorexit
3: return
4: StackMap locals: sun.nio.ch.SolarisEventPort
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.SolarisEventPort.closed:Z
5: aload 1
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SolarisEventPort.port:I
invokestatic sun.nio.ch.SolarisEventPort.port_close:(I)V
10: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/ch/SolarisEventPort;
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
private void wakeup();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SolarisEventPort.port:I
iconst_0
invokestatic sun.nio.ch.SolarisEventPort.port_send:(II)V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/SolarisEventPort;
3 4 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
void executeOnHandlerTask(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.SolarisEventPort.closed:Z
ifeq 3
2: new java.util.concurrent.RejectedExecutionException
dup
invokespecial java.util.concurrent.RejectedExecutionException.<init>:()V
athrow
3: StackMap locals: sun.nio.ch.SolarisEventPort
StackMap stack:
aload 0
aload 1
invokevirtual sun.nio.ch.SolarisEventPort.offerTask:(Ljava/lang/Runnable;)V
4: aload 0
invokevirtual sun.nio.ch.SolarisEventPort.wakeup:()V
5: aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/SolarisEventPort;
0 10 1 task Ljava/lang/Runnable;
Exception table:
from to target type
1 6 7 any
7 8 7 any
MethodParameters:
Name Flags
task
void shutdownHandlerTasks();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SolarisEventPort.threadCount:()I
istore 1
start local 1 1: iload 1
ifne 8
2: aload 0
invokevirtual sun.nio.ch.SolarisEventPort.implClose:()V
3: goto 9
4: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.ch.SolarisEventPort.port:I
iconst_0
invokestatic sun.nio.ch.SolarisEventPort.port_send:(II)V
5: goto 8
StackMap locals:
StackMap stack: java.io.IOException
6: astore 2
start local 2 7: new java.lang.AssertionError
dup
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 8: StackMap locals:
StackMap stack:
iload 1
iinc 1 -1
ifgt 4
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/SolarisEventPort;
1 10 1 nThreads I
7 8 2 x Ljava/io/IOException;
Exception table:
from to target type
4 5 6 Class java.io.IOException
void startPoll(int, int);
descriptor: (II)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.SolarisEventPort.port:I
iconst_4
iload 1
i2l
iload 2
invokestatic sun.nio.ch.SolarisEventPort.port_associate:(IIJI)Z
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/SolarisEventPort;
0 5 1 fd I
0 5 2 events I
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
fd
events
static native int port_create();
descriptor: ()I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
static native boolean port_associate(int, int, long, int);
descriptor: (IIJI)Z
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
port
source
object
events
static native boolean port_dissociate(int, int, long);
descriptor: (IIJ)Z
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
port
source
object
static native void port_get(int, long);
descriptor: (IJ)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
port
pe
static native int port_getn(int, long, int, long);
descriptor: (IJIJ)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
port
address
max
timeout
static native void port_send(int, int);
descriptor: (II)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
port
events
static native void port_close(int);
descriptor: (I)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
port
}
SourceFile: "SolarisEventPort.java"
NestMembers:
sun.nio.ch.SolarisEventPort$EventHandlerTask
InnerClasses:
private EventHandlerTask = sun.nio.ch.SolarisEventPort$EventHandlerTask of sun.nio.ch.SolarisEventPort