aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-03-01 18:19:15 +0100
committerLukas Larsson <[email protected]>2016-04-15 15:07:38 +0200
commit71a67e69ce792f5464479fb15257ad07dc30b856 (patch)
treeff4529355e28b1cc1246b31dfa848dfd42b349c8 /erts
parentd698386e5b101a02786c85af70f1513c6beb191b (diff)
downloadotp-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')
-rw-r--r--erts/emulator/beam/register.c2
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