inlining stack allocator