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

G1: Remove unnecessary check in G1Policy::calculate_desired_eden_length_by_mmu

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • hotspot
    • gc
    • b20

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: