diff options
author | Lukas Larsson <[email protected]> | 2018-12-21 10:36:08 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2019-01-15 16:34:17 +0100 |
commit | 2a46ca2dbe1410c1e7ce057051cdb65526a87485 (patch) | |
tree | b70599675ba75af22433a5a4fa61eafad22d94de /erts/emulator/beam/erl_bif_info.c | |
parent | 5f5d0b3dd311ef16b7c6cc61d575cd7e5eccc291 (diff) | |
download | otp-2a46ca2dbe1410c1e7ce057051cdb65526a87485.tar.gz otp-2a46ca2dbe1410c1e7ce057051cdb65526a87485.tar.bz2 otp-2a46ca2dbe1410c1e7ce057051cdb65526a87485.zip |
erts: Make sure to take main lock when dumping proc info
If the main lock is not taken then any process running
on a dirty scheduler may cause all kinds of problems.
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r-- | erts/emulator/beam/erl_bif_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index 9cc95a5c09..6137edef1b 100644 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -4610,6 +4610,7 @@ BIF_RETTYPE erts_debug_set_internal_state_2(BIF_ALIST_2) } } else if (ERTS_IS_ATOM_STR("broken_halt", BIF_ARG_1)) { + erts_proc_unlock(BIF_P, ERTS_PROC_LOCK_MAIN); broken_halt_test(BIF_ARG_2); } else if (ERTS_IS_ATOM_STR("unique_monotonic_integer_state", BIF_ARG_1)) { |