diff 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
line wrap: on
line diff
--- a/src/share/vm/oops/instanceRefKlass.cpp	Mon Oct 26 13:11:36 2015 -0400
+++ b/src/share/vm/oops/instanceRefKlass.cpp	Wed Oct 28 09:47:23 2015 -0400
@@ -82,8 +82,9 @@
   // Verify next field
   oop next = java_lang_ref_Reference::next(obj);
   if (next != NULL) {
-    guarantee(next->is_oop(), "next field verify failed");
-    guarantee(next->is_instanceRef(), "next field verify failed");
+    guarantee(next->is_oop(), "next field should be an oop");
+    guarantee(next->is_instance(), "next field should be an instance");
+    guarantee(InstanceKlass::cast(next->klass())->is_reference_instance_klass(), "next field verify failed");
   }
 }