diff options
author | Simon Marlow <marlowsd@gmail.com> | 2012-01-09 11:52:24 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-01-09 12:57:47 +0000 |
commit | 43178674471928560dc645983ce6f185b20a5a26 (patch) | |
tree | a91c4e9dbcd9b4b51109b300e1d471a180aa8142 /rts/Capability.c | |
parent | 61d8ad7a2c27fa3e14aed219e652a06041b27536 (diff) | |
download | haskell-43178674471928560dc645983ce6f185b20a5a26.tar.gz |
last_free_capability should never be NULL
Diffstat (limited to 'rts/Capability.c')
-rw-r--r-- | rts/Capability.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Capability.c b/rts/Capability.c index d04d007006..3177e3bcde 100644 --- a/rts/Capability.c +++ b/rts/Capability.c @@ -357,7 +357,7 @@ moreCapabilities (nat from USED_IF_THREADS, nat to USED_IF_THREADS) initCapability(&capabilities[i], i); } - last_free_capability = NULL; + last_free_capability = &capabilities[0]; debugTrace(DEBUG_sched, "allocated %d more capabilities", to - from); |