+RTS -xbXXXXX sets the "heap base" to 0xXXXXXX
authorSimon Marlow <simonmar@microsoft.com>
Wed, 27 Jun 2007 09:36:46 +0000 (09:36 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 27 Jun 2007 09:36:46 +0000 (09:36 +0000)
commit73637ad66b7f88e57dcd0e0ea93b3d7bf8fb0d78
treec62bf2ddcfd0f2ae16f43b301cfdf6208dab3c83
parente1ddf51abb3a89392cc9da9a36b74f0d69f9a36b
+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.
includes/RtsFlags.h
rts/RtsFlags.c
rts/sm/MBlock.c
rts/sm/MBlock.h
rts/sm/Storage.c