hotspot/src/share/vm/gc_implementation/g1/g1CardCounts.cpp

Print this page

        

@@ -31,11 +31,11 @@
 #include "services/memTracker.hpp"
 #include "utilities/copy.hpp"
 
 void G1CardCounts::clear_range(size_t from_card_num, size_t to_card_num) {
   if (has_count_table()) {
-    check_card_num(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));
     assert(to_card_num <= _committed_max_card_num,