heap space

One of the separate regions V8 divides its heap into, such as new space for young objects and old space for long-lived ones.

In more detail

New objects start in the small new space, which is cleaned often and quickly. Objects that survive a couple of collections move to old space, compiled code goes to code space, and very large objects get large object space. v8.getHeapSpaceStatistics() reports the size of each.

Related terms

Taught in

References