diff -r 37937ce6adf3 -r f93055f440d8 src/hotspot/share/gc/shared/workgroup.cpp --- a/src/hotspot/share/gc/shared/workgroup.cpp Mon Nov 27 13:34:00 2017 +0100 +++ b/src/hotspot/share/gc/shared/workgroup.cpp Mon Nov 27 13:50:03 2017 +0100 @@ -261,6 +261,10 @@ _dispatcher(create_dispatcher()) { } +WorkGang::~WorkGang() { + delete _dispatcher; +} + AbstractGangWorker* WorkGang::allocate_worker(uint worker_id) { return new GangWorker(this, worker_id); }