class sun.nio.ch.NativeObject
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.NativeObject
super_class: java.lang.Object
{
protected static final jdk.internal.misc.Unsafe unsafe;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected long allocationAddress;
descriptor: J
flags: (0x0004) ACC_PROTECTED
private final long address;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static java.nio.ByteOrder byteOrder;
descriptor: Ljava/nio/ByteOrder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int pageSize;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/nio/ch/NativeObject;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.ch.NativeObject.$assertionsDisabled:Z
3: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
4: aconst_null
putstatic sun.nio.ch.NativeObject.byteOrder:Ljava/nio/ByteOrder;
5: iconst_m1
putstatic sun.nio.ch.NativeObject.pageSize:I
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lload 1
putfield sun.nio.ch.NativeObject.allocationAddress:J
2: aload 0
lload 1
putfield sun.nio.ch.NativeObject.address:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/NativeObject;
0 4 1 address J
MethodParameters:
Name Flags
address
void <init>(long, long);
descriptor: (JJ)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lload 1
putfield sun.nio.ch.NativeObject.allocationAddress:J
2: aload 0
lload 1
lload 3
ladd
putfield sun.nio.ch.NativeObject.address:J
3: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/NativeObject;
0 4 1 address J
0 4 3 offset J
MethodParameters:
Name Flags
address
offset
protected void <init>(int, boolean);
descriptor: (IZ)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 2
ifne 5
2: aload 0
getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
putfield sun.nio.ch.NativeObject.allocationAddress:J
3: aload 0
aload 0
getfield sun.nio.ch.NativeObject.allocationAddress:J
putfield sun.nio.ch.NativeObject.address:J
4: goto 9
5: StackMap locals: sun.nio.ch.NativeObject int int
StackMap stack:
invokestatic sun.nio.ch.NativeObject.pageSize:()I
istore 3
start local 3 6: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
iload 3
iadd
i2l
invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
lstore 4
start local 4 7: aload 0
lload 4
putfield sun.nio.ch.NativeObject.allocationAddress:J
8: aload 0
lload 4
iload 3
i2l
ladd
lload 4
iload 3
iconst_1
isub
i2l
land
lsub
putfield sun.nio.ch.NativeObject.address:J
end local 4 end local 3 9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/NativeObject;
0 10 1 size I
0 10 2 pageAligned Z
6 9 3 ps I
7 9 4 a J
MethodParameters:
Name Flags
size
pageAligned
long address();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.NativeObject.address:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
long allocationAddress();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.NativeObject.allocationAddress:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
sun.nio.ch.NativeObject subObject(int);
descriptor: (I)Lsun/nio/ch/NativeObject;
flags: (0x0000)
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new sun.nio.ch.NativeObject
dup
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokespecial sun.nio.ch.NativeObject.<init>:(J)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
sun.nio.ch.NativeObject getObject(int);
descriptor: (I)Lsun/nio/ch/NativeObject;
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: lconst_0
lstore 2
start local 2 1: invokestatic sun.nio.ch.NativeObject.addressSize:()I
tableswitch { // 4 - 8
4: 4
5: 6
6: 6
7: 6
8: 2
default: 6
}
2: StackMap locals: long
StackMap stack:
getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getLong:(J)J
lstore 2
3: goto 7
4: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getInt:(J)I
iconst_m1
iand
i2l
lstore 2
5: goto 7
6: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
ldc "Address size not supported"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
new sun.nio.ch.NativeObject
dup
lload 2
invokespecial sun.nio.ch.NativeObject.<init>:(J)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/NativeObject;
0 8 1 offset I
1 8 2 newAddress J
MethodParameters:
Name Flags
offset
void putObject(int, sun.nio.ch.NativeObject);
descriptor: (ILsun/nio/ch/NativeObject;)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: invokestatic sun.nio.ch.NativeObject.addressSize:()I
tableswitch { // 4 - 8
4: 3
5: 5
6: 5
7: 5
8: 1
default: 5
}
1: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
getfield sun.nio.ch.NativeObject.address:J
invokevirtual sun.nio.ch.NativeObject.putLong:(IJ)V
2: goto 6
3: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 2
getfield sun.nio.ch.NativeObject.address:J
ldc -1
land
l2i
invokevirtual sun.nio.ch.NativeObject.putInt:(II)V
4: goto 6
5: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
ldc "Address size not supported"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/NativeObject;
0 7 1 offset I
0 7 2 ob Lsun/nio/ch/NativeObject;
MethodParameters:
Name Flags
offset
ob
final byte getByte(int);
descriptor: (I)B
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
final void putByte(int, byte);
descriptor: (IB)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
iload 2
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/NativeObject;
0 2 1 offset I
0 2 2 value B
MethodParameters:
Name Flags
offset
value
final short getShort(int);
descriptor: (I)S
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getShort:(J)S
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
final void putShort(int, short);
descriptor: (IS)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
iload 2
invokevirtual jdk.internal.misc.Unsafe.putShort:(JS)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/NativeObject;
0 2 1 offset I
0 2 2 value S
MethodParameters:
Name Flags
offset
value
final char getChar(int);
descriptor: (I)C
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getChar:(J)C
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
final void putChar(int, char);
descriptor: (IC)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
iload 2
invokevirtual jdk.internal.misc.Unsafe.putChar:(JC)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/NativeObject;
0 2 1 offset I
0 2 2 value C
MethodParameters:
Name Flags
offset
value
final int getInt(int);
descriptor: (I)I
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getInt:(J)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
final void putInt(int, int);
descriptor: (II)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
iload 2
invokevirtual jdk.internal.misc.Unsafe.putInt:(JI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/NativeObject;
0 2 1 offset I
0 2 2 value I
MethodParameters:
Name Flags
offset
value
final long getLong(int);
descriptor: (I)J
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getLong:(J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
final void putLong(int, long);
descriptor: (IJ)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
lload 2
invokevirtual jdk.internal.misc.Unsafe.putLong:(JJ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/NativeObject;
0 2 1 offset I
0 2 2 value J
MethodParameters:
Name Flags
offset
value
final float getFloat(int);
descriptor: (I)F
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getFloat:(J)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
final void putFloat(int, float);
descriptor: (IF)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
fload 2
invokevirtual jdk.internal.misc.Unsafe.putFloat:(JF)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/NativeObject;
0 2 1 offset I
0 2 2 value F
MethodParameters:
Name Flags
offset
value
final double getDouble(int);
descriptor: (I)D
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
invokevirtual jdk.internal.misc.Unsafe.getDouble:(J)D
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeObject;
0 1 1 offset I
MethodParameters:
Name Flags
offset
final void putDouble(int, double);
descriptor: (ID)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
iload 1
i2l
aload 0
getfield sun.nio.ch.NativeObject.address:J
ladd
dload 2
invokevirtual jdk.internal.misc.Unsafe.putDouble:(JD)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/NativeObject;
0 2 1 offset I
0 2 2 value D
MethodParameters:
Name Flags
offset
value
static int addressSize();
descriptor: ()I
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
invokevirtual jdk.internal.misc.Unsafe.addressSize:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
static java.nio.ByteOrder byteOrder();
descriptor: ()Ljava/nio/ByteOrder;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=0
0: getstatic sun.nio.ch.NativeObject.byteOrder:Ljava/nio/ByteOrder;
ifnull 2
1: getstatic sun.nio.ch.NativeObject.byteOrder:Ljava/nio/ByteOrder;
areturn
2: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
ldc 8
invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
lstore 0
start local 0 3: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
lload 0
ldc 72623859790382856
invokevirtual jdk.internal.misc.Unsafe.putLong:(JJ)V
4: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
lload 0
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
istore 2
start local 2 5: iload 2
lookupswitch { // 2
1: 6
8: 7
default: 8
}
6: StackMap locals: long int
StackMap stack:
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
putstatic sun.nio.ch.NativeObject.byteOrder:Ljava/nio/ByteOrder;
goto 12
7: StackMap locals:
StackMap stack:
getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
putstatic sun.nio.ch.NativeObject.byteOrder:Ljava/nio/ByteOrder;
goto 12
8: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.NativeObject.$assertionsDisabled:Z
ifne 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 2 9: StackMap locals: long
StackMap stack: java.lang.Throwable
astore 3
10: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
lload 0
invokevirtual jdk.internal.misc.Unsafe.freeMemory:(J)V
11: aload 3
athrow
12: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
lload 0
invokevirtual jdk.internal.misc.Unsafe.freeMemory:(J)V
13: getstatic sun.nio.ch.NativeObject.byteOrder:Ljava/nio/ByteOrder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
3 14 0 a J
5 9 2 b B
Exception table:
from to target type
3 9 9 any
static int pageSize();
descriptor: ()I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic sun.nio.ch.NativeObject.pageSize:I
istore 0
start local 0 1: iload 0
iconst_m1
if_icmpne 3
2: getstatic sun.nio.ch.NativeObject.unsafe:Ljdk/internal/misc/Unsafe;
invokevirtual jdk.internal.misc.Unsafe.pageSize:()I
dup
istore 0
putstatic sun.nio.ch.NativeObject.pageSize:I
3: StackMap locals: int
StackMap stack:
iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 value I
}
SourceFile: "NativeObject.java"