Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/fprofiler.cpp @ 12148: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 | aeaca88565e6 |
children | 491de79915eb |
comparison
equal
deleted
inserted
replaced
12140:915cc4f3fb15 | 12148:522d69638aa8 |
---|---|
923 } | 923 } |
924 if (interval_expired) { | 924 if (interval_expired) { |
925 FlatProfiler::interval_print(); | 925 FlatProfiler::interval_print(); |
926 FlatProfiler::interval_reset(); | 926 FlatProfiler::interval_reset(); |
927 } | 927 } |
928 | |
929 FREE_C_HEAP_ARRAY(JavaThread *, threadsList, mtInternal); | |
928 } else { | 930 } else { |
929 // Couldn't get the threads lock, just record that rather than blocking | 931 // Couldn't get the threads lock, just record that rather than blocking |
930 FlatProfiler::threads_lock_ticks += 1; | 932 FlatProfiler::threads_lock_ticks += 1; |
931 } | 933 } |
932 | 934 |