6991327: using -Xprof trigger native memory leak

Fri, 30 Aug 2013 11:54:14 -0400

author
zgu
date
Fri, 30 Aug 2013 11:54:14 -0400
changeset 5616
522d69638aa8
parent 5608
915cc4f3fb15
child 5617
491de79915eb

6991327: using -Xprof trigger native memory leak
Summary: Fixed a memory leak in FlatProfiler::record_thread_tick() method
Reviewed-by: dholmes, ccheung

src/share/vm/runtime/fprofiler.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/fprofiler.cpp	Wed Aug 28 08:15:01 2013 -0400
     1.2 +++ b/src/share/vm/runtime/fprofiler.cpp	Fri Aug 30 11:54:14 2013 -0400
     1.3 @@ -925,6 +925,8 @@
     1.4        FlatProfiler::interval_print();
     1.5        FlatProfiler::interval_reset();
     1.6      }
     1.7 +
     1.8 +    FREE_C_HEAP_ARRAY(JavaThread *, threadsList, mtInternal);
     1.9    } else {
    1.10      // Couldn't get the threads lock, just record that rather than blocking
    1.11      FlatProfiler::threads_lock_ticks += 1;

mercurial