< prev index next >

src/share/vm/gc/g1/collectionSetChooser.cpp

Print this page
rev 8461 : imported patch webrev1.patch
rev 8462 : [mq]: version3

@@ -105,11 +105,12 @@
   HeapRegion *prev = NULL;
   while (index < _length) {
     HeapRegion *curr = regions_at(index++);
     guarantee(curr != NULL, "Regions in _regions array cannot be NULL");
     guarantee(!curr->is_young(), "should not be young!");
-    guarantee(!curr->is_pinned(), "should not be pinned!");
+    guarantee(!curr->is_pinned(), 
+              err_msg("Pinned region should not be in collection set (index %u)", curr->hrm_index()));
     if (prev != NULL) {
       guarantee(order_regions(prev, curr) != 1,
                 err_msg("GC eff prev: %1.4f GC eff curr: %1.4f",
                         prev->gc_efficiency(), curr->gc_efficiency()));
     }

@@ -148,11 +149,11 @@
 }
 
 
 void CollectionSetChooser::add_region(HeapRegion* hr) {
   assert(!hr->is_pinned(),
-         "Pinned regions shouldn't be added to the collection set");
+         err_msg("Pinned region shouldn't be added to the collection set (index %u)", hr->hrm_index()));
   assert(!hr->is_young(), "should not be young!");
   _regions.append(hr);
   _length++;
   _remaining_reclaimable_bytes += hr->reclaimable_bytes();
   hr->calc_gc_efficiency();
< prev index next >