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

PreservedMarksSet: don't launch workers if ParallelGCThreads==1

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc

      Description

      In the change for JDK-8152312 I always launch the WorkGang workers, even when ParallelGCThreads == 1:

      void PreservedMarksSet::restore_internal(WorkGang* workers,
                                               volatile size_t* total_size_addr) {
        assert(workers != NULL, "pre-condition");
        ParRestoreTask task(workers->active_workers(), this, total_size_addr);
        workers->run_task(&task);
      }

      HotSpot convention is to call task.work(0) directly when ParallelGCThreads == 1.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tonyp Tony Printezis
              Reporter:
              tonyp Tony Printezis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: