This patch speeds up simulators that use the sim/common infrastructure to allocate their memory.