8273639: tests fail with "assert(_handle_mark_nesting > 1) failed: memory leak: allocating handle outside HandleMark"
Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
1d2458db34
commit
f52728993d
@ -1862,7 +1862,10 @@ void VM_HeapDumper::dump_stack_traces() {
|
||||
oop threadObj = thread->threadObj();
|
||||
if (threadObj != NULL && !thread->is_exiting() && !thread->is_hidden_from_external_view()) {
|
||||
// dump thread stack trace
|
||||
ResourceMark rm;
|
||||
Thread* current_thread = Thread::current();
|
||||
ResourceMark rm(current_thread);
|
||||
HandleMark hm(current_thread);
|
||||
|
||||
ThreadStackTrace* stack_trace = new ThreadStackTrace(thread, false);
|
||||
stack_trace->dump_stack_at_safepoint(-1);
|
||||
_stack_traces[_num_threads++] = stack_trace;
|
||||
|
Loading…
Reference in New Issue
Block a user