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

G1: Remove redundant check in G1FreeHumongousRegionClosure

    XMLWordPrintable

Details

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

    Description

      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
      ```

      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: