Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I searched from internet that garbage collector work or call in 3 generation ie.
Generation 0
Generation 1
Generation 2

and in each generation it perform 3 steps ie.
Collection
Compaction/De-fragmentation
Reference Update


I just to know how Garbage will understand that it is calling in Generation 2 or a memory location?
Posted

1 solution

Generations have different memory locations, read this : Fundamentals of Garbage Collection[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900