--- a/src/hotspot/share/gc/shared/referenceProcessor.cpp Wed Nov 13 11:21:15 2019 +0100
+++ b/src/hotspot/share/gc/shared/referenceProcessor.cpp Wed Nov 13 11:37:29 2019 +0100
@@ -333,7 +333,7 @@
log_develop_trace(gc, ref)("Enqueue %s reference (" INTPTR_FORMAT ": %s)",
reason, p2i(iter.obj()), iter.obj()->klass()->internal_name());
}
- assert(oopDesc::is_oop(iter.obj(), UseConcMarkSweepGC), "Adding a bad reference");
+ assert(oopDesc::is_oop(iter.obj()), "Adding a bad reference");
}
size_t ReferenceProcessor::process_soft_ref_reconsider_work(DiscoveredList& refs_list,
@@ -1154,7 +1154,7 @@
// Check assumption that an object is not potentially
// discovered twice except by concurrent collectors that potentially
// trace the same Reference object twice.
- assert(UseConcMarkSweepGC || UseG1GC || UseShenandoahGC,
+ assert(UseG1GC || UseShenandoahGC,
"Only possible with a concurrent marking collector");
return true;
}