src/share/vm/memory/genCollectedHeap.cpp

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

*** 597,608 **** ReferenceProcessor* rp = _gens[i]->ref_processor(); // If the discovery of ("weak") refs in this generation is // atomic wrt other collectors in this configuration, we // are guaranteed to have empty discovered ref lists. if (rp->discovery_is_atomic()) { ! rp->verify_no_references_recorded(); ! rp->enable_discovery(); rp->setup_policy(do_clear_all_soft_refs); } else { // collect() below will enable discovery as appropriate } _gens[i]->collect(full, do_clear_all_soft_refs, size, is_tlab); --- 597,607 ---- ReferenceProcessor* rp = _gens[i]->ref_processor(); // If the discovery of ("weak") refs in this generation is // atomic wrt other collectors in this configuration, we // are guaranteed to have empty discovered ref lists. if (rp->discovery_is_atomic()) { ! rp->enable_discovery(true /*verify_disabled*/, true /*verify_no_refs*/); rp->setup_policy(do_clear_all_soft_refs); } else { // collect() below will enable discovery as appropriate } _gens[i]->collect(full, do_clear_all_soft_refs, size, is_tlab);