hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
changeset 1610 5dddd195cc86
parent 1606 dcf9714addbe
child 1623 a0dd9009e992
child 1668 8ec481b8f514
equal deleted inserted replaced
1608:0a375b5fb8e1 1610:5dddd195cc86
   889 
   889 
   890     // Temporarily clear _is_alive_non_header
   890     // Temporarily clear _is_alive_non_header
   891     ReferenceProcessorIsAliveMutator rp_is_alive_null(ref_processor(), NULL);
   891     ReferenceProcessorIsAliveMutator rp_is_alive_null(ref_processor(), NULL);
   892 
   892 
   893     ref_processor()->enable_discovery();
   893     ref_processor()->enable_discovery();
   894     ref_processor()->snap_policy(clear_all_soft_refs);
   894     ref_processor()->setup_policy(clear_all_soft_refs);
   895 
   895 
   896     // Do collection work
   896     // Do collection work
   897     {
   897     {
   898       HandleMark hm;  // Discard invalid handles created during gc
   898       HandleMark hm;  // Discard invalid handles created during gc
   899       G1MarkSweep::invoke_at_safepoint(ref_processor(), clear_all_soft_refs);
   899       G1MarkSweep::invoke_at_safepoint(ref_processor(), clear_all_soft_refs);