Skip to content

Commit 8611dde

Browse files
committed
WaitForFullGCComplete was never needed, and was used incorrectly
1 parent 9e815a6 commit 8611dde

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/runtime/runtime.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,6 @@ internal static void Shutdown(ShutdownMode mode)
393393
}
394394
ResetPyMembers();
395395
GC.Collect();
396-
try
397-
{
398-
GC.WaitForFullGCComplete();
399-
}
400-
catch (NotImplementedException)
401-
{
402-
// Some clr runtime didn't implement GC.WaitForFullGCComplete yet.
403-
}
404396
GC.WaitForPendingFinalizers();
405397
PyGILState_Release(state);
406398
// Then release the GIL for good, if there is somehting to release

0 commit comments

Comments
 (0)