diff src/share/vm/runtime/globals.hpp @ 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 3d6016e040d6
children f3345b7b01b4 5f24d0319e54
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.hpp	Wed Jan 20 22:10:33 2010 -0800
+++ b/src/share/vm/runtime/globals.hpp	Tue Jan 26 08:53:24 2010 -0800
@@ -2447,6 +2447,9 @@
   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")         \
                                                                             \