diff options
author | Sverker Eriksson <[email protected]> | 2016-03-01 18:19:15 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-04-15 15:07:38 +0200 |
commit | 71a67e69ce792f5464479fb15257ad07dc30b856 (patch) | |
tree | ff4529355e28b1cc1246b31dfa848dfd42b349c8 /erts/emulator | |
parent | d698386e5b101a02786c85af70f1513c6beb191b (diff) | |
download | otp-71a67e69ce792f5464479fb15257ad07dc30b856.tar.gz otp-71a67e69ce792f5464479fb15257ad07dc30b856.tar.bz2 otp-71a67e69ce792f5464479fb15257ad07dc30b856.zip |
erts: Do 'unregister' as "self-tracing"
We have the main lock on rp->p, so why not?
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/beam/register.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/register.c b/erts/emulator/beam/register.c index e995dcbd8a..77f79fcea4 100644 --- a/erts/emulator/beam/register.c +++ b/erts/emulator/beam/register.c @@ -560,7 +560,7 @@ int erts_unregister_name(Process *c_p, #endif rp->p->common.u.alive.reg = NULL; if (IS_TRACED_FL(rp->p, F_TRACE_PROCS)) { - trace_proc(c_p, current_c_p_locks, + trace_proc(rp->p, (c_p == rp->p) ? c_p_locks : ERTS_PROC_LOCK_MAIN, rp->p, am_unregister, r.name); } #ifdef ERTS_SMP |