equal
deleted
inserted
replaced
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); |