diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2018-03-07 14:34:46 +0300 |
---|---|---|
committer | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2018-03-07 14:34:46 +0300 |
commit | d9d463289fe20316cff12a8f0dbf414db678fa72 (patch) | |
tree | 4891090c45a972a1040e6bf9745cf87fa9792661 /rts | |
parent | b120e649b7b13ee2a2c1bfe568a91bea9d271fba (diff) | |
download | haskell-d9d463289fe20316cff12a8f0dbf414db678fa72.tar.gz |
Schedule.c: remove unreachable code block
Diffstat (limited to 'rts')
-rw-r--r-- | rts/Schedule.c | 7 | ||||
-rw-r--r-- | rts/Sparks.c | 15 |
2 files changed, 0 insertions, 22 deletions
diff --git a/rts/Schedule.c b/rts/Schedule.c index 885e737aad..5160cb495b 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -1918,13 +1918,6 @@ delete_threads_and_gc: throwToSelf(cap, main_thread, heapOverflow_closure); } } -#if defined(SPARKBALANCE) - /* JB - Once we are all together... this would be the place to balance all - spark pools. No concurrent stealing or adding of new sparks can - occur. Should be defined in Sparks.c. */ - balanceSparkPoolsCaps(n_capabilities, capabilities); -#endif #if defined(THREADED_RTS) stgFree(idle_cap); diff --git a/rts/Sparks.c b/rts/Sparks.c index a31a5dfbe5..bd5e120863 100644 --- a/rts/Sparks.c +++ b/rts/Sparks.c @@ -284,21 +284,6 @@ traverseSparkQueue (evac_fn evac, void *user, Capability *cap) sparkPoolSize(pool), pool->bottom, pool->top); } -/* ---------------------------------------------------------------------------- - * balanceSparkPoolsCaps: takes an array of capabilities (usually: all - * capabilities) and its size. Accesses all spark pools and equally - * distributes the sparks among them. - * - * Could be called after GC, before Cap. release, from scheduler. - * -------------------------------------------------------------------------- */ -void balanceSparkPoolsCaps(uint32_t n_caps, Capability caps[]) - GNUC3_ATTRIBUTE(__noreturn__); - -void balanceSparkPoolsCaps(uint32_t n_caps STG_UNUSED, - Capability caps[] STG_UNUSED) { - barf("not implemented"); -} - #else StgInt |