Ok, I've done a bunch of development and testing on the hg branch with
all the mallopt fixes, etc., and I'm fairly confident that it's
working properly. I plan to put this stuff back into the trunk
tomorrow by noonish US Eastern if no one finds any problems with it: