6991327: using -Xprof trigger native memory leak
Summary: Fixed a memory leak in FlatProfiler::record_thread_tick() method
Reviewed-by: dholmes, ccheung
--- 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;