< prev index next >
src/hotspot/share/runtime/sweeper.cpp
Print this page
rev 51878 : 8211129: [Testbug] compiler/whitebox/ForceNMethodSweepTest.java fails after JDK-8132849
@@ -333,11 +333,10 @@
}
} else {
VM_MarkActiveNMethods op;
VMThread::execute(&op);
}
- _should_sweep = true;
}
}
void NMethodSweeper::sweeper_loop() {
bool timeout;
@@ -450,11 +449,11 @@
// Force stack scanning if there is only 10% free space in the code cache.
// We force stack scanning only if the non-profiled code heap gets full, since critical
// allocations go to the non-profiled heap and we must be make sure that there is
// enough space.
double free_percent = 1 / CodeCache::reverse_free_ratio(CodeBlobType::MethodNonProfiled) * 100;
- if (free_percent <= StartAggressiveSweepingAt) {
+ if (free_percent <= StartAggressiveSweepingAt || forced || _should_sweep) {
do_stack_scanning();
}
if (_should_sweep || forced) {
init_sweeper_log();
< prev index next >