changeset 5181:522d69638aa8

6991327: using -Xprof trigger native memory leak Summary: Fixed a memory leak in FlatProfiler::record_thread_tick() method Reviewed-by: dholmes, ccheung
author zgu
date Fri, 30 Aug 2013 11:54:14 -0400
parents 915cc4f3fb15
children 491de79915eb
files src/share/vm/runtime/fprofiler.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/fprofiler.cpp	Wed Aug 28 08:15:01 2013 -0400
+++ b/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;