summaryrefslogtreecommitdiff
path: root/rts/ZeroSlop.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/ZeroSlop.c')
-rw-r--r--rts/ZeroSlop.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/rts/ZeroSlop.c b/rts/ZeroSlop.c
new file mode 100644
index 0000000000..734fa2d323
--- /dev/null
+++ b/rts/ZeroSlop.c
@@ -0,0 +1,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);
+}