G1: Remove unnecessary check in G1Policy::calculate_desired_eden_length_by_mmu

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: hotspot
    • gc
    • b20

      In the sole caller of `G1Policy::calculate_desired_eden_length_by_mmu`:

      ```
        if (use_adaptive_young_list_length()) {
          desired_eden_length_by_mmu = calculate_desired_eden_length_by_mmu();
      ```

      so, one can assert `use_adaptive_young_list_length()` as a precondition, instead of checking for it again.

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

              Created:
              Updated:
              Resolved: