< prev index next >

src/hotspot/share/runtime/thread.cpp

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

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