made malloc fill allocation stacks lazily