class org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable
super_class: java.lang.Object
{
private final long start;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 // org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable this
start local 1 // java.lang.String name
0: .line 109
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 110
aload 0 /* this */
aload 1 /* name */
putfield org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable.name:Ljava/lang/String;
2: .line 111
aload 0 /* this */
invokestatic org.graalvm.compiler.debug.internal.MemUseTrackerImpl.getCurrentThreadAllocatedBytes:()J
putfield org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable.start:J
3: .line 112
return
end local 1 // java.lang.String name
end local 0 // org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/hotspot/test/MemoryUsageBenchmark$MemoryUsageCloseable;
0 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 // org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable this
0: .line 116
invokestatic org.graalvm.compiler.debug.internal.MemUseTrackerImpl.getCurrentThreadAllocatedBytes:()J
lstore 1 /* end */
start local 1 // long end
1: .line 117
lload 1 /* end */
aload 0 /* this */
getfield org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable.start:J
lsub
lstore 3 /* allocated */
start local 3 // long allocated
2: .line 118
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 0 /* this */
getfield org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable.name:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 3 /* allocated */
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: .line 119
return
end local 3 // long allocated
end local 1 // long end
end local 0 // org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/hotspot/test/MemoryUsageBenchmark$MemoryUsageCloseable;
1 4 1 end J
2 4 3 allocated J
}
SourceFile: "MemoryUsageBenchmark.java"
NestHost: org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark
InnerClasses:
MemoryUsageCloseable = org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable of org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark