가비지 컬렉션

자바스크립트 엔진이 메모리를 해제하는 방식이다.

메모리 해제란 더 이상 필요가 없어진 메모리를 해제하는 것인데, 컴퓨터는 메모리가 여전히 필요한지 결정할 수 없다.

즉, 필요없는 메모리를 해제하는 알고리즘을 만들기 어렵다.

이런 메모리 해제를 구현한 알고리즘이 Reference Counting 이다.

This line appears after every note.

Notes mentioning this note


Here are all the notes in this garden, along with their links, visualized as a graph.