草庐IT

CompileThreshold

全部标签

java - CompileThreshold、Tier2CompileThreshold、Tier3CompileThreshold 和 Tier4CompileThreshold 控制什么?

HotSpot的tieredcompilation使用解释器,直到调用(对于方法)或迭代(对于循环)的阈值触发具有self分析的客户端编译。使用客户端编译,直到另一个调用或迭代阈值触发服务器编译。PrintingHotSpot'sflags使用-XX:+TieredCompilation显示以下标志值。intxCompileThreshold=10000{pdproduct}intxTier2CompileThreshold=0{product}intxTier3CompileThreshold=2000{product}intxTier4CompileThreshold=15000{