diff options
author | Lukas Larsson <[email protected]> | 2016-06-17 16:03:58 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-07-14 16:00:40 +0200 |
commit | cb5fca03189deb691b9bc2f1f8bd65033bd99320 (patch) | |
tree | ee25a0cd49a6c36ca3ee32c42a28964e4fd0c85f /erts/emulator/beam/erl_gc.c | |
parent | f7b0cbbab08f2d3f733dfe2e201ce0ff614daaf3 (diff) | |
download | otp-cb5fca03189deb691b9bc2f1f8bd65033bd99320.tar.gz otp-cb5fca03189deb691b9bc2f1f8bd65033bd99320.tar.bz2 otp-cb5fca03189deb691b9bc2f1f8bd65033bd99320.zip |
erts: Fix msacc for dirty scheduler and heap_limit
Diffstat (limited to 'erts/emulator/beam/erl_gc.c')
-rw-r--r-- | erts/emulator/beam/erl_gc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c index d0d74bbf44..a224383493 100644 --- a/erts/emulator/beam/erl_gc.c +++ b/erts/emulator/beam/erl_gc.c @@ -672,6 +672,7 @@ do_major_collection: killed before a GC could be done. */ if (reds == -2) { ErtsProcLocks locks = ERTS_PROC_LOCKS_ALL; + int res; erts_smp_proc_lock(p, ERTS_PROC_LOCKS_ALL_MINOR); erts_send_exit_signal(p, p->common.id, p, &locks, @@ -683,7 +684,9 @@ do_major_collection: erts_smp_atomic32_read_band_nob(&p->state, ~ERTS_PSFLG_GC); /* We have to make sure that we have space for need on the heap */ - return delay_garbage_collection(p, live_hf_end, need, fcalls); + res = delay_garbage_collection(p, live_hf_end, need, fcalls); + ERTS_MSACC_POP_STATE_M(); + return res; } erts_smp_atomic32_read_band_nob(&p->state, ~ERTS_PSFLG_GC); |