diff options
Diffstat (limited to 'rts/include/rts/storage/ClosureMacros.h')
-rw-r--r-- | rts/include/rts/storage/ClosureMacros.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/include/rts/storage/ClosureMacros.h b/rts/include/rts/storage/ClosureMacros.h index b841ef8be0..393bee3a9f 100644 --- a/rts/include/rts/storage/ClosureMacros.h +++ b/rts/include/rts/storage/ClosureMacros.h @@ -480,10 +480,11 @@ INLINE_HEADER StgWord8 *mutArrPtrsCard (StgMutArrPtrs *a, W_ n) Replacing a closure with a different one. We must call OVERWRITING_CLOSURE(p) on the old closure that is about to be overwritten. + */ + /* Note [zeroing slop when overwriting closures] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - When we overwrite a closure in the heap with a smaller one, in some scenarios we need to write zero words into "slop"; the memory that is left unoccupied. See Note [slop on the heap] |