equal
deleted
inserted
replaced
463 ReferenceProcessor* rp = _gens[i]->ref_processor(); |
463 ReferenceProcessor* rp = _gens[i]->ref_processor(); |
464 // If the discovery of ("weak") refs in this generation is |
464 // If the discovery of ("weak") refs in this generation is |
465 // atomic wrt other collectors in this configuration, we |
465 // atomic wrt other collectors in this configuration, we |
466 // are guaranteed to have empty discovered ref lists. |
466 // are guaranteed to have empty discovered ref lists. |
467 if (rp->discovery_is_atomic()) { |
467 if (rp->discovery_is_atomic()) { |
468 rp->enable_discovery(true /*verify_disabled*/, true /*verify_no_refs*/); |
468 rp->enable_discovery(); |
469 rp->setup_policy(do_clear_all_soft_refs); |
469 rp->setup_policy(do_clear_all_soft_refs); |
470 } else { |
470 } else { |
471 // collect() below will enable discovery as appropriate |
471 // collect() below will enable discovery as appropriate |
472 } |
472 } |
473 _gens[i]->collect(full, do_clear_all_soft_refs, size, is_tlab); |
473 _gens[i]->collect(full, do_clear_all_soft_refs, size, is_tlab); |