Skip to content

Commit

Permalink
Backport cff9e246cc2fbd3914f40bb71daa85dcf7731396
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Aug 30, 2024
1 parent a9d755c commit 1c68ee4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hotspot/share/gc/shared/gcOverheadChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ void GCOverheadChecker::check_gc_overhead_limit(GCOverheadTester* time_overhead,
bool is_full_gc,
GCCause::Cause gc_cause,
SoftRefPolicy* soft_ref_policy) {

if (is_full_gc) {
// Explicit Full GC would do the clearing of soft-refs as well
// So reset in the beginning
soft_ref_policy->set_should_clear_all_soft_refs(false);
}
// Ignore explicit GC's. Exiting here does not set the flag and
// does not reset the count.
if (GCCause::is_user_requested_gc(gc_cause) ||
Expand Down

0 comments on commit 1c68ee4

Please sign in to comment.