--- a/hotspot/src/share/vm/gc/g1/heapRegionSet.inline.hpp Thu Dec 10 15:27:16 2015 +0100
+++ b/hotspot/src/share/vm/gc/g1/heapRegionSet.inline.hpp Fri Dec 11 13:48:52 2015 +0100
@@ -33,7 +33,7 @@
assert_heap_region_set(hr->next() == NULL, "should not already be linked");
assert_heap_region_set(hr->prev() == NULL, "should not already be linked");
- _count.increment(1u, hr->capacity());
+ _length++;
hr->set_containing_set(this);
verify_region(hr);
}
@@ -45,8 +45,8 @@
assert_heap_region_set(hr->prev() == NULL, "should already be unlinked");
hr->set_containing_set(NULL);
- assert_heap_region_set(_count.length() > 0, "pre-condition");
- _count.decrement(1u, hr->capacity());
+ assert_heap_region_set(_length > 0, "pre-condition");
+ _length--;
}
inline void FreeRegionList::add_ordered(HeapRegion* hr) {