Mark-Sweep-Compact

V8's full garbage collection for old space: mark every object still reachable, sweep away the rest, then compact memory to close the gaps.

In more detail

It is slower than a scavenge, so V8 does much of the marking in background threads while your code keeps running. A heap that stays nearly full triggers it often, which shows up as latency spikes.

Related terms

Taught in

References