From 2936190ade5105e8aa35592d9a8490a393c709c9 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Mon, 5 Feb 2018 12:33:12 +0100 Subject: tools: Do not call erlang:get_stacktrace() --- lib/tools/src/fprof.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/tools') diff --git a/lib/tools/src/fprof.erl b/lib/tools/src/fprof.erl index fb657c2928..a3b4bfdddf 100644 --- a/lib/tools/src/fprof.erl +++ b/lib/tools/src/fprof.erl @@ -1242,8 +1242,7 @@ spawn_3step(Spawn, FunPrelude, FunAck, FunBody) catch Child ! {Parent, Ref, Go}, Result catch - Class:Reason -> - Stacktrace = erlang:get_stacktrace(), + Class:Reason:Stacktrace -> catch exit(Child, kill), erlang:raise(Class, Reason, Stacktrace) end; -- cgit v1.2.3