8258404: Restore stacktrace reuse after 8258094
Reviewed-by: egahlin
This commit is contained in:
parent
7ff9c85639
commit
fa1cbb47aa
@ -30,11 +30,12 @@
|
||||
#include "runtime/thread.hpp"
|
||||
|
||||
JfrAllocationTracer::JfrAllocationTracer(const Klass* klass, HeapWord* obj, size_t alloc_size, bool outside_tlab, Thread* thread) : _tl(NULL) {
|
||||
JfrObjectAllocationSample::send_event(klass, alloc_size, outside_tlab, thread);
|
||||
if (LeakProfiler::is_running()) {
|
||||
_tl = thread->jfr_thread_local();
|
||||
LeakProfiler::sample(obj, alloc_size, thread->as_Java_thread());
|
||||
}
|
||||
// Let this happen after LeakProfiler::sample, to possibly reuse a cached stacktrace.
|
||||
JfrObjectAllocationSample::send_event(klass, alloc_size, outside_tlab, thread);
|
||||
}
|
||||
|
||||
JfrAllocationTracer::~JfrAllocationTracer() {
|
||||
|
Loading…
Reference in New Issue
Block a user