6991327: using -Xprof trigger native memory leak

Fixed a memory leak in FlatProfiler::record_thread_tick() method

Reviewed-by: dholmes, ccheung
This commit is contained in:
Zhengyu Gu 2013-08-30 11:54:14 -04:00
parent c0f4055c78
commit c4d7122a7f

View file

@ -925,6 +925,8 @@ void FlatProfiler::record_thread_ticks() {
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;