# HG changeset patch # User tschatzl # Date 1364889782 -7200 # Node ID 9dd420de589bb327dd2311280c97a2e9823b570c # Parent 2581c39b3b93dcf17da11eaea5b28fb23b9a8b1f 8005857: assert in GC_locker from PSOldGen::expand with -XX:+PrintGCDetails and Verbose Summary: Use GC_locker::is_active_and_needs_gc() instead of GC_locker::is_active() for providing information about the reason of heap expansion. Reviewed-by: jmasa, johnc diff -r 2581c39b3b93 -r 9dd420de589b hotspot/src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp --- a/hotspot/src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp Sat Mar 23 09:16:37 2013 +0100 +++ b/hotspot/src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp Tue Apr 02 10:03:02 2013 +0200 @@ -256,7 +256,7 @@ } if (PrintGC && Verbose) { - if (success && GC_locker::is_active()) { + if (success && GC_locker::is_active_and_needs_gc()) { gclog_or_tty->print_cr("Garbage collection disabled, expanded heap instead"); } }