Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 22724:2d21c13d7829
Add logic to verify HeapRegionRemSet when running G1
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 05 Nov 2015 15:18:36 -0800 |
parents | c28cb37b2e1d |
children | dd9cc155639c |
comparison
equal
deleted
inserted
replaced
22723:77d72f719a59 | 22724:2d21c13d7829 |
---|---|
6887 assert(hr->containing_set() == _old_set, err_msg("Heap region %u is old but not in the old set.", hr->hrm_index())); | 6887 assert(hr->containing_set() == _old_set, err_msg("Heap region %u is old but not in the old set.", hr->hrm_index())); |
6888 _old_count.increment(1u, hr->capacity()); | 6888 _old_count.increment(1u, hr->capacity()); |
6889 } else { | 6889 } else { |
6890 ShouldNotReachHere(); | 6890 ShouldNotReachHere(); |
6891 } | 6891 } |
6892 hr->rem_set()->verify(); | |
6892 return false; | 6893 return false; |
6893 } | 6894 } |
6894 | 6895 |
6895 void verify_counts(HeapRegionSet* old_set, HeapRegionSet* humongous_set, HeapRegionManager* free_list) { | 6896 void verify_counts(HeapRegionSet* old_set, HeapRegionSet* humongous_set, HeapRegionManager* free_list) { |
6896 guarantee(old_set->length() == _old_count.length(), err_msg("Old set count mismatch. Expected %u, actual %u.", old_set->length(), _old_count.length())); | 6897 guarantee(old_set->length() == _old_count.length(), err_msg("Old set count mismatch. Expected %u, actual %u.", old_set->length(), _old_count.length())); |