# HG changeset patch # User zgu # Date 1377878054 14400 # Node ID fd7f149771922612f1525b86b5a6be96d978e116 # Parent 3c0c996f4df564d8f11774ce3cb7dedbcd178126 6991327: using -Xprof trigger native memory leak Summary: Fixed a memory leak in FlatProfiler::record_thread_tick() method Reviewed-by: dholmes, ccheung diff -r 3c0c996f4df5 -r fd7f14977192 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;