Signals and Threads cover image

Memory Management with Stephen Dolan

Signals and Threads

CHAPTER

Cycle Removal Techniques for Rough Counted Systems

One immediate problem with naive reg counting proach is when you have cycles, and have a set of data that points circularly to itself. And then if you just do the kind of naive reu counting thing, the count will never get decrimented to zero. As was it really good over you this, there's a paper called the unified theory of garbage collection,. One way of looking at this is that in tracing g c, you need to walk over all the stuff that in use, and then everything that you don't touch is the stuff that's dead and can be garbage collected.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner