Skip to main content

Warm-Up Count ?

1 reply [Last post]
omrifouad
Offline
Joined: 2007-12-22
Points: 0

Java code execute at very different speeds during an application's lifetime. Initially, it might execute in interpreted mode; if it executes enough times (if it is hot), it becomes a candidate for compilation to native code.

Is it possible to know how much times should be a method iterated to become hot?

As far as i know, early JVM's do have a method invocation threshold (Client JVM: 1500 and Server JVM:10000). Do the new JVM's have the same threshold?

Thanks a lot,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
huntch
Offline
Joined: 2004-12-06
Points: 0

Yes, HotSpot uses 1500 & 10,000 as the compile thresholds for -client & -server compile thresholds respectively.

You can observe HotSpot JIT compilation activity using -XX:+PrintCompilation.