by tpolzer · 11mo ago · 0 comments
You could ask the programmer to mark some callstack as arena allocated and redirect all allocations to there while active and move everything that is still live once you leave the arena marked callstack (should be cheap if the live set is small, expensive but still safe otherwise).
Okay, this is just Lisp being Lisp, but it's still an example...
You could probably also do it without moving actually, it just gets a little more complex.