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

Commit 0af3504

Browse files
committed
Merge remote-tracking branch 'amos/soft-shutdown' into soft-shutdown-review-comments
2 parents d2408b9 + 2b7bcac commit 0af3504

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/runtime/classmanager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ internal static void DisposePythonWrappersForClrTypes()
4848
{
4949
foreach (var cls in cache.Values)
5050
{
51+
// XXX: Force to release instance's managed resources
52+
// but not dealloc itself immediately.
53+
// These managed resources should preserve vacant shells
54+
// since others may still referencing it.
5155
cls.CallTypeTraverse(TraverseTypeClear, visitedPtr);
52-
// XXX: Force release instance resources but not dealloc itself.
5356
cls.CallTypeClear();
5457
cls.DecrRefCount();
5558
}

0 commit comments

Comments
 (0)