public final class org.graalvm.nativeimage.UnmanagedMemory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.nativeimage.UnmanagedMemory
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/nativeimage/UnmanagedMemory;
public static <T extends org.graalvm.word.PointerBase> T malloc(org.graalvm.word.UnsignedWord);
descriptor: (Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc Lorg/graalvm/nativeimage/impl/UnmanagedMemorySupport;
invokestatic org.graalvm.nativeimage.ImageSingletons.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.graalvm.nativeimage.impl.UnmanagedMemorySupport
aload 0
invokeinterface org.graalvm.nativeimage.impl.UnmanagedMemorySupport.malloc:(Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
astore 1
start local 1 1: aload 1
invokeinterface org.graalvm.word.PointerBase.isNull:()Z
ifeq 3
2: new java.lang.OutOfMemoryError
dup
ldc "malloc of unmanaged memory"
invokespecial java.lang.OutOfMemoryError.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.graalvm.word.PointerBase
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 size Lorg/graalvm/word/UnsignedWord;
1 4 1 result TT;
Signature: <T::Lorg/graalvm/word/PointerBase;>(Lorg/graalvm/word/UnsignedWord;)TT;
MethodParameters:
Name Flags
size
public static <T extends org.graalvm.word.PointerBase> T malloc();
descriptor: (I)Lorg/graalvm/word/PointerBase;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic org.graalvm.word.WordFactory.unsigned:(I)Lorg/graalvm/word/UnsignedWord;
invokestatic org.graalvm.nativeimage.UnmanagedMemory.malloc:(Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size I
Signature: <T::Lorg/graalvm/word/PointerBase;>(I)TT;
MethodParameters:
Name Flags
size
public static <T extends org.graalvm.word.PointerBase> T calloc(org.graalvm.word.UnsignedWord);
descriptor: (Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc Lorg/graalvm/nativeimage/impl/UnmanagedMemorySupport;
invokestatic org.graalvm.nativeimage.ImageSingletons.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.graalvm.nativeimage.impl.UnmanagedMemorySupport
aload 0
invokeinterface org.graalvm.nativeimage.impl.UnmanagedMemorySupport.calloc:(Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
astore 1
start local 1 1: aload 1
invokeinterface org.graalvm.word.PointerBase.isNull:()Z
ifeq 3
2: new java.lang.OutOfMemoryError
dup
ldc "calloc of unmanaged memory"
invokespecial java.lang.OutOfMemoryError.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.graalvm.word.PointerBase
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 size Lorg/graalvm/word/UnsignedWord;
1 4 1 result TT;
Signature: <T::Lorg/graalvm/word/PointerBase;>(Lorg/graalvm/word/UnsignedWord;)TT;
MethodParameters:
Name Flags
size
public static <T extends org.graalvm.word.PointerBase> T calloc();
descriptor: (I)Lorg/graalvm/word/PointerBase;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic org.graalvm.word.WordFactory.unsigned:(I)Lorg/graalvm/word/UnsignedWord;
invokestatic org.graalvm.nativeimage.UnmanagedMemory.calloc:(Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size I
Signature: <T::Lorg/graalvm/word/PointerBase;>(I)TT;
MethodParameters:
Name Flags
size
public static <T extends org.graalvm.word.PointerBase> T realloc(T, org.graalvm.word.UnsignedWord);
descriptor: (Lorg/graalvm/word/PointerBase;Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: ldc Lorg/graalvm/nativeimage/impl/UnmanagedMemorySupport;
invokestatic org.graalvm.nativeimage.ImageSingletons.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.graalvm.nativeimage.impl.UnmanagedMemorySupport
aload 0
aload 1
invokeinterface org.graalvm.nativeimage.impl.UnmanagedMemorySupport.realloc:(Lorg/graalvm/word/PointerBase;Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/PointerBase;
astore 2
start local 2 1: aload 2
invokeinterface org.graalvm.word.PointerBase.isNull:()Z
ifeq 3
2: new java.lang.OutOfMemoryError
dup
ldc "realloc of unmanaged memory"
invokespecial java.lang.OutOfMemoryError.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.graalvm.word.PointerBase
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ptr TT;
0 4 1 size Lorg/graalvm/word/UnsignedWord;
1 4 2 result TT;
Signature: <T::Lorg/graalvm/word/PointerBase;>(TT;Lorg/graalvm/word/UnsignedWord;)TT;
MethodParameters:
Name Flags
ptr
size
public static void free(org.graalvm.word.PointerBase);
descriptor: (Lorg/graalvm/word/PointerBase;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc Lorg/graalvm/nativeimage/impl/UnmanagedMemorySupport;
invokestatic org.graalvm.nativeimage.ImageSingletons.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.graalvm.nativeimage.impl.UnmanagedMemorySupport
aload 0
invokeinterface org.graalvm.nativeimage.impl.UnmanagedMemorySupport.free:(Lorg/graalvm/word/PointerBase;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ptr Lorg/graalvm/word/PointerBase;
MethodParameters:
Name Flags
ptr
}
SourceFile: "UnmanagedMemory.java"