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

Call ReferenceProcessorPhaseTimes::set_processing_is_mt once

XMLWordPrintable

    • gc
    • b26

      `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.

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

              Created:
              Updated:
              Resolved: