The test in attachment could cause CMS crash with assertion:
# after -XX: or in .hotspotrc: SuppressErrorAt=/concurrentMarkSweepGeneration.cpp:5362
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/BUILD_AREA/jdk7/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:5362), pid=23504, tid=2865970064
# Error: assert(_cursor[j] == _survivor_plab_array[j].end(),"Ctl pt invariant")
#
# JRE version: 7.0-b77
# Java VM: Java HotSpot(TM) Server VM (17.0-b05-fastdebug mixed mode linux-x86 )
# An error report file with more information is saved as:
# /home/lm153972/ws/cms/file/hs_err_pid23504.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 2865970064
Dumping core ...
I appeares on the 32bit linux:
java -version:
java version "1.7.0-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.7.0-ea-fastdebug-b77)
Java HotSpot(TM) Server VM (build 17.0-b05-fastdebug, mixed mode)
I run it with reduced YoungGen (to provoke CMS) like below:
/net/vmsqe.russia/export/jdk/7/build/latest/linux-i586/fastdebug/bin/java -server -Xmn200K -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC crash_concurrentMarkSweepGeneration_5362 | grep -v ParNew
It does not crash each time sometimes.