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
os_family = linux
arch = sparc
arch_model = sparc
os_arch = linux_sparc
os_arch_model = linux_sparc
lib_arch = sparcv9
compiler = gcc
sysdefs = -DLINUX -D_GNU_SOURCE -DSPARC