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

Remove redundant check in WorkerPolicy::parallel_worker_threads

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 22
    • hotspot
    • gc
    • b03

      The same if-check occurs inside calc_parallel_worker_threads as well, so one can drop the if on this caller level.

      ```
          if (FLAG_IS_DEFAULT(ParallelGCThreads)) {
            _parallel_worker_threads = WorkerPolicy::calc_parallel_worker_threads();
          } else {
            _parallel_worker_threads = ParallelGCThreads;
          }
      ```

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

              Created:
              Updated:
              Resolved: