MallocOrThrow for pool.cc