< prev index next >

src/hotspot/share/gc/g1/g1ParScanThreadState.inline.hpp

Print this page
rev 52316 : imported patch 8212911-unify-reference-handling-during-gc
rev 52317 : imported patch 8212911-stefanj-review
rev 52319 : imported patch 8213142-use-raii-to-set-scanning-from-young

*** 112,122 **** // so that the heap remains parsable in case of evacuation failure. to_obj_array->set_length(end); } HeapRegion* hr = _g1h->heap_region_containing(to_obj); ! _scanner.set_scanning_in_young(hr->is_young()); // Process indexes [start,end). It will also process the header // along with the first chunk (i.e., the chunk with start == 0). // Note that at this point the length field of to_obj_array is not // correct given that we are using it to keep track of the next // start index. oop_iterate_range() (thankfully!) ignores the length --- 112,122 ---- // so that the heap remains parsable in case of evacuation failure. to_obj_array->set_length(end); } HeapRegion* hr = _g1h->heap_region_containing(to_obj); ! G1ScanInYoungSetter x(&_scanner, hr->is_young()); // Process indexes [start,end). It will also process the header // along with the first chunk (i.e., the chunk with start == 0). // Note that at this point the length field of to_obj_array is not // correct given that we are using it to keep track of the next // start index. oop_iterate_range() (thankfully!) ignores the length
< prev index next >