下载
根据控制台报错提示,下载需要的包,放在jdk/jre/bin/serve
r下
hsdis-amd64.dll
hsdis-i386.dll
设置
1.run->edit config->设置VM参数为:
-server -Xcomp -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly -XX:CompileCommand=compileonly
2.指定jre
PrintAssembly is disabled
放入jre/lib
下
hsdis-amd64.dylib
相关链接
使用IDEA和hsdis-amd64.dll工具查看运行Java代码生成的汇编指令
JIT中的PrintAssembly
jitwatch 和hidis
使用IDEA查看运行Java代码生成的汇编指令