Request review: 4360113: Evict nmethods when code cache gets full

Eric Caspole eric.caspole at
Wed Jan 13 16:25:48 PST 2010

Hi Vladimir,
I updated the webrev using an enum for that parameter as we discussed  


On Jan 8, 2010, at 11:34 AM, Vladimir Kozlov wrote:

> Eric Caspole wrote:
>> Could you send me a cmd line for trying CompileTheWorld? I don't  
>> think I am doing it right, I tried:
>> $ time /home/ecaspole/jdk1.6.0_16/bin/java -XX:+CompileTheWorld - 
>> XX:+PrintCompilation  -version
>> VM option '+CompileTheWorld'
>> VM option '+PrintCompilation'
>> CompileTheWorld : Compiling all classes in /home/ecaspole/ 
>> jdk1.6.0_16/jre/lib/resources.jar
> You need to specify .jar file you want to process, for example:
> -Xbootclasspath/p:/home/ecaspole/jdk1.6.0_16/jre/lib/rt.jar
> And eith -version VM will exit, use -showversion.
>>> Actually, I don't understand why it is need to be atomic.
>>> It is always one direction change:
>>> compiler broker change it to "false" and
>>> only sweeper (at safepoint) change it to "true".
>> What I was going for here is that when there are multiple compiler  
>> threads, probably more than one will hit the full condition more  
>> at less at once. I want to get the flag set and let me know if I  
>> actually set it. If I won to set it, I will run the cleaning op,  
>> otherwise I will go back and block and wait on the compile queue  
>> until the flag gets set back to true.
> I see. I still want to use "1" instead of "true" for initialization
> since in all places you use "1" or "0".
> Vladimir

More information about the hotspot-compiler-dev mailing list