[commit: ghc] master: Tiny refactor in exitScheduler (348ea16)
git at git.haskell.org
git at git.haskell.org
Mon Nov 19 07:29:21 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/348ea161a9a5957f30eb3dc61726850ecf00134d/ghc
>---------------------------------------------------------------
commit 348ea161a9a5957f30eb3dc61726850ecf00134d
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date: Mon Nov 19 10:28:57 2018 +0300
Tiny refactor in exitScheduler
>---------------------------------------------------------------
348ea161a9a5957f30eb3dc61726850ecf00134d
rts/Schedule.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/rts/Schedule.c b/rts/Schedule.c
index d104cfd..54ebb43 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -2649,9 +2649,7 @@ void
exitScheduler (bool wait_foreign USED_IF_THREADS)
/* see Capability.c, shutdownCapability() */
{
- Task *task = NULL;
-
- task = newBoundTask();
+ Task *task = newBoundTask();
// If we haven't killed all the threads yet, do it now.
if (sched_state < SCHED_SHUTTING_DOWN) {
More information about the ghc-commits
mailing list