Skip to content
Opensource internals
  • Posts

Gc

Scavenging the Young Generation: How V8 Copies Live Objects in Milliseconds

Oct 21, 2026 15 min read Jay Hubbert

V8’s scavenger copies live young objects between two semi-spaces with Cheney’s algorithm and promotes survivors by age.

V8InternalsGcMemory

Read more →

The Write Barrier: How V8 Knows Where a Moved Object Used to Live

Oct 21, 2026 15 min read Jay Hubbert

V8’s write barrier has four tiers and three jobs: remembering old-to-new references, preserving the tri-colour invariant during marking, and recording slots so a compacting GC can …

V8InternalsGcMemory

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·