8000 Merge remote-tracking branch 'amos/soft-shutdown' into soft-shutdown-… · pythonnet/pythonnet@0af3504 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0af3504

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

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
@@ -48,8 +48,11 @@ internal static void DisposePythonWrappersForClrTypes()
4848
{
4949
foreach (var cls in cache.Values)
< 6F43 /code>
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)
0