Remove redundant check in WorkerPolicy::parallel_worker_threads

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: 22
    • Component/s: 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;
          }
      ```

            Assignee:
            Thomas Schatzl
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: