Disassemble Java JIT compiled native bytecode

前端 未结 5 2129
眼角桃花
眼角桃花 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:13

    Check out the Oracle Solaris Studio Performance Analyzer. I saw Charlie Hunt demo it at a conference, and it was simply breathtaking. It lets you do runtime debugging and disassembly of Java applications, i.e. view the machine instructions with hotspots actually highlighted. See also this book excerpt: http://charliehunt.ulitzer.com/node/2067673

    More documentation: Oracle Solaris Studio 12.2: Performance Analyzer

提交回复
热议问题