6991327: using -Xprof trigger native memory leak
authorzgu
Fri, 30 Aug 2013 11:54:14 -0400
changeset 19698 fd7f14977192
parent 19690 3c0c996f4df5
child 19699 1f0f30ed36e6
6991327: using -Xprof trigger native memory leak Summary: Fixed a memory leak in FlatProfiler::record_thread_tick() method Reviewed-by: dholmes, ccheung
hotspot/src/share/vm/runtime/fprofiler.cpp
--- a/hotspot/src/share/vm/runtime/fprofiler.cpp	Wed Aug 28 08:15:01 2013 -0400
+++ b/hotspot/src/share/vm/runtime/fprofiler.cpp	Fri Aug 30 11:54:14 2013 -0400
@@ -925,6 +925,8 @@
       FlatProfiler::interval_print();
       FlatProfiler::interval_reset();
     }
+
+    FREE_C_HEAP_ARRAY(JavaThread *, threadsList, mtInternal);
   } else {
     // Couldn't get the threads lock, just record that rather than blocking
     FlatProfiler::threads_lock_ticks += 1;