< prev index next >
src/share/vm/gc/shared/cardTableModRefBS.hpp
Print this page
*** 166,176 ****
// Initialization utilities; covered_words is the size of the covered region
// in, um, words.
inline size_t cards_required(size_t covered_words) {
// Add one for a guard card, used to detect errors.
! const size_t words = align_size_up(covered_words, card_size_in_words);
return words / card_size_in_words + 1;
}
protected:
--- 166,176 ----
// Initialization utilities; covered_words is the size of the covered region
// in, um, words.
inline size_t cards_required(size_t covered_words) {
// Add one for a guard card, used to detect errors.
! const size_t words = align_up(covered_words, card_size_in_words);
return words / card_size_in_words + 1;
}
protected:
< prev index next >