summaryrefslogtreecommitdiff
path: root/rts/sm/Storage.c
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2020-04-10 02:40:32 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-01 06:32:56 -0400
commit2ee4f36c779674f7237d730460ca83aec9a6808a (patch)
tree117b74a6664904f97f07d4f9f370db23bb13dd64 /rts/sm/Storage.c
parent6947231abd8c33840860ad51699b76efd4725f0e (diff)
downloadhaskell-2ee4f36c779674f7237d730460ca83aec9a6808a.tar.gz
Cleanup OVERWRITING_CLOSURE logic
The code is just more confusing than it needs to be. We don't need to mix the threaded check with the ldv profiling check since ldv's init already checks for this. Hence they can be two separate checks. Taking the sanity checking into account is also cleaner via DebugFlags.sanity. No need for checking the DEBUG define. The ZERO_SLOP_FOR_LDV_PROF and ZERO_SLOP_FOR_SANITY_CHECK definitions the old code had also make things a lot more opaque IMO so I removed those.
Diffstat (limited to 'rts/sm/Storage.c')
-rw-r--r--rts/sm/Storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/Storage.c b/rts/sm/Storage.c
index a73228dce6..b47afaf7df 100644
--- a/rts/sm/Storage.c
+++ b/rts/sm/Storage.c
@@ -948,7 +948,7 @@ accountAllocation(Capability *cap, W_ n)
*
* When profiling we zero:
* - Pinned object alignment slop, see MEMSET_IF_PROFILING_W in allocatePinned.
- * - Shrunk array slop, see OVERWRITING_MUTABLE_CLOSURE.
+ * - Shrunk array slop, see OVERWRITING_CLOSURE_MUTABLE.
*
* When performing LDV profiling or using a (single threaded) debug RTS we zero
* slop even when overwriting immutable closures, see Note [zeroing slop when