What does it mean when an object has no root, using! gcroot with SOS?

I track the memory leak where I use

! dumpheap -stat! dumpheap -mt! Gcroot

but! gcroot shows nothing, I thought it meant that the object had no links, but was not assembled. but I'm not 100% sure.

0:018> !dumpheap -mt 000007fee15f0bb0 Address MT Size 000000001c87b570 000007fee15f0bb0 3145752 000000001cb7b588 000007fee15f0bb0 3145752 000000001e9675a8 000007fee15f0bb0 3145752 000000001ec675c0 000007fee15f0bb0 3145752 0:018> !gcroot 000000001ec675c0 Note: Roots found on stacks may be false positives. Run "!help gcroot" for more info. Scan Thread 0 OSTHread 1eb4 Scan Thread 2 OSTHread 1c60 Scan Thread 4 OSTHread 1370 Scan Thread 6 OSTHread d5c Scan Thread 7 OSTHread 740 Scan Thread 10 OSTHread 40c Scan Thread 14 OSTHread 20d4 Scan Thread 15 OSTHread 398 Scan Thread 16 OSTHread 214c Scan Thread 17 OSTHread 2538 
+4
source share
1 answer

The absence of a root means that the object is inaccessible.

When an object is unavailable, the garbage collector examines the garbage of the object and can be collected.

An object that has no root at some point in its life cycle is a common occurrence, in fact it is important how the garbage collector works.

works:

+5
source

All Articles