Skip to content

Instantly share code, notes, and snippets.

@ytoshima
ytoshima / gist:1369656
Created November 16, 2011 09:17
PrintIdeal PrintCompilation output example
$ ~/jdk1.7.0-b147/fastdebug/bin/java -XX:+PrintCompilation -XX:+PrintIdeal -XX:CICompilerCount=1 sum
214 1 sum::doit (22 bytes)
VM option '+PrintCompilation'
VM option '+PrintIdeal'
VM option 'CICompilerCount=1'
21 ConI === 0 [[ 180 ]] #int:0
180 Phi === 184 21 70 [[ 179 ]] #int !orig=[159],[139],[66] !jvms:
sum::doit @ bci:10
179 AddI === _ 180 181 [[ 178 ]] !orig=[154],[137],70,[145] !jvms: su
@ytoshima
ytoshima / PrintIdealGraphFile-output-example.xml
Created November 16, 2011 08:56
PrintIdealGraphFile output example
<graphDocument>
<group>
<properties>
<p name="name"> virtual jint Call.doit()</p>
</properties>
<graph name="Bytecode 0: aload_0">
<nodes>
<node id="159337448">
<properties>
<p name="name"> Root</p>
@ytoshima
ytoshima / C2-IR-Node-Classes
Created November 16, 2011 08:50
C2 IR Node classes
Node
AbsNode
AbsDNode
AbsFNode
AbsINode
AddNode
AddDNode
AddFNode
AddINode
AddLNode
@ytoshima
ytoshima / interp.dump.txt
Created October 22, 2011 01:06
A gdb macro which dumps java7 HotSpot JVM linux/32-bit interpreter codelets and an output
AbstractInterpreter::_code : StubQueue * = 0xb49150c0
_stub_buffer : 0xb6f7a6c0
_number_of_stubs: 0x103
Codelet @ 0xb6f7a6c0 128 -1 0xffffffff 0x10c81a1: "slow signature handler"
Dump of assembler code from 0xb6f7a6e0 to 0xb6f7a740:
0xb6f7a6e0: mov %esp,%ecx
0xb6f7a6e2: call 0xb6f7a6ec
0xb6f7a6e7: jmp 0xb6f7a73f
0xb6f7a6ec: push %ecx
0xb6f7a6ed: push %edi