comparison src/share/vm/oops/instanceRefKlass.cpp @ 3464:be4ca325525a

Merge.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Jul 2011 17:32:44 -0700
parents 2aa9ddbb9e60
children eca1193ca245
comparison
equal deleted inserted replaced
3239:7c4b4daac19b 3464:be4ca325525a
395 if (Universe::heap()->kind() == CollectedHeap::GenCollectedHeap) 395 if (Universe::heap()->kind() == CollectedHeap::GenCollectedHeap)
396 gch = GenCollectedHeap::heap(); 396 gch = GenCollectedHeap::heap();
397 397
398 if (referent != NULL) { 398 if (referent != NULL) {
399 guarantee(referent->is_oop(), "referent field heap failed"); 399 guarantee(referent->is_oop(), "referent field heap failed");
400 if (gch != NULL && !gch->is_in_youngest(obj)) { 400 if (gch != NULL && !gch->is_in_young(obj)) {
401 // We do a specific remembered set check here since the referent 401 // We do a specific remembered set check here since the referent
402 // field is not part of the oop mask and therefore skipped by the 402 // field is not part of the oop mask and therefore skipped by the
403 // regular verify code. 403 // regular verify code.
404 if (UseCompressedOops) { 404 if (UseCompressedOops) {
405 narrowOop* referent_addr = (narrowOop*)java_lang_ref_Reference::referent_addr(obj); 405 narrowOop* referent_addr = (narrowOop*)java_lang_ref_Reference::referent_addr(obj);
413 // Verify next field 413 // Verify next field
414 oop next = java_lang_ref_Reference::next(obj); 414 oop next = java_lang_ref_Reference::next(obj);
415 if (next != NULL) { 415 if (next != NULL) {
416 guarantee(next->is_oop(), "next field verify failed"); 416 guarantee(next->is_oop(), "next field verify failed");
417 guarantee(next->is_instanceRef(), "next field verify failed"); 417 guarantee(next->is_instanceRef(), "next field verify failed");
418 if (gch != NULL && !gch->is_in_youngest(obj)) { 418 if (gch != NULL && !gch->is_in_young(obj)) {
419 // We do a specific remembered set check here since the next field is 419 // We do a specific remembered set check here since the next field is
420 // not part of the oop mask and therefore skipped by the regular 420 // not part of the oop mask and therefore skipped by the regular
421 // verify code. 421 // verify code.
422 if (UseCompressedOops) { 422 if (UseCompressedOops) {
423 narrowOop* next_addr = (narrowOop*)java_lang_ref_Reference::next_addr(obj); 423 narrowOop* next_addr = (narrowOop*)java_lang_ref_Reference::next_addr(obj);