217 assert(_end == _orig_end, |
217 assert(_end == _orig_end, |
218 "we should have already filtered out humongous regions"); |
218 "we should have already filtered out humongous regions"); |
219 |
219 |
220 _in_collection_set = false; |
220 _in_collection_set = false; |
221 |
221 |
|
222 set_allocation_context(AllocationContext::system()); |
222 set_young_index_in_cset(-1); |
223 set_young_index_in_cset(-1); |
223 uninstall_surv_rate_group(); |
224 uninstall_surv_rate_group(); |
224 set_young_type(NotYoung); |
225 set_young_type(NotYoung); |
225 reset_pre_dummy_top(); |
226 reset_pre_dummy_top(); |
226 |
227 |
344 return low; |
345 return low; |
345 } |
346 } |
346 |
347 |
347 HeapRegion::HeapRegion(uint hrm_index, |
348 HeapRegion::HeapRegion(uint hrm_index, |
348 G1BlockOffsetSharedArray* sharedOffsetArray, |
349 G1BlockOffsetSharedArray* sharedOffsetArray, |
349 MemRegion mr) : |
350 MemRegion mr, AllocationContext_t context) : |
350 G1OffsetTableContigSpace(sharedOffsetArray, mr), |
351 G1OffsetTableContigSpace(sharedOffsetArray, mr), |
351 _hrm_index(hrm_index), |
352 _hrm_index(hrm_index), _allocation_context(context), |
352 _humongous_type(NotHumongous), _humongous_start_region(NULL), |
353 _humongous_type(NotHumongous), _humongous_start_region(NULL), |
353 _in_collection_set(false), |
354 _in_collection_set(false), |
354 _next_in_special_set(NULL), _orig_end(NULL), |
355 _next_in_special_set(NULL), _orig_end(NULL), |
355 _claimed(InitialClaimValue), _evacuation_failed(false), |
356 _claimed(InitialClaimValue), _evacuation_failed(false), |
356 _prev_marked_bytes(0), _next_marked_bytes(0), _gc_efficiency(0.0), |
357 _prev_marked_bytes(0), _next_marked_bytes(0), _gc_efficiency(0.0), |