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

G1: Remove redundant check in G1FlushHumongousCandidateRemSets

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • gc
    • b13

      In `G1FlushHumongousCandidateRemSets`:

      ```
            if (!r->is_starts_humongous() ||
                !g1h->region_attr(r->hrm_index()).is_humongous() ||
                r->rem_set()->is_empty()) {
      ```

      `!r->is_starts_humongous()` entails `!g1h->region_attr(r->hrm_index()).is_humongous()` already. The former can be dropped without affecting the filtering.

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

              Created:
              Updated:
              Resolved: