diff -r f22c0b4caad7 -r fcd5df7aa235 src/hotspot/share/runtime/thread.cpp --- a/src/hotspot/share/runtime/thread.cpp Fri Apr 20 14:30:57 2018 -0700 +++ b/src/hotspot/share/runtime/thread.cpp Wed Apr 18 11:19:32 2018 +0200 @@ -3359,6 +3359,11 @@ #endif } +CompilerThread::~CompilerThread() { + // Delete objects which were allocated on heap. + delete _counters; +} + bool CompilerThread::can_call_java() const { return _compiler != NULL && _compiler->is_jvmci(); }