.NET Garbage Collection, Here We Go! by@anand-gupta
467 reads

.NET Garbage Collection, Here We Go!

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

This post discusses the aggressive nature of the garbage collection process in.NET as well as a concept that is often referred to as eager root collection. The behavior we are going to discuss in this post is actually the work of JIT and not the garbage collector. JIT is a very smart (and very aggressive) compiler that compiles MSIL code to native assembly code that is executed by the processor. When garbage collector is invoked inside Run() method from line 26 to line 28, tiger object is collected by GC since JIT informed the GC that tiger is not a live root.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - .NET Garbage Collection, Here We Go!
Anand Gupta HackerNoon profile picture

@anand-gupta

Anand Gupta


Receive Stories from @anand-gupta

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa