summaryrefslogtreecommitdiff
path: root/includes/rts/Flags.h
diff options
context:
space:
mode:
authorTobias Guggenmos <tguggenm@redhat.com>2019-09-07 15:32:06 +0200
committerBen Gamari <ben@smart-cactus.org>2019-10-02 15:29:49 -0400
commit5d5317797a53e2cab8afa4d81c3c0e7c349236df (patch)
tree6a5d64604b01a438dd8c7c5a3830b6e2ee5c1d71 /includes/rts/Flags.h
parentb8fb1d80a47674715a1a444e9f99c179dd1cf51c (diff)
downloadhaskell-wip/zero_on_gc.tar.gz
Add new debug flag -DZwip/zero_on_gc
Zeros heap memory after gc freed it.
Diffstat (limited to 'includes/rts/Flags.h')
-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 */