We currently push objects onto the stack via Vec::insert, which pushes all elements after it to the right. When we pop we don't remove the object from the stack, only decrementing the stack pointer. The VM therefore cannot reclaim popped objects from the stack because they keep getting shifted to the right.
We currently push objects onto the stack via Vec::insert, which pushes all elements after it to the right. When we pop we don't remove the object from the stack, only decrementing the stack pointer. The VM therefore cannot reclaim popped objects from the stack because they keep getting shifted to the right.