logoalt Hacker News

tpolzerlast Wednesday at 6:47 PM1 replyview on HN

A moving GC would make it simple to move any remaining live objects back under normal GC control once the arena goes out of scope.

You could probably also do it without moving actually, it just gets a little more complex.


Replies

riku_ikilast Wednesday at 6:54 PM

I don't understand this, once Arena is gone, all contained objects will be destroyed altogether, that's the idea of Arena, no need to move them to GC control.