Parallel: Simplify compute_survivor_space_size_and_threshold

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • b07

      ```
        if (decr_tenuring_threshold && !(AlwaysTenure || NeverTenure)) {
          if (tenuring_threshold > 1) {
            tenuring_threshold--;
          }
        } else if (incr_tenuring_threshold && !(AlwaysTenure || NeverTenure)) {
          if (tenuring_threshold < MaxTenuringThreshold) {
            tenuring_threshold++;
          }
        }
      ```

      The common expression, `!(AlwaysTenure || NeverTenure)`, can be extracted out to a higher level to simplify the flow.

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

              Created:
              Updated:
              Resolved: