diff 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
line wrap: on
line diff
--- a/src/share/vm/memory/cardTableModRefBS.hpp	Fri Dec 12 19:55:26 2008 -0800
+++ b/src/share/vm/memory/cardTableModRefBS.hpp	Mon Dec 15 13:58:57 2008 -0800
@@ -428,7 +428,7 @@
   }
 
   // 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;