diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 15:57:09 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 16:07:01 +0100 |
commit | 7566b2afc2a3bd509ea0bf744e87770643ce3477 (patch) | |
tree | 2791acde6de6d4ea91cb9574665e146dc314786f /erts/emulator/beam/bif.c | |
parent | 23e1f63738cef1a82e2dc18fe395ac208fdee5fc (diff) | |
download | otp-7566b2afc2a3bd509ea0bf744e87770643ce3477.tar.gz otp-7566b2afc2a3bd509ea0bf744e87770643ce3477.tar.bz2 otp-7566b2afc2a3bd509ea0bf744e87770643ce3477.zip |
erts: Remove cp on exiting and trapping processes
Diffstat (limited to 'erts/emulator/beam/bif.c')
-rw-r--r-- | erts/emulator/beam/bif.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c index 5b3261077b..76086860dd 100644 --- a/erts/emulator/beam/bif.c +++ b/erts/emulator/beam/bif.c @@ -4291,8 +4291,7 @@ void erts_bif_prep_await_proc_exit_data_trap(Process *c_p, Eterm pid, Eterm ret) { if (skip_current_msgq(c_p)) { - Eterm unused; - ERTS_BIF_PREP_TRAP3(unused, await_proc_exit_trap, c_p, pid, am_data, ret); + ERTS_BIF_PREP_TRAP3_NO_RET(await_proc_exit_trap, c_p, pid, am_data, ret); } } @@ -4300,8 +4299,7 @@ void erts_bif_prep_await_proc_exit_reason_trap(Process *c_p, Eterm pid) { if (skip_current_msgq(c_p)) { - Eterm unused; - ERTS_BIF_PREP_TRAP3(unused, await_proc_exit_trap, c_p, + ERTS_BIF_PREP_TRAP3_NO_RET(await_proc_exit_trap, c_p, pid, am_reason, am_undefined); } } @@ -4316,7 +4314,6 @@ erts_bif_prep_await_proc_exit_apply_trap(Process *c_p, { ASSERT(is_atom(module) && is_atom(function)); if (skip_current_msgq(c_p)) { - Eterm unused; Eterm term; Eterm *hp; int i; @@ -4328,7 +4325,7 @@ erts_bif_prep_await_proc_exit_apply_trap(Process *c_p, hp += 2; } term = TUPLE3(hp, module, function, term); - ERTS_BIF_PREP_TRAP3(unused, await_proc_exit_trap, c_p, pid, am_apply, term); + ERTS_BIF_PREP_TRAP3_NO_RET(await_proc_exit_trap, c_p, pid, am_apply, term); } } |