+ new Object()
new Conn()
↻ Run GC
live objects
0
Reset
Constructed
0
1 · constructor runs
Active
0
2 · in use · referenced
Unreachable
0
3 · 0 refs · garbage
Reclaimed
0
4 · finalized · freed
console
auto-GC sweeps every 5s
▸
An object is
born
(constructor),
lives
while referenced, becomes
unreachable
at 0 refs, and is
reclaimed
by the GC. Drop a reference to 0, then run the collector.