< prev index next >

src/hotspot/share/runtime/thread.cpp

Print this page
rev 49541 : 8198756: Lazy allocation of compiler threads
Reviewed-by: kvn

@@ -3353,10 +3353,15 @@
 #ifndef PRODUCT
   _ideal_graph_printer = NULL;
 #endif
 }
 
+CompilerThread::~CompilerThread() {
+  // Delete objects which were allocated on heap.
+  delete _counters;
+}
+
 bool CompilerThread::can_call_java() const {
   return _compiler != NULL && _compiler->is_jvmci();
 }
 
 // Create sweeper thread
< prev index next >