Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CardCounts.cpp @ 12241:9cb63cd234a0
8024671: G1 generates assert error messages in product builds
Reviewed-by: brutisso, tschatzl
author | shade |
---|---|
date | Fri, 13 Sep 2013 07:57:13 +0200 |
parents | 5ea20b3bd249 |
children | d55c004e1d4d |
comparison
equal
deleted
inserted
replaced
12240:8c5e6482cbfc | 12241:9cb63cd234a0 |
---|---|
31 #include "services/memTracker.hpp" | 31 #include "services/memTracker.hpp" |
32 #include "utilities/copy.hpp" | 32 #include "utilities/copy.hpp" |
33 | 33 |
34 void G1CardCounts::clear_range(size_t from_card_num, size_t to_card_num) { | 34 void G1CardCounts::clear_range(size_t from_card_num, size_t to_card_num) { |
35 if (has_count_table()) { | 35 if (has_count_table()) { |
36 check_card_num(from_card_num, | 36 assert(from_card_num >= 0 && from_card_num < _committed_max_card_num, |
37 err_msg("from card num out of range: "SIZE_FORMAT, from_card_num)); | 37 err_msg("from card num out of range: "SIZE_FORMAT, from_card_num)); |
38 assert(from_card_num < to_card_num, | 38 assert(from_card_num < to_card_num, |
39 err_msg("Wrong order? from: " SIZE_FORMAT ", to: "SIZE_FORMAT, | 39 err_msg("Wrong order? from: " SIZE_FORMAT ", to: "SIZE_FORMAT, |
40 from_card_num, to_card_num)); | 40 from_card_num, to_card_num)); |
41 assert(to_card_num <= _committed_max_card_num, | 41 assert(to_card_num <= _committed_max_card_num, |
42 err_msg("to card num out of range: " | 42 err_msg("to card num out of range: " |