Commit d9d46328 authored by Ömer Sinan Ağacan's avatar Ömer Sinan Ağacan

Schedule.c: remove unreachable code block

parent b120e649
......@@ -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);
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment