Node.js · Senior · Question 1 of 75

How is the V8 heap organized for garbage collection?

Explanation

Most objects die young, so frequent cheap scavenges reclaim them. Objects that survive are promoted to the old generation, whose collections are rarer and more expensive, though mostly concurrent and incremental.

Further reading

Problem with a question

Node.js · Senior · question 1

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz