We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Tracking Objects

Our virtual machine needs to track every Snek object that gets created.

We are no longer going to track how many times an object is referenced, but instead check at garbage collection time if each object is still referenced at all. If it is, keep it. If not, free it.

Assignment