equal
deleted
inserted
replaced
43 class HeapRegion; |
43 class HeapRegion; |
44 class G1CollectionSet; |
44 class G1CollectionSet; |
45 class CollectionSetChooser; |
45 class CollectionSetChooser; |
46 class G1IHOPControl; |
46 class G1IHOPControl; |
47 class G1Analytics; |
47 class G1Analytics; |
|
48 class G1SurvivorRegions; |
48 class G1YoungGenSizer; |
49 class G1YoungGenSizer; |
49 |
50 |
50 class G1Policy: public CHeapObj<mtGC> { |
51 class G1Policy: public CHeapObj<mtGC> { |
51 public: |
52 public: |
52 virtual const G1Predictions& predictor() const = 0; |
53 virtual const G1Predictions& predictor() const = 0; |
137 virtual void record_bytes_copied_during_gc(size_t bytes) = 0; |
138 virtual void record_bytes_copied_during_gc(size_t bytes) = 0; |
138 |
139 |
139 // The amount of space we copied during a GC. |
140 // The amount of space we copied during a GC. |
140 virtual size_t bytes_copied_during_gc() const = 0; |
141 virtual size_t bytes_copied_during_gc() const = 0; |
141 |
142 |
142 virtual void finalize_collection_set(double target_pause_time_ms) = 0; |
143 virtual void finalize_collection_set(double target_pause_time_ms, G1SurvivorRegions* survivor) = 0; |
143 |
144 |
144 // This sets the initiate_conc_mark_if_possible() flag to start a |
145 // This sets the initiate_conc_mark_if_possible() flag to start a |
145 // new cycle, as long as we are not already in one. It's best if it |
146 // new cycle, as long as we are not already in one. It's best if it |
146 // is called during a safepoint when the test whether a cycle is in |
147 // is called during a safepoint when the test whether a cycle is in |
147 // progress or not is stable. |
148 // progress or not is stable. |
157 |
158 |
158 // Print stats on young survival ratio |
159 // Print stats on young survival ratio |
159 virtual void print_yg_surv_rate_info() const = 0; |
160 virtual void print_yg_surv_rate_info() const = 0; |
160 |
161 |
161 virtual void finished_recalculating_age_indexes(bool is_survivors) = 0; |
162 virtual void finished_recalculating_age_indexes(bool is_survivors) = 0; |
|
163 |
|
164 virtual void transfer_survivors_to_cset(const G1SurvivorRegions* survivors) = 0; |
162 |
165 |
163 virtual size_t young_list_target_length() const = 0; |
166 virtual size_t young_list_target_length() const = 0; |
164 |
167 |
165 virtual bool should_allocate_mutator_region() const = 0; |
168 virtual bool should_allocate_mutator_region() const = 0; |
166 |
169 |