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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 9
    • hotspot
    • None
    • gc

      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.

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

              Created:
              Updated: