Disassemble Java JIT compiled native bytecode

前端 未结 5 2133
眼角桃花
眼角桃花 2020-12-15 04:06

Is there any way to do an assembly dump of the native code generated by the Java just-in-time compiler?

And a related question: Is there any way to use the JIT compi

5条回答
  •  没有蜡笔的小新
    2020-12-15 04:33

    Yea I was also thinking it would be hard to obtain JIT native output but this guys paper keeps showing native code but doesn't say how he got the output. I can understand if the output from the JIT compiler would be inconsistent as it will change from time to time or get purged from the code cache only to be regenerated later on but how do you get a quick snapshot of some assembly for some code blocks. :|

    http://www.google.com/url?sa=t&rct=j&q=Java+annotation+for+optimization&source=web&cd=15&ved=0CKEBEBYwDg&url=http%3A%2F%2Floome.cs.uiuc.edu%2Fpubs%2Fjones-kamin.pdf&ei=8vj-UN63C-bQ2QX-9IDoDQ&usg=AFQjCNEegMNXLwKyUTTJ5ljgnP7X9rPXHg&bvm=bv.41248874,d.b2I

提交回复
热议问题