Mercurial > hg > truffle
diff src/share/vm/oops/instanceRefKlass.cpp @ 939:9eebd3ac74cf
6845368: large objects cause a crash or unexpected exception
Reviewed-by: jmasa, iveresov
author | jcoomes |
---|---|
date | Thu, 13 Aug 2009 16:22:45 -0700 |
parents | b37c246bf7ce |
children | 89e0543e1737 |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceRefKlass.cpp Tue Aug 11 15:37:23 2009 -0700 +++ b/src/share/vm/oops/instanceRefKlass.cpp Thu Aug 13 16:22:45 2009 -0700 @@ -407,7 +407,7 @@ // Check that the current map is (2,4) - currently points at field with // offset 2 (words) and has 4 map entries. debug_only(int offset = java_lang_ref_Reference::referent_offset); - debug_only(int count = ((java_lang_ref_Reference::discovered_offset - + debug_only(unsigned int count = ((java_lang_ref_Reference::discovered_offset - java_lang_ref_Reference::referent_offset)/heapOopSize) + 1); if (UseSharedSpaces) {