summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-06-27 09:36:46 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-06-27 09:36:46 +0000
commit73637ad66b7f88e57dcd0e0ea93b3d7bf8fb0d78 (patch)
treec62bf2ddcfd0f2ae16f43b301cfdf6208dab3c83 /includes
parente1ddf51abb3a89392cc9da9a36b74f0d69f9a36b (diff)
downloadhaskell-73637ad66b7f88e57dcd0e0ea93b3d7bf8fb0d78.tar.gz
+RTS -xbXXXXX sets the "heap base" to 0xXXXXXX
When debugging the GC and storage manager we often want repeated runs of the program to allocate memory at the same addresses, so that we can set watch points. Unfortunately the OS doesn't always give us memory at predictable addresses. This flag gives the OS a hint as to where we would like our memory allocated. Previously I did this by changing the HEAP_BASE setting in MBlock.h and recompiling, this patch just adds a flag so I don't have to recompile.
Diffstat (limited to 'includes')
-rw-r--r--includes/RtsFlags.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/RtsFlags.h b/includes/RtsFlags.h
index 4bfe27636a..88a6346098 100644
--- a/includes/RtsFlags.h
+++ b/includes/RtsFlags.h
@@ -43,6 +43,8 @@ struct GC_FLAGS {
rtsBool frontpanel;
int idleGCDelayTime; /* in milliseconds */
+
+ StgWord heapBase; /* address to ask the OS for memory */
};
struct DEBUG_FLAGS {