comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.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 1f1d373cd044
children 4d3a43351904
comparison
equal deleted inserted replaced
20355:47e8e40b94d3 20357:4bfc44ba0d19
2529 GC_locker::stall_until_clear(); 2529 GC_locker::stall_until_clear();
2530 } 2530 }
2531 } 2531 }
2532 } 2532 }
2533 } else { 2533 } else {
2534 if (cause == GCCause::_gc_locker 2534 if (cause == GCCause::_gc_locker || cause == GCCause::_wb_young_gc
2535 DEBUG_ONLY(|| cause == GCCause::_scavenge_alot)) { 2535 DEBUG_ONLY(|| cause == GCCause::_scavenge_alot)) {
2536 2536
2537 // Schedule a standard evacuation pause. We're setting word_size 2537 // Schedule a standard evacuation pause. We're setting word_size
2538 // to 0 which means that we are not requesting a post-GC allocation. 2538 // to 0 which means that we are not requesting a post-GC allocation.
2539 VM_G1IncCollectionPause op(gc_count_before, 2539 VM_G1IncCollectionPause op(gc_count_before,