Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/cardTableModRefBS.hpp @ 489:2494ab195856
6653214: MemoryPoolMXBean.setUsageThreshold() does not support large heap sizes.
Reviewed-by: ysr, mchung
author | swamyv |
---|---|
date | Mon, 15 Dec 2008 13:58:57 -0800 |
parents | 1ee8caae33af |
children | 0fbdb4381b99 4f360ec815ba |
comparison
equal
deleted
inserted
replaced
487:80206b8a9128 | 489:2494ab195856 |
---|---|
426 "out of bounds accessor from card marking array"); | 426 "out of bounds accessor from card marking array"); |
427 return result; | 427 return result; |
428 } | 428 } |
429 | 429 |
430 // Mapping from address to card marking array index. | 430 // Mapping from address to card marking array index. |
431 int index_for(void* p) { | 431 size_t index_for(void* p) { |
432 assert(_whole_heap.contains(p), | 432 assert(_whole_heap.contains(p), |
433 "out of bounds access to card marking array"); | 433 "out of bounds access to card marking array"); |
434 return byte_for(p) - _byte_map; | 434 return byte_for(p) - _byte_map; |
435 } | 435 } |
436 | 436 |