--- a/hotspot/src/share/vm/gc/shared/referenceProcessor.cpp Mon Oct 26 13:11:36 2015 -0400
+++ b/hotspot/src/share/vm/gc/shared/referenceProcessor.cpp Wed Oct 28 09:47:23 2015 -0400
@@ -373,7 +373,8 @@
// so that the References are not considered active.
while (obj != next_d) {
obj = next_d;
- assert(obj->is_instanceRef(), "should be reference object");
+ assert(obj->is_instance(), "should be an instance object");
+ assert(InstanceKlass::cast(obj->klass())->is_reference_instance_klass(), "should be reference object");
next_d = java_lang_ref_Reference::discovered(obj);
if (TraceReferenceGC && PrintGCDetails) {
gclog_or_tty->print_cr(" obj " INTPTR_FORMAT "/next_d " INTPTR_FORMAT,