mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8055098: WB API should be extended to provide information about size and age of object
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
This commit is contained in:
parent
ad89797fbd
commit
6715fc0bed
7 changed files with 52 additions and 9 deletions
|
@ -70,7 +70,7 @@ void VM_ParallelGCSystemGC::doit() {
|
|||
"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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue