comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 20334:ff3169f25621

8038829: G1: More useful information in a few assert messages Reviewed-by: sjohanss, jmasa
author brutisso
date Tue, 01 Apr 2014 07:46:51 +0200
parents 18bf0b66de52
children eec72fa4b108
comparison
equal deleted inserted replaced
20333:2d1534aa7131 20334:ff3169f25621
7107 } 7107 }
7108 7108
7109 if (hr->is_young()) { 7109 if (hr->is_young()) {
7110 // TODO 7110 // TODO
7111 } else if (hr->startsHumongous()) { 7111 } else if (hr->startsHumongous()) {
7112 assert(hr->containing_set() == _humongous_set, err_msg("Heap region %u is starts humongous but not in humongous set.", hr->region_num())); 7112 assert(hr->containing_set() == _humongous_set, err_msg("Heap region %u is starts humongous but not in humongous set.", hr->hrs_index()));
7113 _humongous_count.increment(1u, hr->capacity()); 7113 _humongous_count.increment(1u, hr->capacity());
7114 } else if (hr->is_empty()) { 7114 } else if (hr->is_empty()) {
7115 assert(hr->containing_set() == _free_list, err_msg("Heap region %u is empty but not on the free list.", hr->region_num())); 7115 assert(hr->containing_set() == _free_list, err_msg("Heap region %u is empty but not on the free list.", hr->hrs_index()));
7116 _free_count.increment(1u, hr->capacity()); 7116 _free_count.increment(1u, hr->capacity());
7117 } else { 7117 } else {
7118 assert(hr->containing_set() == _old_set, err_msg("Heap region %u is old but not in the old set.", hr->region_num())); 7118 assert(hr->containing_set() == _old_set, err_msg("Heap region %u is old but not in the old set.", hr->hrs_index()));
7119 _old_count.increment(1u, hr->capacity()); 7119 _old_count.increment(1u, hr->capacity());
7120 } 7120 }
7121 return false; 7121 return false;
7122 } 7122 }
7123 7123