Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
8499:96a337d307bd | 8500:992f62c457b0 |
---|---|
110 | 110 |
111 guarantee((!regions_humongous() && region_num() == length()) || | 111 guarantee((!regions_humongous() && region_num() == length()) || |
112 ( regions_humongous() && region_num() >= length()), | 112 ( regions_humongous() && region_num() >= length()), |
113 hrs_ext_msg(this, "invariant")); | 113 hrs_ext_msg(this, "invariant")); |
114 | 114 |
115 printf("region name %s\n", this->name()); | |
116 printf("regions empty? %d\n", regions_empty()); | |
117 printf("total used bytes %lu\n", total_used_bytes()); | |
118 | |
115 guarantee(!regions_empty() || total_used_bytes() == 0, | 119 guarantee(!regions_empty() || total_used_bytes() == 0, |
116 hrs_ext_msg(this, "invariant")); | 120 hrs_ext_msg(this, "invariant")); |
117 | 121 |
118 guarantee(total_used_bytes() <= total_capacity_bytes(), | 122 guarantee(total_used_bytes() <= total_capacity_bytes(), |
119 hrs_ext_msg(this, "invariant")); | 123 hrs_ext_msg(this, "invariant")); |
124 hrs_assert_mt_safety_ok(this); | 128 hrs_assert_mt_safety_ok(this); |
125 assert(!_verify_in_progress, | 129 assert(!_verify_in_progress, |
126 hrs_ext_msg(this, "verification should not be in progress")); | 130 hrs_ext_msg(this, "verification should not be in progress")); |
127 | 131 |
128 // Do the basic verification first before we do the checks over the regions. | 132 // Do the basic verification first before we do the checks over the regions. |
129 HeapRegionSetBase::verify(); | 133 //HeapRegionSetBase::verify(); |
130 | 134 |
131 _calc_length = 0; | 135 _calc_length = 0; |
132 _calc_region_num = 0; | 136 _calc_region_num = 0; |
133 _calc_total_capacity_bytes = 0; | 137 _calc_total_capacity_bytes = 0; |
134 _calc_total_used_bytes = 0; | 138 _calc_total_used_bytes = 0; |
435 "seems very long, is there maybe a cycle? " | 439 "seems very long, is there maybe a cycle? " |
436 "curr: "PTR_FORMAT" prev0: "PTR_FORMAT" " | 440 "curr: "PTR_FORMAT" prev0: "PTR_FORMAT" " |
437 "prev1: "PTR_FORMAT" length: %u", | 441 "prev1: "PTR_FORMAT" length: %u", |
438 name(), count, curr, prev0, prev1, length())); | 442 name(), count, curr, prev0, prev1, length())); |
439 | 443 |
444 //printf("[%s] the calculated length: %u " | |
445 // "just print " | |
446 // "curr: "PTR_FORMAT" prev0: "PTR_FORMAT" " | |
447 // "prev1: "PTR_FORMAT" length: %u used: %lu\n", | |
448 // name(), count, (unsigned long)curr, (unsigned long)prev0, (unsigned long)prev1, length(), curr->used()); | |
449 curr->print(); | |
440 prev1 = prev0; | 450 prev1 = prev0; |
441 prev0 = curr; | 451 prev0 = curr; |
442 curr = curr->next(); | 452 curr = curr->next(); |
443 } | 453 } |
444 | 454 |