src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp

Print this page
rev 2691 : [mq]: g1-reference-processing

@@ -2067,14 +2067,13 @@
     // When collecting the permanent generation methodOops may be moving,
     // so we either have to flush all bcp data or convert it into bci.
     CodeCache::gc_prologue();
     Threads::gc_prologue();
 
-    NOT_PRODUCT(ref_processor()->verify_no_references_recorded());
     COMPILER2_PRESENT(DerivedPointerTable::clear());
 
-    ref_processor()->enable_discovery();
+    ref_processor()->enable_discovery(true /*verify_disabled*/, true /*verify_no_refs*/);
     ref_processor()->setup_policy(maximum_heap_compaction);
 
     bool marked_for_unloading = false;
 
     marking_start.update();