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
```
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
```
- relates to
-
JDK-8293920 G1: Add index based heap region iteration
-
- Resolved
-
-
JDK-8294712 G1: Use index-base iteration for G1FlushHumongousCandidateRemSets
-
- Resolved
-
-
JDK-8292858 G1: Remove redundant check in G1FlushHumongousCandidateRemSets
-
- Resolved
-