8005857: assert in GC_locker from PSOldGen::expand with -XX:+PrintGCDetails and Verbose

Tue, 02 Apr 2013 10:03:02 +0200

author
tschatzl
date
Tue, 02 Apr 2013 10:03:02 +0200
changeset 4857
cc5b5976d72c
parent 4856
8bf6338972ce
child 4858
15c04fe93c18

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

src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp	Sat Mar 23 09:16:37 2013 +0100
     1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/psOldGen.cpp	Tue Apr 02 10:03:02 2013 +0200
     1.3 @@ -256,7 +256,7 @@
     1.4    }
     1.5  
     1.6    if (PrintGC && Verbose) {
     1.7 -    if (success && GC_locker::is_active()) {
     1.8 +    if (success && GC_locker::is_active_and_needs_gc()) {
     1.9        gclog_or_tty->print_cr("Garbage collection disabled, expanded heap instead");
    1.10      }
    1.11    }

mercurial