1.1 --- a/src/share/vm/gc_implementation/shared/vmGCOperations.cpp Wed Aug 07 17:00:19 2019 +0800 1.2 +++ b/src/share/vm/gc_implementation/shared/vmGCOperations.cpp Wed Jul 31 14:28:51 2019 -0400 1.3 @@ -201,6 +201,19 @@ 1.4 } 1.5 } 1.6 1.7 +static bool is_full_gc(int max_level) { 1.8 + // Return true if max_level is all generations 1.9 + return (max_level == (GenCollectedHeap::heap()->n_gens() - 1)); 1.10 +} 1.11 + 1.12 +VM_GenCollectFull::VM_GenCollectFull(uint gc_count_before, 1.13 + uint full_gc_count_before, 1.14 + GCCause::Cause gc_cause, 1.15 + int max_level) : 1.16 + VM_GC_Operation(gc_count_before, gc_cause, full_gc_count_before, 1.17 + is_full_gc(max_level) /* full */), 1.18 + _max_level(max_level) { } 1.19 + 1.20 void VM_GenCollectFull::doit() { 1.21 SvcGCMarker sgcm(SvcGCMarker::FULL); 1.22