paint-brush
.NET Garbage Collection, Here We Go! by@anand-gupta
472 reads
472 reads

.NET Garbage Collection, Here We Go!

by Anand Gupta6mJuly 20th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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

@anand-gupta

Passionate Techie, Binge Watcher, Globe trotter

Learn More
LEARN MORE ABOUT @ANAND-GUPTA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Anand Gupta HackerNoon profile picture
Anand Gupta@anand-gupta
Passionate Techie, Binge Watcher, Globe trotter

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Albertcapdevila