--- old/src/hotspot/share/gc/shared/gcVMOperations.hpp 2020-07-23 11:41:31.492368743 +0800 +++ new/src/hotspot/share/gc/shared/gcVMOperations.hpp 2020-07-23 11:41:31.332369437 +0800 @@ -125,12 +125,15 @@ private: outputStream* _out; bool _full_gc; + uint _parallel_thread_num; public: - VM_GC_HeapInspection(outputStream* out, bool request_full_gc) : - VM_GC_Operation(0 /* total collections, dummy, ignored */, - GCCause::_heap_inspection /* GC Cause */, - 0 /* total full collections, dummy, ignored */, - request_full_gc), _out(out), _full_gc(request_full_gc) {} + VM_GC_HeapInspection(outputStream* out, bool request_full_gc, + uint parallel_thread_num = 1) : + VM_GC_Operation(0 /* total collections, dummy, ignored */, + GCCause::_heap_inspection /* GC Cause */, + 0 /* total full collections, dummy, ignored */, + request_full_gc), _out(out), _full_gc(request_full_gc), + _parallel_thread_num(parallel_thread_num) {} ~VM_GC_HeapInspection() {} virtual VMOp_Type type() const { return VMOp_GC_HeapInspection; }