mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6653214: MemoryPoolMXBean.setUsageThreshold() does not support large heap sizes
Reviewed-by: ysr, mchung
This commit is contained in:
parent
baa4663714
commit
06e37c03fb
6 changed files with 37 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue