aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2015-08-13 14:52:20 +0200
committerLukas Larsson <[email protected]>2015-08-13 14:52:20 +0200
commit02380778fd2a9d6af85865a89ef0747351cc0f88 (patch)
tree7b9491b4494dd977081c6f939051b93bb48fff59 /erts/emulator
parent74a95b3d511177a9b35c2b0272b9ca5511b6f750 (diff)
downloadotp-02380778fd2a9d6af85865a89ef0747351cc0f88.tar.gz
otp-02380778fd2a9d6af85865a89ef0747351cc0f88.tar.bz2
otp-02380778fd2a9d6af85865a89ef0747351cc0f88.zip
erts: Make sure to unlock status lock when setting process prio
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index 7b3d12ce09..98f01bbce9 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -9177,6 +9177,10 @@ erts_set_process_priority(Process *p, Eterm value)
a = erts_smp_atomic32_cmpxchg_mb(&p->state, n, e);
} while (a != e);
+
+ if (slocked)
+ erts_smp_proc_unlock(p, ERTS_PROC_LOCK_STATUS);
+
}
switch (oprio) {