src/share/vm/gc_implementation/g1/heapRegion.cpp

Print this page
rev 7107 : imported patch 8058298

*** 215,225 **** if (locked) { hrrs->clear_locked(); } else { hrrs->clear(); } - _claimed = InitialClaimValue; } zero_marked_bytes(); _offsets.resize(HeapRegion::GrainWords); init_top_at_mark_start(); --- 215,224 ----
*** 292,322 **** assert(capacity() == HeapRegion::GrainBytes, "pre-condition"); _humongous_start_region = NULL; } - bool HeapRegion::claimHeapRegion(jint claimValue) { - jint current = _claimed; - if (current != claimValue) { - jint res = Atomic::cmpxchg(claimValue, &_claimed, current); - if (res == current) { - return true; - } - } - return false; - } - HeapRegion::HeapRegion(uint hrm_index, G1BlockOffsetSharedArray* sharedOffsetArray, MemRegion mr) : G1OffsetTableContigSpace(sharedOffsetArray, mr), _hrm_index(hrm_index), _allocation_context(AllocationContext::system()), _humongous_start_region(NULL), _in_collection_set(false), _next_in_special_set(NULL), ! _claimed(InitialClaimValue), _evacuation_failed(false), _prev_marked_bytes(0), _next_marked_bytes(0), _gc_efficiency(0.0), _next_young_region(NULL), _next_dirty_cards_region(NULL), _next(NULL), _prev(NULL), #ifdef ASSERT _containing_set(NULL), --- 291,310 ---- assert(capacity() == HeapRegion::GrainBytes, "pre-condition"); _humongous_start_region = NULL; } HeapRegion::HeapRegion(uint hrm_index, G1BlockOffsetSharedArray* sharedOffsetArray, MemRegion mr) : G1OffsetTableContigSpace(sharedOffsetArray, mr), _hrm_index(hrm_index), _allocation_context(AllocationContext::system()), _humongous_start_region(NULL), _in_collection_set(false), _next_in_special_set(NULL), ! _evacuation_failed(false), _prev_marked_bytes(0), _next_marked_bytes(0), _gc_efficiency(0.0), _next_young_region(NULL), _next_dirty_cards_region(NULL), _next(NULL), _prev(NULL), #ifdef ASSERT _containing_set(NULL),