public final class jdk.internal.foreign.MemoryAddressImpl implements jdk.incubator.foreign.MemoryAddress, jdk.internal.access.foreign.MemoryAddressProxy
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.foreign.MemoryAddressImpl
super_class: java.lang.Object
{
private static final jdk.internal.misc.Unsafe UNSAFE;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final jdk.internal.foreign.MemorySegmentImpl segment;
descriptor: Ljdk/internal/foreign/MemorySegmentImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long offset;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic jdk.internal.foreign.MemoryAddressImpl.UNSAFE:Ljdk/internal/misc/Unsafe;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(jdk.internal.foreign.MemorySegmentImpl, long);
descriptor: (Ljdk/internal/foreign/MemorySegmentImpl;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.foreign.MemorySegmentImpl
putfield jdk.internal.foreign.MemoryAddressImpl.segment:Ljdk/internal/foreign/MemorySegmentImpl;
2: aload 0
lload 2
putfield jdk.internal.foreign.MemoryAddressImpl.offset:J
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/foreign/MemoryAddressImpl;
0 4 1 segment Ljdk/internal/foreign/MemorySegmentImpl;
0 4 2 offset J
MethodParameters:
Name Flags
segment
offset
public static void copy(jdk.internal.foreign.MemoryAddressImpl, jdk.internal.foreign.MemoryAddressImpl, long);
descriptor: (Ljdk/internal/foreign/MemoryAddressImpl;Ljdk/internal/foreign/MemoryAddressImpl;J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
lconst_0
lload 2
iconst_1
invokevirtual jdk.internal.foreign.MemoryAddressImpl.checkAccess:(JJZ)V
1: aload 1
lconst_0
lload 2
iconst_0
invokevirtual jdk.internal.foreign.MemoryAddressImpl.checkAccess:(JJZ)V
2: aload 0
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetOffset:()J
lstore 4
start local 4 3: aload 1
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetOffset:()J
lstore 6
start local 6 4: aload 0
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetBase:()Ljava/lang/Object;
astore 8
start local 8 5: aload 1
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetBase:()Ljava/lang/Object;
astore 9
start local 9 6: getstatic jdk.internal.foreign.MemoryAddressImpl.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 8
lload 4
aload 9
lload 6
lload 2
invokevirtual jdk.internal.misc.Unsafe.copyMemory:(Ljava/lang/Object;JLjava/lang/Object;JJ)V
7: return
end local 9 end local 8 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 src Ljdk/internal/foreign/MemoryAddressImpl;
0 8 1 dst Ljdk/internal/foreign/MemoryAddressImpl;
0 8 2 size J
3 8 4 offsetSrc J
4 8 6 offsetDst J
5 8 8 baseSrc Ljava/lang/Object;
6 8 9 baseDst Ljava/lang/Object;
MethodParameters:
Name Flags
src
dst
size
public long offset();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.offset:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryAddressImpl;
public jdk.incubator.foreign.MemorySegment segment();
descriptor: ()Ljdk/incubator/foreign/MemorySegment;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.segment:Ljdk/internal/foreign/MemorySegmentImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryAddressImpl;
public jdk.incubator.foreign.MemoryAddress addOffset(long);
descriptor: (J)Ljdk/incubator/foreign/MemoryAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: new jdk.internal.foreign.MemoryAddressImpl
dup
aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.segment:Ljdk/internal/foreign/MemorySegmentImpl;
aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.offset:J
lload 1
ladd
invokespecial jdk.internal.foreign.MemoryAddressImpl.<init>:(Ljdk/internal/foreign/MemorySegmentImpl;J)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryAddressImpl;
0 1 1 bytes J
MethodParameters:
Name Flags
bytes
public void checkAccess(long, long, boolean);
descriptor: (JJZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 3 start local 5 0: aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.segment:Ljdk/internal/foreign/MemorySegmentImpl;
aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.offset:J
lload 1
ladd
lload 3
iload 5
ifeq 1
iconst_0
goto 2
StackMap locals: jdk.internal.foreign.MemoryAddressImpl long long int
StackMap stack: jdk.internal.foreign.MemorySegmentImpl long long
1: iconst_1
StackMap locals: jdk.internal.foreign.MemoryAddressImpl long long int
StackMap stack: jdk.internal.foreign.MemorySegmentImpl long long int
2: invokevirtual jdk.internal.foreign.MemorySegmentImpl.checkRange:(JJZ)V
3: return
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/foreign/MemoryAddressImpl;
0 4 1 offset J
0 4 3 length J
0 4 5 readOnly Z
MethodParameters:
Name Flags
offset
length
readOnly
public long unsafeGetOffset();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.segment:Ljdk/internal/foreign/MemorySegmentImpl;
getfield jdk.internal.foreign.MemorySegmentImpl.min:J
aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.offset:J
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryAddressImpl;
public java.lang.Object unsafeGetBase();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.segment:Ljdk/internal/foreign/MemorySegmentImpl;
invokevirtual jdk.internal.foreign.MemorySegmentImpl.base:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryAddressImpl;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetBase:()Ljava/lang/Object;
aastore
dup
iconst_1
aload 0
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetOffset:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.util.Objects.hash:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryAddressImpl;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.internal.foreign.MemoryAddressImpl
ifeq 6
1: aload 1
checkcast jdk.internal.foreign.MemoryAddressImpl
astore 2
start local 2 2: aload 0
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetBase:()Ljava/lang/Object;
aload 1
checkcast jdk.internal.foreign.MemoryAddressImpl
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetBase:()Ljava/lang/Object;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 5
3: aload 0
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetOffset:()J
aload 2
invokevirtual jdk.internal.foreign.MemoryAddressImpl.unsafeGetOffset:()J
lcmp
ifne 5
4: iconst_1
ireturn
StackMap locals: jdk.internal.foreign.MemoryAddressImpl
StackMap stack:
5: iconst_0
ireturn
end local 2 6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/foreign/MemoryAddressImpl;
0 7 1 that Ljava/lang/Object;
2 6 2 addr Ljdk/internal/foreign/MemoryAddressImpl;
MethodParameters:
Name Flags
that
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "MemoryAddress{ region: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.segment:Ljdk/internal/foreign/MemorySegmentImpl;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " offset=0x"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.foreign.MemoryAddressImpl.offset:J
invokestatic java.lang.Long.toHexString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " }"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/foreign/MemoryAddressImpl;
}
SourceFile: "MemoryAddressImpl.java"