comparison src/share/vm/oops/instanceRefKlass.cpp @ 9266:4535697211eb

8139203: Consistent naming for klass type predicates 8138923: Remove oop coupling with InstanceKlass subclasses Summary: Renamed oop_is_instance and friends, removed the functions in oop that dug down into InstanceKlass. Reviewed-by: jrose, lfoltan, stefank
author coleenp
date Wed, 28 Oct 2015 09:47:23 -0400
parents 115188e14c15
children 767bc8e5cb19
comparison
equal deleted inserted replaced
35:235e15cc64de 36:3854808f35c1
80 guarantee(referent->is_oop(), "referent field heap failed"); 80 guarantee(referent->is_oop(), "referent field heap failed");
81 } 81 }
82 // Verify next field 82 // Verify next field
83 oop next = java_lang_ref_Reference::next(obj); 83 oop next = java_lang_ref_Reference::next(obj);
84 if (next != NULL) { 84 if (next != NULL) {
85 guarantee(next->is_oop(), "next field verify failed"); 85 guarantee(next->is_oop(), "next field should be an oop");
86 guarantee(next->is_instanceRef(), "next field verify failed"); 86 guarantee(next->is_instance(), "next field should be an instance");
87 guarantee(InstanceKlass::cast(next->klass())->is_reference_instance_klass(), "next field verify failed");
87 } 88 }
88 } 89 }
89 90
90 bool InstanceRefKlass::owns_pending_list_lock(JavaThread* thread) { 91 bool InstanceRefKlass::owns_pending_list_lock(JavaThread* thread) {
91 if (java_lang_ref_Reference::pending_list_lock() == NULL) return false; 92 if (java_lang_ref_Reference::pending_list_lock() == NULL) return false;