diff -r cf0685d550f1 -r 99af867dfa05 src/share/vm/runtime/arguments.cpp --- a/src/share/vm/runtime/arguments.cpp Wed Jan 20 22:10:33 2010 -0800 +++ b/src/share/vm/runtime/arguments.cpp Tue Jan 26 08:53:24 2010 -0800 @@ -2815,6 +2815,15 @@ 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(); }