summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorTobias Guggenmos <tguggenm@redhat.com>2019-09-07 15:32:06 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-03 12:17:33 -0400
commit47386fe85a412c8aa35f6bcbce0d41f0eed03b65 (patch)
treeeb269c7dd0f13ee5803d22a6bd5009596bcda17b /includes
parentee6324adfed737fbf9ca3c36538145542b425617 (diff)
downloadhaskell-47386fe85a412c8aa35f6bcbce0d41f0eed03b65.tar.gz
Add new debug flag -DZ
Zeros heap memory after gc freed it.
Diffstat (limited to 'includes')
-rw-r--r--includes/rts/Flags.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/rts/Flags.h b/includes/rts/Flags.h
index 41fcf088d1..b3caf13c1f 100644
--- a/includes/rts/Flags.h
+++ b/includes/rts/Flags.h
@@ -97,6 +97,7 @@ typedef struct _DEBUG_FLAGS {
bool gc; /* 'g' */
bool block_alloc; /* 'b' */
bool sanity; /* 'S' warning: might be expensive! */
+ bool zero_on_gc; /* 'Z' */
bool stable; /* 't' */
bool prof; /* 'p' */
bool linker; /* 'l' the object linker */