--- old/src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp 2020-08-05 21:29:31.557604501 +0800 +++ new/src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp 2020-08-05 21:29:31.237604489 +0800 @@ -209,6 +209,8 @@ WorkGang* get_safepoint_workers(); void gc_threads_do(ThreadClosure* tcl) const; + // Runs the given AbstractGangTask with the current active workers. + virtual void run_task(AbstractGangTask* task); // ---------- Heap regions handling machinery // @@ -617,10 +619,6 @@ void tlabs_retire(bool resize); void gclabs_retire(bool resize); - // Runs the given AbstractGangTask with the current active workers. - // Returns the total time to run the task. - virtual void run_task(AbstractGangTask* task); - // ---------- Marking support // private: