hotspot/src/share/vm/gc_implementation/g1/g1CardCounts.cpp
changeset 19994 ca520adcee02
parent 18496 78b3897aa229
child 20309 7445302daff6
--- a/hotspot/src/share/vm/gc_implementation/g1/g1CardCounts.cpp	Fri Sep 13 22:25:27 2013 +0200
+++ b/hotspot/src/share/vm/gc_implementation/g1/g1CardCounts.cpp	Fri Sep 13 07:57:13 2013 +0200
@@ -33,8 +33,8 @@
 
 void G1CardCounts::clear_range(size_t from_card_num, size_t to_card_num) {
   if (has_count_table()) {
-    check_card_num(from_card_num,
-                   err_msg("from card num out of range: "SIZE_FORMAT, from_card_num));
+    assert(from_card_num >= 0 && from_card_num < _committed_max_card_num,
+           err_msg("from card num out of range: "SIZE_FORMAT, from_card_num));
     assert(from_card_num < to_card_num,
            err_msg("Wrong order? from: " SIZE_FORMAT ", to: "SIZE_FORMAT,
                    from_card_num, to_card_num));