Skip to content

Commit e9f829e

Browse files
committed
Merge pull request #37 from benaadams/patch-3
Add Finalizers to GC collection
2 parents 05996b9 + 6f30a56 commit e9f829e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Benchmarks/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public static void Main(string[] args)
6262
Console.WriteLine();
6363
Console.Write("Forcing GC...");
6464
GC.Collect();
65+
GC.WaitForPendingFinalizers();
66+
GC.Collect();
6567
Console.WriteLine(" done!");
6668
}
6769
else

0 commit comments

Comments
 (0)