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

@ -428,7 +428,7 @@ public:
}
// Mapping from address to card marking array index.
int index_for(void* p) {
size_t index_for(void* p) {
assert(_whole_heap.contains(p),
"out of bounds access to card marking array");
return byte_for(p) - _byte_map;