The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
[Originally posted by engi73]

I am new to .NET Framework so pardon me if I am asking trivial question.

I was going through Garbage Collector's work and came across the concept of
Application Roots.

It is said that Garbage Collector's (GC) Optimizing Engine looks at the
Application Roots to find out if an Object can be Collected. During this
process it also looks at Active Roots that is maintained by JIT Compiler and
Runtime (CLR). It is also said that a Graph is prepared by the GC that
contains all the objects that are Reachable from the Roots. Now what is this

My query is three fold, the first one is what are Active Roots & what
information do they have in them. The Second is what is the kind of
comparision that is done between the Active Roots and Application Roots.
Finally what does it mean to say "Reachable Objects"?.

Kindly help me out of this mess.

import-bot (20211) [Avatar] Offline
Re: Application Roots
[Originally posted by fgrimes]

>> I am new to .NET Framework so pardon me if I am asking
>> trivial question.

It is not a trivial question, but an unusual one for someone
new to the platform.

You'll find more details about .NET
garbage collection in the following MSDN article:

As you probably know, you don't need such detail to explore .NET