diff options
author | John Högberg <john@erlang.org> | 2019-09-17 10:16:05 +0200 |
---|---|---|
committer | John Högberg <john@erlang.org> | 2019-09-17 11:42:56 +0200 |
commit | 65d4f0453532ee007de63118464b9ef8d3439374 (patch) | |
tree | 528d42df5e8c9b16a31cd9f5bd7716e3f883a1ac /erts/emulator/beam/macros.tab | |
parent | 40323104481d0813da9286e786af7f43a336b916 (diff) | |
download | erlang-65d4f0453532ee007de63118464b9ef8d3439374.tar.gz |
erts: Use hidden exports for BIF trapping
This hides traps when BIFs are traced, making them appear as a
single call + return pair.
Diffstat (limited to 'erts/emulator/beam/macros.tab')
-rw-r--r-- | erts/emulator/beam/macros.tab | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/macros.tab b/erts/emulator/beam/macros.tab index 848e35d45c..802c8aec9a 100644 --- a/erts/emulator/beam/macros.tab +++ b/erts/emulator/beam/macros.tab @@ -289,7 +289,7 @@ BIF_ERROR_ARITY_1(Fail, BIF, Op1) { } reg[0] = $Op1; SWAPOUT; - I = handle_error(c_p, I, reg, &bif_export[$BIF]->info.mfa); + I = handle_error(c_p, I, reg, &bif_trap_export[$BIF].info.mfa); goto post_error_handling; } @@ -301,6 +301,6 @@ BIF_ERROR_ARITY_2(Fail, BIF, Op1, Op2) { reg[0] = $Op1; reg[1] = $Op2; SWAPOUT; - I = handle_error(c_p, I, reg, &bif_export[$BIF]->info.mfa); + I = handle_error(c_p, I, reg, &bif_trap_export[$BIF].info.mfa); goto post_error_handling; } |