summaryrefslogtreecommitdiff
path: root/rts/ZeroSlop.c
blob: 734fa2d323767eee55a9d3a15f79b3e709a91602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ----------------------------------------------------------------------------
 *
 * (c) The GHC Team, 1998-2012
 *
 * Utilities for zeroing slop callable from Cmm
 *
 * N.B. If you are in C you should rather using the inlineable utilities
 * (e.g. overwritingClosure) defined in ClosureMacros.h.
 *
 * -------------------------------------------------------------------------- */

#include "Rts.h"

void stg_overwritingClosure (StgClosure *p)
{
    overwritingClosure(p);
}

void stg_overwritingMutableClosureOfs (StgClosure *p, uint32_t offset)
{
    overwritingMutableClosureOfs(p, offset);
}

void stg_overwritingClosureSize (StgClosure *p, uint32_t size /* in words */)
{
    overwritingClosureSize(p, size);
}