Commit 97d59db5 authored by Daniel Gröber (dxld)'s avatar Daniel Gröber (dxld) Committed by Marge Bot

rts: Fix need_prealloc being reset when retainer profiling is on

parent 1183ae94
......@@ -874,7 +874,7 @@ GarbageCollect (uint32_t collect_gen,
need_prealloc += arenaBlocks();
#if defined(PROFILING)
if (RtsFlags.ProfFlags.doHeapProfile == HEAP_BY_RETAINER) {
need_prealloc = retainerStackBlocks();
need_prealloc += retainerStackBlocks();
}
#endif
......
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