Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8244278: Excessive code cache flushes and sweeps
Reviewed-by: neliasso
  • Loading branch information
caoman authored and Nils Eliasson committed Jun 3, 2020
1 parent 99d6bea commit f7cb0f760f0460123b1a2a33ec48793eccf9c83a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hotspot/share/runtime/sweeper.cpp
@@ -275,7 +275,7 @@ void NMethodSweeper::report_allocation(int code_blob_type) {
bool NMethodSweeper::should_start_aggressive_sweep(int code_blob_type) {
// Makes sure that we do not invoke the sweeper too often during startup.
double start_threshold = 100.0 / (double)StartAggressiveSweepingAt;
double aggressive_sweep_threshold = MIN2(start_threshold, 1.1);
double aggressive_sweep_threshold = MAX2(start_threshold, 1.1);
return (CodeCache::reverse_free_ratio(code_blob_type) >= aggressive_sweep_threshold);
}

0 comments on commit f7cb0f7

Please sign in to comment.