< prev index next >

src/share/vm/gc/g1/heapRegionSet.cpp

Print this page

        

*** 86,96 **** } HeapRegionSetBase::HeapRegionSetBase(const char* name, bool humongous, bool free, HRSMtSafeChecker* mt_safety_checker) : _name(name), _verify_in_progress(false), _is_humongous(humongous), _is_free(free), _mt_safety_checker(mt_safety_checker), ! _count() { } void FreeRegionList::set_unrealistically_long_length(uint len) { guarantee(_unrealistically_long_length == 0, "should only be set once"); _unrealistically_long_length = len; --- 86,96 ---- } HeapRegionSetBase::HeapRegionSetBase(const char* name, bool humongous, bool free, HRSMtSafeChecker* mt_safety_checker) : _name(name), _verify_in_progress(false), _is_humongous(humongous), _is_free(free), _mt_safety_checker(mt_safety_checker), ! _length() { } void FreeRegionList::set_unrealistically_long_length(uint len) { guarantee(_unrealistically_long_length == 0, "should only be set once"); _unrealistically_long_length = len;
*** 175,185 **** if (_tail->hrm_index() < from_list->_tail->hrm_index()) { _tail = from_list->_tail; } } ! _count.increment(from_list->length(), from_list->total_capacity_bytes()); from_list->clear(); verify_optional(); from_list->verify_optional(); } --- 175,185 ---- if (_tail->hrm_index() < from_list->_tail->hrm_index()) { _tail = from_list->_tail; } } ! _length += from_list->length(); from_list->clear(); verify_optional(); from_list->verify_optional(); }
*** 253,263 **** verify_end(); } void FreeRegionList::clear() { ! _count = HeapRegionSetCount(); _head = NULL; _tail = NULL; _last = NULL; } --- 253,263 ---- verify_end(); } void FreeRegionList::clear() { ! _length = 0; _head = NULL; _tail = NULL; _last = NULL; }
< prev index next >