diff options
author | Lukas Larsson <[email protected]> | 2017-06-30 08:14:00 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-10-02 10:34:27 +0200 |
commit | ce7b76ac099689a9f814e1901dbf77f50ffad42c (patch) | |
tree | 502ec4fcbc96b8cb7629c24243b5a47e3c39c8f4 /erts/emulator/beam | |
parent | 5e1a70e5eb0bfc39add1acdb60d5c49021edebcd (diff) | |
download | otp-ce7b76ac099689a9f814e1901dbf77f50ffad42c.tar.gz otp-ce7b76ac099689a9f814e1901dbf77f50ffad42c.tar.bz2 otp-ce7b76ac099689a9f814e1901dbf77f50ffad42c.zip |
erts: Fix msacc unmanaged state counter
OTP-14652
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_msacc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_msacc.h b/erts/emulator/beam/erl_msacc.h index 8349a7e297..2d4637f800 100644 --- a/erts/emulator/beam/erl_msacc.h +++ b/erts/emulator/beam/erl_msacc.h @@ -318,8 +318,8 @@ ERTS_GLB_INLINE void erts_msacc_set_state_um__(ErtsMsAcc *msacc, Uint new_state, int increment) { if (ERTS_UNLIKELY(msacc->unmanaged)) { erts_mtx_lock(&msacc->mtx); - msacc->state = new_state; if (ERTS_LIKELY(!msacc->perf_counter)) { + msacc->state = new_state; erts_mtx_unlock(&msacc->mtx); return; } |