6845368: large objects cause a crash or unexpected exception

Reviewed-by: jmasa, iveresov
This commit is contained in:
John Coomes 2009-08-13 16:22:45 -07:00
parent 662adda5e6
commit e7c70c499b
10 changed files with 65640 additions and 65 deletions

View file

@ -407,7 +407,7 @@ void instanceRefKlass::update_nonstatic_oop_maps(klassOop k) {
// 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) {