Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit fd2b662

Browse files
committed
Update comment of ClassManager.RemoveClasses
1 parent 9b6d140 commit fd2b662

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/runtime/classmanager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ internal static void RemoveClasses()
5353
{
5454
foreach (var cls in cache.Values)
5555
{
56+
// XXX: Force to release instance's managed resources
57+
// but not dealloc itself immediately.
58+
// These managed resources should preserve vacant shells
59+
// since others may still referencing it.
5660
cls.CallTypeTraverse(OnVisit, visitedPtr);
57-
// XXX: Force release instance resources but not dealloc itself.
5861
cls.CallTypeClear();
5962
cls.DecrRefCount();
6063
}

0 commit comments

Comments
 (0)