--- old/src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp 2020-08-05 21:29:27.717604364 +0800 +++ new/src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp 2020-08-05 21:29:27.417604353 +0800 @@ -220,6 +220,8 @@ virtual void print_on(outputStream* st) const; virtual void print_on_error(outputStream* st) const; virtual void gc_threads_do(ThreadClosure* tc) const; + // Runs the given AbstractGangTask with the current active workers. + virtual void run_task(AbstractGangTask* task); virtual void print_tracing_info() const; virtual WorkGang* get_safepoint_workers() { return &_workers; } @@ -259,9 +261,6 @@ WorkGang& workers() { return _workers; } - - // Runs the given AbstractGangTask with the current active workers. - virtual void run_task(AbstractGangTask* task); }; // Class that can be used to print information about the