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

Parallel: Simplify compute_survivor_space_size_and_threshold

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: