After fixing JDK-8139651 JVM hits assert for big G1ConcRefinementGreenZone values.
Running TestGCOld(hotspot/test/stress/gc) with '-XX:G1ConcRefinementGreenZone=2147483648' option hits assert:
java -XX:G1ConcRefinementGreenZone=2147483648 TestGCOld 10 10 10 10 10
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/scratch/opt/jprt/T/P1/011512.daholme/s/hotspot/src/share/vm/gc/g1/ptrQueue.cpp:338), pid=11842, tid=11851
# assert(_process_completed_threshold >= 0) failed: _process_completed is negative
#
# JRE version: Java(TM) SE Runtime Environment (9.0) (fastdebug build 9-internal+0-2016-03-10-011512.daholme.jdk9-hs-rt)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 9-internal+0-2016-03-10-011512.daholme.jdk9-hs-rt, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c" (or dumping to /home/dmitry/work/bugs/8059557.CLOV/bug_submit/gcold/core.11842)
#
hs_err_pid11842.log is attached.
Also can be reproduced by simple javac command:
javac -J-XX:G1ConcRefinementGreenZone=2147483648 HelloWorld.java
JVM hits assert for various big values: 1500000000, 2147483648, 4294967296, 9223372036854775807
32 bit JVM not hit assert with big G1ConcRefinementGreenZone values(e.g. 1500000000).