Skip to content

Commit

Permalink
Removed GC.WaitForPendingFinalizers because it just causes the entire…
Browse files Browse the repository at this point in the history
… program to hang
  • Loading branch information
evilfactory committed Oct 25, 2023
1 parent 79dd558 commit 36f767f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ public bool FinalizeDispose()
try
{
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced); // force the gc to collect unloaded acls.
GC.WaitForPendingFinalizers();
List<WeakReference<MemoryFileAssemblyContextLoader>> toRemove = new();
foreach (WeakReference<MemoryFileAssemblyContextLoader> weakReference in UnloadingACLs)
{
Expand Down

0 comments on commit 36f767f

Please sign in to comment.