[arguments] VM Arguments:
[arguments] jvm_args: -Xlog:all=trace
[arguments] java_command: HelloWorld
[arguments] java_class_path (initial): .
[arguments] Launcher Type: SUN_STANDARD
[os ] Initial active processor count set to 11
[gc,heap ] Maximum heap size 9663676416
[gc,heap ] Initial heap size 603979776
[gc,heap ] Minimum heap size 1363144
[metaspace] - commit_granule_bytes: 65536.
[metaspace] - commit_granule_words: 8192.
[metaspace] - virtual_space_node_default_size: 8388608.
[metaspace] - enlarge_chunks_in_place: 1.
[os ] Use of CLOCK_MONOTONIC is supported
[os ] Use of pthread_condattr_setclock is not supported
[perf,datacreation] name = sun.rt._sync_Inflations, dtype = 11, variability = 2, units = 4, dsize = 8, vlen = 0, pad_length = 4, size = 56, on_c_heap = FALSE, address = 0x0000000100c2c020, data address = 0x0000000100c2c050
[gc ] Using G1
[gc,heap,coops] Trying to allocate at address 0x00000005c0000000 heap of size 0x240000000
[os,map ] Reserved [0x00000005c0000000 - 0x0000000800000000), (9663676416 bytes)
[gc,heap,coops] Heap address: 0x00000005c0000000, size: 9216 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
[cds] trying to map [Java home]/lib/server/classes.jsa
[cds] Opened archive [Java home]/lib/server/classes.jsa
[metaspace,map] Trying to reserve at an EOR-compatible address
[metaspace,map] Mapped at 0x00001fff00000000
public class HelloWorld extends Object {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
public class Object {
public Object() {}
public final native Class<?> getClass()
public native int hashCode()
public boolean equals(Object obj)
protected native Object clone() throws CloneNotSupportedException
public String toString()
public final native void notify();
public final native void notifyAll();
public final void wait() throws InterruptedException
public final void wait(long timeoutMillis) throws InterruptedException
public final void wait(long timeoutMillis, int nanos) throws InterruptedException
protected void finalize() throws Throwable { }
}
public final class String
implements java.io.Serializable, Comparable<String>, CharSequence,
Constable, ConstantDesc
[class,load] java.io.Serializable source: jrt:/java.base
[class,load] java.lang.Comparable source: jrt:/java.base
[class,load] java.lang.CharSequence source: jrt:/java.base
[class,load] java.lang.constant.Constable source: jrt:/java.base
[class,load] java.lang.constant.ConstantDesc source: jrt:/java.base
[class,load] java.lang.String source: jrt:/java.base
public final class Class<T>
implements java.io.Serializable, GenericDeclaration, Type, AnnotatedElement, TypeDescriptor.OfField<Class<?>>, Constable
[class,load] java.lang.reflect.AnnotatedElement source: jrt:/java.base
[class,load] java.lang.reflect.GenericDeclaration source: jrt:/java.base
[class,load] java.lang.reflect.Type source: jrt:/java.base
[class,load] java.lang.invoke.TypeDescriptor source: jrt:/java.base
[class,load] java.lang.invoke.TypeDescriptor$OfField source: jrt:/java.base
[class,load] java.lang.Class source: jrt:/java.base
[class,init ] Start class verification for: HelloWorld
[verification ] Verifying class HelloWorld with new format
[verification ] Verifying method HelloWorld.<init>()V
[verification ] table = {
[verification ] }
[verification ] bci: @0
[verification ] flags: { flagThisUninit }
[verification ] locals: { uninitializedThis }
[verification ] stack: { }
[verification ] offset = 0, opcode = aload_0
[verification ] bci: @1
class MyClass {
static int myStaticInt = 10; //Initialized to 0
static int myStaticInitializedInt; //Initialized to 0
int myInstanceInt = 30; //Not initialized
static {
myStaticInitializedInt = 20;
}
}
$ javap -verbose MyClass
Constant pool:
#1 = Methodref #2.#3 // java/lang/Object."<init>":()V
#2 = Class #4 // java/lang/Object
#3 = NameAndType #5:#6 // "<init>":()V
#4 = Utf8 java/lang/Object
#5 = Utf8 <init>
#6 = Utf8 ()V
#7 = Fieldref #8.#9 // MyClass.myInstanceInt:I
#8 = Class #10 // MyClass
#9 = NameAndType #11:#12 // myInstanceInt:I
#10 = Utf8 MyClass
#11 = Utf8 myInstanceInt
#12 = Utf8 I
#13 = Fieldref #8.#14 // MyClass.myStaticInt:I
#14 = NameAndType #15:#12 // myStaticInt:I
#15 = Utf8 myStaticInt
#16 = Fieldref #8.#17 // MyClass.myStaticInitializedInt:I
#17 = NameAndType #18:#12 // myStaticInitializedInt:I
#18 = Utf8 myStaticInitializedInt
#19 = Utf8 Code
#20 = Utf8 LineNumberTable
#21 = Utf8 <clinit>
#22 = Utf8 SourceFile
#23 = Utf8 MyClass.java
{
static int myStaticInt;
descriptor: I
flags: (0x0008) ACC_STATIC
static int myStaticInitializedInt;
descriptor: I
flags: (0x0008) ACC_STATIC
int myInstanceInt;
descriptor: I
flags: (0x0000)
MyClass();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: aload_0
5: bipush 30
7: putfield #7 // Field myInstanceInt:I
10: return
LineNumberTable:
line 1: 0
line 4: 4
static {};
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: bipush 10
2: putstatic #13 // Field myStaticInt:I
5: bipush 20
7: putstatic #16 // Field myStaticInitializedInt:I
10: return
LineNumberTable:
line 2: 0
line 6: 5
line 7: 10
}
MyClass();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
0: aload_0
1: invokespecial #1 //Method java/lang/Object."<init>":()V
4: aload_0
5: bipush 30
7: putfield #7 //Field myInstanceInt:I
10: return
LineNumberTable:
line 1: 0
line 4: 4
#1 = Methodref #2.#3 // java/lang/Object."<init>":()V
#2 = Class #4 // java/lang/Object
#3 = NameAndType #5:#6 // "<init>":()V
#4 = Utf8 java/lang/Object
#5 = Utf8 <init>
#6 = Utf8 ()V
#7 = Fieldref #8.#9 // MyClass.myInstanceInt:I
#8 = Class #10 // MyClass
#9 = NameAndType #11:#12 // myInstanceInt:I
#10 = Utf8 MyClass
#11 = Utf8 myInstanceInt
#12 = Utf8 I
#13 = Fieldref #8.#14 // MyClass.myStaticInt:I
#14 = NameAndType #15:#12 // myStaticInt:I
#15 = Utf8 myStaticInt
#16 = Fieldref #8.#17 // MyClass.myStaticInitializedInt:I
#17 = NameAndType #18:#12 // myStaticInitializedInt:I
#18 = Utf8 myStaticInitializedInt
#19 = Utf8 Code
#20 = Utf8 LineNumberTable
#21 = Utf8 <clinit>
#22 = Utf8 SourceFile
#23 = Utf8 MyClass.java
static {};
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: bipush 10
2: putstatic #13 // Field myStaticInt:I
5: bipush 20
7: putstatic #16 // Field myStaticInitializedInt:I
10: return
LineNumberTable:
line 2: 0
line 6: 5
line 7: 10
[0.062s][debug][class,resolve] java.io.FileOutputStream
...
Hello World!