diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:33:12 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-06 14:40:54 +0100 |
commit | 2936190ade5105e8aa35592d9a8490a393c709c9 (patch) | |
tree | 8d197b1edabf27a9df2a96eb39d15c3249c0e04c /lib/tools/src | |
parent | 16cb4f9c59142b4e82f1a2ccbcc904be7dfdee4c (diff) | |
download | otp-2936190ade5105e8aa35592d9a8490a393c709c9.tar.gz otp-2936190ade5105e8aa35592d9a8490a393c709c9.tar.bz2 otp-2936190ade5105e8aa35592d9a8490a393c709c9.zip |
tools: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/tools/src')
-rw-r--r-- | lib/tools/src/fprof.erl | 3 |
1 files changed, 1 insertions, 2 deletions
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; |