mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
bac125984c
commit
f557cc8bd0
3 changed files with 20 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue