How to find out what optimizations the JVM applied to my code?

后端 未结 4 911
谎友^
谎友^ 2021-02-08 14:26

The JVM (especially the HotSpot VM) is famous for having a huge number of optimizations it can apply at runtime.

Is there a way to look at a certain piece of code and se

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-08 15:20

    The following is a very good resource:

    http://wikis.sun.com/display/HotSpotInternals/Home

    Particularly interesting are the "LogCompilation tool" and "LogCompilation overview" links (can't post direct links as I've just registered).

提交回复
热议问题