Garbage collection uses a data structure called Bloom filters, some explanations are provided in this thread: How bloom filters work
Garbage collection uses a data structure called Bloom filters, some explanations are provided in this thread: How bloom filters work