mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8007036: G1: Too many old regions added to last mixed GC
Stop adding old regions to collection set when the remaining reclaimable bytes reaches, or goes below, G1HeapWastePercent. Changes were also reviewed by Vitaly Davidovich <vitalyd@gmail.com>. Reviewed-by: brutisso
This commit is contained in:
parent
37aa83449e
commit
a3a42c48e8
4 changed files with 101 additions and 55 deletions
|
@ -619,6 +619,18 @@ private:
|
|||
bool predict_will_fit(uint young_length, double base_time_ms,
|
||||
uint base_free_regions, double target_pause_time_ms);
|
||||
|
||||
// Calculate the minimum number of old regions we'll add to the CSet
|
||||
// during a mixed GC.
|
||||
uint calc_min_old_cset_length();
|
||||
|
||||
// Calculate the maximum number of old regions we'll add to the CSet
|
||||
// during a mixed GC.
|
||||
uint calc_max_old_cset_length();
|
||||
|
||||
// Returns the given amount of uncollected reclaimable space
|
||||
// as a percentage of the current heap capacity.
|
||||
double reclaimable_bytes_perc(size_t reclaimable_bytes);
|
||||
|
||||
public:
|
||||
|
||||
G1CollectorPolicy();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue