Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp @ 8857:cc5b5976d72c
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
author | tschatzl |
---|---|
date | Tue, 02 Apr 2013 10:03:02 +0200 |
parents | da91efe96a93 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
8856:8bf6338972ce | 8857:cc5b5976d72c |
---|---|
254 if (!success) { | 254 if (!success) { |
255 success = expand_to_reserved(); | 255 success = expand_to_reserved(); |
256 } | 256 } |
257 | 257 |
258 if (PrintGC && Verbose) { | 258 if (PrintGC && Verbose) { |
259 if (success && GC_locker::is_active()) { | 259 if (success && GC_locker::is_active_and_needs_gc()) { |
260 gclog_or_tty->print_cr("Garbage collection disabled, expanded heap instead"); | 260 gclog_or_tty->print_cr("Garbage collection disabled, expanded heap instead"); |
261 } | 261 } |
262 } | 262 } |
263 } | 263 } |
264 | 264 |