src/hotspot/share/runtime/thread.cpp
changeset 49848 fcd5df7aa235
parent 49839 dd5db907ab7e
child 49857 31e07291ae29
--- 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();
 }