Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.cpp @ 15352:b68a693a7ad4
fix BenchmarkCounters memory leak
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Thu, 24 Apr 2014 10:44:12 +0200 |
parents | 4ca6dc0799b6 |
children | a20be10ad437 |
comparison
equal
deleted
inserted
replaced
15351:bf5d4bec3f29 | 15352:b68a693a7ad4 |
---|---|
1678 ThreadSafepointState::destroy(this); | 1678 ThreadSafepointState::destroy(this); |
1679 if (_thread_profiler != NULL) delete _thread_profiler; | 1679 if (_thread_profiler != NULL) delete _thread_profiler; |
1680 if (_thread_stat != NULL) delete _thread_stat; | 1680 if (_thread_stat != NULL) delete _thread_stat; |
1681 | 1681 |
1682 #ifdef GRAAL | 1682 #ifdef GRAAL |
1683 if (GraalCounterSize > 0 && graal_counters_include(threadObj())) { | 1683 if (GraalCounterSize > 0) { |
1684 for (int i = 0; i < GraalCounterSize; i++) { | 1684 if (graal_counters_include(threadObj())) { |
1685 _graal_old_thread_counters[i] += _graal_counters[i]; | 1685 for (int i = 0; i < GraalCounterSize; i++) { |
1686 _graal_old_thread_counters[i] += _graal_counters[i]; | |
1687 } | |
1686 } | 1688 } |
1687 FREE_C_HEAP_ARRAY(jlong, _graal_counters, mtInternal); | 1689 FREE_C_HEAP_ARRAY(jlong, _graal_counters, mtInternal); |
1688 } | 1690 } |
1689 #endif // GRAAL | 1691 #endif // GRAAL |
1690 } | 1692 } |