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

@ -2447,6 +2447,9 @@ class CommandLineFlags {
notproduct(bool, CompileTheWorldIgnoreInitErrors, false, \
"Compile all methods although class initializer failed") \
\
notproduct(intx, CompileTheWorldSafepointInterval, 100, \
"Force a safepoint every n compiles so sweeper can keep up") \
\
develop(bool, TraceIterativeGVN, false, \
"Print progress during Iterative Global Value Numbering") \
\