mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
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:
parent
c0f4055c78
commit
c4d7122a7f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue