.NET garbage collector question when circular references exist

I know that the .net garbage collector detects circular references, but I was wondering if circular references could cause objects to stay longer than necessary.

I have a circular reference in my ASP.NET application (intended for performance reasons), can I handle this?

Hello

+3
source share
5 answers

CLR , . CLR . , ( GC). , , . . , CLR,

+11

, .

( , , , , GC'ed) , , GC'ed.

, GC. . , , .

+3

, - , , - , . , . , , .

, (-), .

+1

Java GC can detect loops and process them. I would argue that C # GC can also.

0
source

Source: https://habr.com/ru/post/1702182/


All Articles