diff src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp @ 20357:4bfc44ba0d19

8055098: WB API should be extended to provide information about size and age of object. Summary: Extend the WhiteBox API to provide information about the size and age of objects. Further add a mechanism to trigger a young GC. Reviewed-by: tschatzl, sjohanss Contributed-by: Leonid Mesnik <leonid.mesnik@oracle.com>
author tschatzl
date Thu, 21 Aug 2014 16:44:41 +0200
parents da91efe96a93
children
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp	Mon Aug 25 17:05:18 2014 -0400
+++ b/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp	Thu Aug 21 16:44:41 2014 +0200
@@ -70,7 +70,7 @@
     "must be a ParallelScavengeHeap");
 
   GCCauseSetter gccs(heap, _gc_cause);
-  if (_gc_cause == GCCause::_gc_locker
+  if (_gc_cause == GCCause::_gc_locker || _gc_cause == GCCause::_wb_young_gc
       DEBUG_ONLY(|| _gc_cause == GCCause::_scavenge_alot)) {
     // If (and only if) the scavenge fails, this will invoke a full gc.
     heap->invoke_scavenge();