HS23 and HS24 crash with assert in GC_locker from PSOldGen::expand with -XX:+PrintGCDetails and -XX:Verbose
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/gcLocker.hpp:94
# A fatal error has been detected by the Java Runtime Environment:
# Internal Error (/HUDSON/workspace/jdk7u4-2-build-linux-amd64-product/jdk7u4/hotspot/src/share/vm/memory/gcLocker.hpp:94), pid=1854, tid=140719260915456
# assert(_needs_gc || SafepointSynchronize::is_at_safepoint()) failed: only read at safepoint
# JRE version: 7.0_04-b13
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b16-fastdebug mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
$JAVA_HOME/bin/java -XX:+UseParallelOldGC -XX:+PrintGC -XX:+Verbose Crasher
Reproducer attached to CR.
Issue was fixed in HS25 (JDK-8005857), but was not backported into HS23 and HS24. I'm opening new bug, because JDK-8005857 is already closed.