CS Fundamentals Trainer · JavaScript · Performance & Memory

Put these events in the life of one long-lived object in V8 in order, first to last.

  1. A major mark-compact GC of the old generation reclaims its memory
  2. After surviving another scavenge, it is promoted to the old generation
  3. It survives a minor GC (scavenge) because it is still reachable
  4. The object is allocated in the young generation
  5. The program drops its last reference to the object

Difficulty: medium

Answer this question

Related questions