Reference counting walkthrough: each object tracks how many references point at it; when the count hits zero it is freed, but cycles leak.
Live objects
0
Total references
0
Freed
0
Leaked
0
1 · Basic counting
2 · Cascade freeing
3 · Cycle leak
VARIABLES
HEAP MEMORY
FREED
Program
What's happening
Prev
Next step
Auto
Restart
Step 1 / 7