PTE · Reading · hard
Read the text and answer the multiple-choice question by selecting the correct response. Only one response is correct.
In the early decades of automated computing, allocating and reclaiming computer memory was the exclusive responsibility of programmers, who had to manually balance every memory allocation with an explicit deallocation command. Failing to release unneeded memory created persistent leaks that eventually caused programs to crash, while prematurely deallocating memory generated unstable pointers that corrupted active data. To eliminate this pervasive source of defects, computer scientists devised automatic garbage collection. Early runtimes relied on reference counting, an intuitive strategy wherein each memory object tracked how many active references pointed to it. While conceptually straightforward, reference counting imposed immediate overhead on every pointer assignment and proved fundamentally incapable of reclaiming cyclic data structures, in which two obsolete objects point to each other. The discipline advanced substantially with the development of tracing garbage collectors, which periodically traverse all accessible pointers from a known root set. By treating reachability rather than mere reference tallies as the definitive test of utility, modern generational tracing collectors isolate dead cycles and sweep them away efficiently.
What led computer scientists to favor tracing collectors over early reference counting techniques?
- Reference counting demanded constant human supervision to identify active pointer assignments
- Tracing mechanisms successfully resolve isolated cycles of references that earlier systems could not clear
- Reference counting consumed far more physical circuitry than generational memory models required
- Tracing algorithms eliminated the necessity of establishing an initial root set of references