6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld

Add safepoint after CompileTheWorldSafepointInterval (100) compilations and do full sweep of CodeCache each time.

Reviewed-by: never
This commit is contained in:
Eric Caspole 2010-01-26 08:53:24 -08:00 committed by Vladimir Kozlov
parent bac125984c
commit f557cc8bd0
3 changed files with 20 additions and 0 deletions

View file

@ -2815,6 +2815,15 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
DebugNonSafepoints = true;
}
#ifndef PRODUCT
if (CompileTheWorld) {
// Force NmethodSweeper to sweep whole CodeCache each time.
if (FLAG_IS_DEFAULT(NmethodSweepFraction)) {
NmethodSweepFraction = 1;
}
}
#endif
if (PrintCommandLineFlags) {
CommandLineFlags::printSetFlags();
}