6653214: MemoryPoolMXBean.setUsageThreshold() does not support large heap sizes

Reviewed-by: ysr, mchung
This commit is contained in:
Swamy Venkataramanappa 2008-12-15 13:58:57 -08:00
parent baa4663714
commit 06e37c03fb
6 changed files with 37 additions and 32 deletions

View file

@ -283,7 +283,7 @@ void CardTableModRefBS::resize_covered_region(MemRegion new_region) {
} else {
entry = byte_after(old_region.last());
}
assert(index_for(new_region.last()) < (int) _guard_index,
assert(index_for(new_region.last()) < _guard_index,
"The guard card will be overwritten");
// This line commented out cleans the newly expanded region and
// not the aligned up expanded region.