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/erl_process.c | |
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/erl_process.c')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index b62ec77d65..479a4c6f9a 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -13469,7 +13469,7 @@ static void print_current_process_info(fmtfn_t to, void *to_arg, * * A BIF that calls this should make sure to schedule out to never come back: * erts_halt(code); - * ERTS_BIF_YIELD1(bif_export[BIF_erlang_halt_1], BIF_P, NIL); + * ERTS_BIF_YIELD1(&bif_trap_export[BIF_erlang_halt_1], BIF_P, NIL); */ void erts_halt(int code) { |