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 105
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 106
aload 0 /* this */
aload 1 /* name */
putfield org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable.name:Ljava/lang/String;
2: .line 107
aload 0 /* this */
invokestatic org.graalvm.compiler.debug.MemUseTrackerKey.getCurrentThreadAllocatedBytes:()J
putfield org.graalvm.compiler.hotspot.test.MemoryUsageBenchmark$MemoryUsageCloseable.start:J
3: .line 108
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 112
invokestatic org.graalvm.compiler.debug.MemUseTrackerKey.getCurrentThreadAllocatedBytes:()J
lstore 1 /* end */
start local 1 // long end
1: .line 113
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 114
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 115
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