8000 Call `WaitForPendingFinalizers` instead · pythonnet/pythonnet@0d6c645 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d6c645

Browse files
committed
Call WaitForPendingFinalizers instead
... of WaitForFullGCComplete on runtime shutdown Addresses comment: #958 (comment)
1 parent f5c24b0 commit 0d6c645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/runtime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ internal static void Shutdown(ShutdownMode mode)
407407
GC.Collect();
408408
try
409409
{
410-
GC.WaitForFullGCComplete();
410+
GC.WaitForPendingFinalizers();
411411
}
412412
catch (NotImplementedException)
413413
{

0 commit comments

Comments
 (0)
0