Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277556

Call ReferenceProcessorPhaseTimes::set_processing_is_mt once

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 18
    • hotspot
    • gc
    • b26

    Description

      `ReferenceProcessor::process_discovered_references` is structured like:

      ```
      {
        // SoftWeakFinalRefsPhase
        set_processing_is_mt
        
        // KeepAliveFinalRefsPhase
        set_processing_is_mt
        
        // PhantomRefsPhase
        set_processing_is_mt
      }
      ``

      Instead of calling it in each subphase, one can call it on the top level, because the original value of `_num_queues` is restored at the end of each subphase.

      Attachments

        Issue Links

          Activity

            People

              ayang Albert Yang
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: