Release some of the memory allocated to a stack when it shrinks (#2090)
authorsimonmar@microsoft.com <unknown>
Thu, 28 Feb 2008 15:31:29 +0000 (15:31 +0000)
committersimonmar@microsoft.com <unknown>
Thu, 28 Feb 2008 15:31:29 +0000 (15:31 +0000)
commitfac738e582dcaca1575f5291c83910db01d25284
tree5c7645efcad551108137593e4cb19df259b4b7d4
parent75927bb04bccb3ada850641939f0842a4168968a
Release some of the memory allocated to a stack when it shrinks (#2090)
When a stack is occupying less than 1/4 of the memory it owns, and is
larger than a megablock, we release half of it.  Shrinking is O(1), it
doesn't need to copy the stack.
includes/Block.h
includes/Storage.h
rts/Schedule.c
rts/sm/BlockAlloc.c
rts/sm/Storage.c