|
[sajia@211 fxtest]$ java -version |
|
VM option '+PrintAssembly' |
|
VM option '+PrintCompilation' |
|
VM option '+PrintInlining' |
|
VM option 'CompileThreshold=10' |
|
OpenJDK 64-Bit Server VM warning: PrintAssembly is enabled; turning on DebugNonSafepoints to gain additional output |
|
CompilerOracle: exclude Main.main |
|
CompilerOracle: dontinline Main.doTest |
|
CompilerOracle: compileonly Main.doTest |
|
CompilerOracle: compileonly FxIntrinsics.* |
|
java version "1.6.0_30" |
|
Java(TM) SE Runtime Environment (build 1.6.0_30-b12) |
|
OpenJDK 64-Bit Server VM (build 20.0-b12-internal-fastdebug, mixed mode) |
|
[sajia@211 fxtest]$ java -Xbootclasspath/p:. Main |
|
VM option '+PrintAssembly' |
|
VM option '+PrintCompilation' |
|
VM option '+PrintInlining' |
|
VM option 'CompileThreshold=10' |
|
OpenJDK 64-Bit Server VM warning: PrintAssembly is enabled; turning on DebugNonSafepoints to gain additional output |
|
CompilerOracle: exclude Main.main |
|
CompilerOracle: dontinline Main.doTest |
|
CompilerOracle: compileonly Main.doTest |
|
CompilerOracle: compileonly FxIntrinsics.* |
|
FxIntrinsics.add(): normal Java version called. |
|
10 |
|
FxIntrinsics.add(): normal Java version called. |
|
11 |
|
FxIntrinsics.add(): normal Java version called. |
|
12 |
|
FxIntrinsics.add(): normal Java version called. |
|
13 |
|
FxIntrinsics.add(): normal Java version called. |
|
14 |
|
FxIntrinsics.add(): normal Java version called. |
|
15 |
|
FxIntrinsics.add(): normal Java version called. |
|
16 |
|
FxIntrinsics.add(): normal Java version called. |
|
17 |
|
FxIntrinsics.add(): normal Java version called. |
|
18 |
|
2285 1 Main::doTest (6 bytes) |
|
FxIntrinsics.add(): normal Java version called. 2286 2 FxIntrinsics::add (12 bytes) |
|
|
|
19 |
|
Loaded disassembler from /home/sajia/testjdk6u30/jre/lib/amd64/server/libhsdis-amd64.so |
|
Loaded disassembler from /home/sajia/testjdk6u30/jre/lib/amd64/server/libhsdis-amd64.so |
|
Inlining intrinsic _add_fx at bci:2 in Main::doTest (6 bytes) |
|
@ 5 java.io.PrintStream::println failed_initial_checks |
|
Decoding compiled method 0x00002aaaab122e50: |
|
Code: |
|
[Disassembling for mach='i386:x86-64'] |
|
[Entry Point] |
|
[Verified Entry Point] |
|
[Constants] |
|
# {method} 'doTest' '(II)I' in 'Main' |
|
# parm0: rsi = int |
|
# parm1: rdx = int |
|
# [sp+0x20] (sp of caller) |
|
0x00002aaaab122fa0: push %rbp |
|
0x00002aaaab122fa1: sub $0x10,%rsp |
|
0x00002aaaab122fa5: nop ;*synchronization entry |
|
; - Main::doTest@-1 (line 3) |
|
0x00002aaaab122fa6: mov %esi,%eax |
|
0x00002aaaab122fa8: add %edx,%eax ;*invokestatic add |
|
; - Main::doTest@2 (line 3) |
|
0x00002aaaab122faa: add $0x10,%rsp |
|
0x00002aaaab122fae: pop %rbp |
|
0x00002aaaab122faf: test %eax,-0x425fb5(%rip) # 0x00002aaaaacfd000 |
|
; {poll_return} |
|
0x00002aaaab122fb5: retq |
|
0x00002aaaab122fb6: hlt |
|
0x00002aaaab122fb7: hlt |
|
0x00002aaaab122fb8: hlt |
|
0x00002aaaab122fb9: hlt |
|
0x00002aaaab122fba: hlt |
|
0x00002aaaab122fbb: hlt |
|
0x00002aaaab122fbc: hlt |
|
0x00002aaaab122fbd: hlt |
|
0x00002aaaab122fbe: hlt |
|
0x00002aaaab122fbf: hlt |
|
[Exception Handler] |
|
[Stub Code] |
|
0x00002aaaab122fc0: jmpq 0x00002aaaab10b960 ; {no_reloc} |
|
[Deopt Handler Code] |
|
0x00002aaaab122fc5: callq 0x00002aaaab122fca |
|
0x00002aaaab122fca: subq $0x5,(%rsp) |
|
0x00002aaaab122fcf: jmpq 0x00002aaaab0fd7e0 ; {runtime_call} |
|
0x00002aaaab122fd4: int3 |
|
0x00002aaaab122fd5: int3 |
|
0x00002aaaab122fd6: int3 |
|
0x00002aaaab122fd7: int3 |
|
Decoding compiled method 0x00002aaaab122b10: |
|
Code: |
|
[Disassembling for mach='i386:x86-64'] |
|
[Entry Point] |
|
[Verified Entry Point] |
|
[Constants] |
|
# {method} 'add' '(II)I' in 'FxIntrinsics' |
|
# parm0: rsi = int |
|
# parm1: rdx = int |
|
# [sp+0x30] (sp of caller) |
|
0x00002aaaab122c60: mov %eax,-0x8000(%rsp) |
|
0x00002aaaab122c67: push %rbp |
|
0x00002aaaab122c68: sub $0x20,%rsp ;*synchronization entry |
|
; - FxIntrinsics::add@-1 (line 3) |
|
0x00002aaaab122c6c: mov %edx,(%rsp) |
|
0x00002aaaab122c6f: mov %esi,%ebp |
|
0x00002aaaab122c71: mov $0x60402f038,%r10 ; {oop('java/lang/System')} |
|
0x00002aaaab122c7b: mov 0x25c(%r10),%r11d ;*getstatic out |
|
; - FxIntrinsics::add@0 (line 3) |
|
0x00002aaaab122c82: test %r11d,%r11d |
|
0x00002aaaab122c85: je 0x00002aaaab122cad ;*invokevirtual println |
|
; - FxIntrinsics::add@5 (line 3) |
|
0x00002aaaab122c87: lea (%r12,%r11,8),%rsi ;*getstatic out |
|
; - FxIntrinsics::add@0 (line 3) |
|
0x00002aaaab122c8b: mov $0x604253ef8,%rdx ; {oop("FxIntrinsics.add(): normal Java version called.")} |
|
0x00002aaaab122c95: nop |
|
0x00002aaaab122c96: nop |
|
0x00002aaaab122c97: callq 0x00002aaaab0fc820 ; OopMap{off=60} |
|
;*invokevirtual println |
|
; - FxIntrinsics::add@5 (line 3) |
|
; {optimized virtual_call} |
|
0x00002aaaab122c9c: mov %ebp,%eax |
|
0x00002aaaab122c9e: add (%rsp),%eax ;*iadd |
|
; - FxIntrinsics::add@10 (line 4) |
|
0x00002aaaab122ca1: add $0x20,%rsp |
|
0x00002aaaab122ca5: pop %rbp |
|
0x00002aaaab122ca6: test %eax,-0x425cac(%rip) # 0x00002aaaaacfd000 |
|
; {poll_return} |
|
0x00002aaaab122cac: retq |
|
0x00002aaaab122cad: mov $0xfffffff6,%esi |
|
0x00002aaaab122cb2: nop |
|
0x00002aaaab122cb3: callq 0x00002aaaab0fdca0 ; OopMap{off=88} |
|
;*invokevirtual println |
|
; - FxIntrinsics::add@5 (line 3) |
|
; {runtime_call} |
|
0x00002aaaab122cb8: mov $0x2b260130ccb0,%r10 ; {runtime_call} |
|
0x00002aaaab122cc2: rex.WB callq *%r10 ;*invokevirtual println |
|
; - FxIntrinsics::add@5 (line 3) |
|
0x00002aaaab122cc5: mov %rax,%rsi |
|
0x00002aaaab122cc8: add $0x20,%rsp |
|
0x00002aaaab122ccc: pop %rbp |
|
0x00002aaaab122ccd: jmpq 0x00002aaaab1214a0 ; {runtime_call} |
|
0x00002aaaab122cd2: hlt |
|
0x00002aaaab122cd3: hlt |
|
0x00002aaaab122cd4: hlt |
|
0x00002aaaab122cd5: hlt |
|
0x00002aaaab122cd6: hlt |
|
0x00002aaaab122cd7: hlt |
|
0x00002aaaab122cd8: hlt |
|
0x00002aaaab122cd9: hlt |
|
0x00002aaaab122cda: hlt |
|
0x00002aaaab122cdb: hlt |
|
0x00002aaaab122cdc: hlt |
|
0x00002aaaab122cdd: hlt |
|
0x00002aaaab122cde: hlt |
|
0x00002aaaab122cdf: hlt |
|
[Stub Code] |
|
0x00002aaaab122ce0: mov $0x0,%rbx ; {no_reloc} |
|
0x00002aaaab122cea: jmpq 0x00002aaaab122cea ; {runtime_call} |
|
[Exception Handler] |
|
0x00002aaaab122cef: jmpq 0x00002aaaab10b960 ; {runtime_call} |
|
[Deopt Handler Code] |
|
0x00002aaaab122cf4: callq 0x00002aaaab122cf9 |
|
0x00002aaaab122cf9: subq $0x5,(%rsp) |
|
0x00002aaaab122cfe: jmpq 0x00002aaaab0fd7e0 ; {runtime_call} |
|
0x00002aaaab122d03: int3 |
|
0x00002aaaab122d04: int3 |
|
0x00002aaaab122d05: int3 |
|
0x00002aaaab122d06: int3 |
|
0x00002aaaab122d07: int3 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
[sajia@211 fxtest]$ java -Xbootclasspath/p:. Main 2>vm.log |
|
VM option '+PrintAssembly' |
|
VM option '+PrintCompilation' |
|
VM option '+PrintInlining' |
|
VM option 'CompileThreshold=10' |
|
VM option '+DisplayVMOutputToStderr' |
|
FxIntrinsics.add(): normal Java version called. |
|
10 |
|
FxIntrinsics.add(): normal Java version called. |
|
11 |
|
FxIntrinsics.add(): normal Java version called. |
|
12 |
|
FxIntrinsics.add(): normal Java version called. |
|
13 |
|
FxIntrinsics.add(): normal Java version called. |
|
14 |
|
FxIntrinsics.add(): normal Java version called. |
|
15 |
|
FxIntrinsics.add(): normal Java version called. |
|
16 |
|
FxIntrinsics.add(): normal Java version called. |
|
17 |
|
FxIntrinsics.add(): normal Java version called. |
|
18 |
|
FxIntrinsics.add(): normal Java version called. |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
[sajia@211 fxtest]$ |