[commit: ghc] master: rts: Ensure that task->id is initialized (64ef4d7)
git at git.haskell.org
git at git.haskell.org
Sat Dec 8 05:05:29 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/64ef4d7fb131f04769c6cab331af335bd87103ec/ghc
>---------------------------------------------------------------
commit 64ef4d7fb131f04769c6cab331af335bd87103ec
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Fri Dec 7 23:25:53 2018 -0500
rts: Ensure that task->id is initialized
Reviewers: erikd, simonmar
Reviewed By: simonmar
Subscribers: rwbarton, carter
Differential Revision: https://phabricator.haskell.org/D5325
>---------------------------------------------------------------
64ef4d7fb131f04769c6cab331af335bd87103ec
rts/Task.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/rts/Task.c b/rts/Task.c
index ac86311..11ba5f1 100644
--- a/rts/Task.c
+++ b/rts/Task.c
@@ -220,6 +220,7 @@ newTask (bool worker)
#if defined(THREADED_RTS)
initCondition(&task->cond);
initMutex(&task->lock);
+ task->id = 0;
task->wakeup = false;
task->node = 0;
#endif
More information about the ghc-commits
mailing list