equal
deleted
inserted
replaced
111 // Add the given number of bytes to the total number of allocated bytes in the old gen. |
111 // Add the given number of bytes to the total number of allocated bytes in the old gen. |
112 void add_bytes_allocated_in_old_since_last_gc(size_t bytes) { _bytes_allocated_in_old_since_last_gc += bytes; } |
112 void add_bytes_allocated_in_old_since_last_gc(size_t bytes) { _bytes_allocated_in_old_since_last_gc += bytes; } |
113 |
113 |
114 // Accessors |
114 // Accessors |
115 |
115 |
116 void set_region_eden(HeapRegion* hr, int young_index_in_cset) { |
116 void set_region_eden(HeapRegion* hr) { |
117 hr->set_eden(); |
117 hr->set_eden(); |
118 hr->install_surv_rate_group(_short_lived_surv_rate_group); |
118 hr->install_surv_rate_group(_short_lived_surv_rate_group); |
119 hr->set_young_index_in_cset(young_index_in_cset); |
119 } |
120 } |
120 |
121 |
121 void set_region_survivor(HeapRegion* hr) { |
122 void set_region_survivor(HeapRegion* hr, int young_index_in_cset) { |
|
123 assert(hr->is_survivor(), "pre-condition"); |
122 assert(hr->is_survivor(), "pre-condition"); |
124 hr->install_surv_rate_group(_survivor_surv_rate_group); |
123 hr->install_surv_rate_group(_survivor_surv_rate_group); |
125 hr->set_young_index_in_cset(young_index_in_cset); |
|
126 } |
124 } |
127 |
125 |
128 #ifndef PRODUCT |
126 #ifndef PRODUCT |
129 bool verify_young_ages(); |
127 bool verify_young_ages(); |
130 #endif // PRODUCT |
128 #endif // PRODUCT |