comparison 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
comparison
equal deleted inserted replaced
938:b37c246bf7ce 939:9eebd3ac74cf
405 OopMapBlock* map = ik->start_of_nonstatic_oop_maps(); 405 OopMapBlock* map = ik->start_of_nonstatic_oop_maps();
406 406
407 // Check that the current map is (2,4) - currently points at field with 407 // Check that the current map is (2,4) - currently points at field with
408 // offset 2 (words) and has 4 map entries. 408 // offset 2 (words) and has 4 map entries.
409 debug_only(int offset = java_lang_ref_Reference::referent_offset); 409 debug_only(int offset = java_lang_ref_Reference::referent_offset);
410 debug_only(int count = ((java_lang_ref_Reference::discovered_offset - 410 debug_only(unsigned int count = ((java_lang_ref_Reference::discovered_offset -
411 java_lang_ref_Reference::referent_offset)/heapOopSize) + 1); 411 java_lang_ref_Reference::referent_offset)/heapOopSize) + 1);
412 412
413 if (UseSharedSpaces) { 413 if (UseSharedSpaces) {
414 assert(map->offset() == java_lang_ref_Reference::queue_offset && 414 assert(map->offset() == java_lang_ref_Reference::queue_offset &&
415 map->count() == 1, "just checking"); 415 map->count() == 1, "just checking");