Mercurial > hg > graal-compiler
diff src/share/vm/runtime/arguments.cpp @ 1188:99af867dfa05
6919886: Sweep CodeCache more aggressively to reduce its usage for CompileTheWorld
Summary: Add safepoint after CompileTheWorldSafepointInterval (100) compilations and do full sweep of CodeCache each time.
Reviewed-by: never
Contributed-by: eric.caspole@amd.com
author | kvn |
---|---|
date | Tue, 26 Jan 2010 08:53:24 -0800 |
parents | 1fc01a2425ce |
children | 745c853ee57f 576e77447e3c |
line wrap: on
line diff
--- 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(); }