Java: JIT method inlining

前端 未结 3 1662
被撕碎了的回忆
被撕碎了的回忆 2020-12-06 16:41

When does Java JIT inline a method call? Is it based on #times the caller method is called (if yes, what would that number be?), or some other criteria (and what wo

3条回答
  •  死守一世寂寞
    2020-12-06 17:28

    the default inline threshold for a JVM running the server Hotspot compiler is 35 bytecodes.

    Official docs

提交回复
热议问题