Scavenging the Young Generation: How V8 Copies Live Objects in Milliseconds
V8’s scavenger copies live young objects between two semi-spaces with Cheney’s algorithm and promotes survivors by age.
V8’s scavenger copies live young objects between two semi-spaces with Cheney’s algorithm and promotes survivors by age.
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 …
V8 stores strings as sequential, cons, sliced, thin or external representations, so concatenation, slicing and interning can avoid copying characters.
V8 gives every object a Map that describes its shape, and adding a property walks a tree of Maps shared between all objects with the same history.