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

G1: Remove redundant check in G1FreeHumongousRegionClosure

XMLWordPrintable

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

      Similar to JDK-8292858, this method checks for `is_starts_humongous()` and `is_humongous_candidate` in sequence. The former check is redundant and can be removed.


      A small java program to stress the relevant phase is attached.

      Command to run:
      ```
      java -Xms20g -Xmx20g -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=100 -XX:G1HeapRegionSize=1M -XX:ParallelGCThreads=2
       -Xlog:gc,gc+phases=debug,gc+init Main.java
      ```

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

              Created:
              Updated:
              Resolved: