Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_implementation/g1/heapRegionSet.cpp @ 8500:992f62c457b0
-More bug fixes
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Tue, 05 Mar 2013 18:53:26 +0100 |
parents | a2f7274eb6ef |
children | 86b4965f0c9a |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/heapRegionSet.cpp Mon Mar 04 16:46:37 2013 +0100 +++ b/src/share/vm/gc_implementation/g1/heapRegionSet.cpp Tue Mar 05 18:53:26 2013 +0100 @@ -112,6 +112,10 @@ ( regions_humongous() && region_num() >= length()), hrs_ext_msg(this, "invariant")); + printf("region name %s\n", this->name()); + printf("regions empty? %d\n", regions_empty()); + printf("total used bytes %lu\n", total_used_bytes()); + guarantee(!regions_empty() || total_used_bytes() == 0, hrs_ext_msg(this, "invariant")); @@ -126,7 +130,7 @@ hrs_ext_msg(this, "verification should not be in progress")); // Do the basic verification first before we do the checks over the regions. - HeapRegionSetBase::verify(); + //HeapRegionSetBase::verify(); _calc_length = 0; _calc_region_num = 0; @@ -437,6 +441,12 @@ "prev1: "PTR_FORMAT" length: %u", name(), count, curr, prev0, prev1, length())); + //printf("[%s] the calculated length: %u " + // "just print " + // "curr: "PTR_FORMAT" prev0: "PTR_FORMAT" " + // "prev1: "PTR_FORMAT" length: %u used: %lu\n", + // name(), count, (unsigned long)curr, (unsigned long)prev0, (unsigned long)prev1, length(), curr->used()); + curr->print(); prev1 = prev0; prev0 = curr; curr = curr->next();