aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia.hrl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-06 14:37:12 +0100
committerHans Bolinder <[email protected]>2018-02-06 14:40:53 +0100
commitc53939321c81330d802b7426592a12748fb9429d (patch)
treecd2093a822aee5c3a35a237e567c04bfd17c78bd /lib/mnesia/src/mnesia.hrl
parent1040c3c48099e5ee6b65cb2af5e8bf446764fef3 (diff)
downloadotp-c53939321c81330d802b7426592a12748fb9429d.tar.gz
otp-c53939321c81330d802b7426592a12748fb9429d.tar.bz2
otp-c53939321c81330d802b7426592a12748fb9429d.zip
mnesia: Do not call erlang:get_stacktrace() (cont)
Take care of the call of erlang:get_stacktrace() in module mnesia_lib.
Diffstat (limited to 'lib/mnesia/src/mnesia.hrl')
-rw-r--r--lib/mnesia/src/mnesia.hrl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mnesia/src/mnesia.hrl b/lib/mnesia/src/mnesia.hrl
index da7e662288..e36222d098 100644
--- a/lib/mnesia/src/mnesia.hrl
+++ b/lib/mnesia/src/mnesia.hrl
@@ -47,6 +47,10 @@
-define(catch_val(Var), (try ?ets_lookup_element(mnesia_gvar, Var, 2)
catch error:_ -> {'EXIT', {badarg, []}} end)).
+-define(catch_val_and_stack(Var),
+ (try ?ets_lookup_element(mnesia_gvar, Var, 2)
+ catch error:_:_Stacktrace -> {'EXIT', _Stacktrace} end)).
+
%% It's important that counter is first, since we compare tid's
-record(tid,