aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_thr_queue.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2012-06-14 15:37:23 +0200
committerRickard Green <[email protected]>2012-06-18 22:57:55 +0200
commit2e5c1dbb32cfe4be0a782216953b4630338edabc (patch)
tree791e5bb82419c7eaaad4fee2c78a7fb181d76ecb /erts/emulator/beam/erl_thr_queue.c
parentcfea5eea406ba3af96588ff458e55de9a149d9c5 (diff)
downloadotp-2e5c1dbb32cfe4be0a782216953b4630338edabc.tar.gz
otp-2e5c1dbb32cfe4be0a782216953b4630338edabc.tar.bz2
otp-2e5c1dbb32cfe4be0a782216953b4630338edabc.zip
Fix faulty use of thread progress in handle_aux_work()
As an optimization old thread progress data was kept and used in handle_aux_work() in erl_process.c. This could cause memory to be deallocated at a later time than intended, which is quite harmless. This has, however, now been fixed.
Diffstat (limited to 'erts/emulator/beam/erl_thr_queue.c')
-rw-r--r--erts/emulator/beam/erl_thr_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_thr_queue.c b/erts/emulator/beam/erl_thr_queue.c
index 70949ece76..f07964a265 100644
--- a/erts/emulator/beam/erl_thr_queue.c
+++ b/erts/emulator/beam/erl_thr_queue.c
@@ -422,7 +422,7 @@ clean(ErtsThrQ_t *q, int max_ops, int do_notify)
else {
q->head.next.unref_end = (ErtsThrQElement_t *) ilast;
#ifdef ERTS_SMP
- q->head.next.thr_progress = erts_thr_progress_later();
+ q->head.next.thr_progress = erts_thr_progress_later(NULL);
#endif
erts_atomic32_set_relb(&q->tail.data.um_refc_ix,
um_refc_ix);