Skip to content

Commit 5f56d94

Browse files
authored
fix: use 3-param GC.Collect overload in TestScenePlayerReferenceLeaking
1 parent 75ee83f commit 5f56d94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

osu.Game.Tests/Visual/Gameplay/TestScenePlayerReferenceLeaking.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected override void AddCheckSteps()
2525
// Run multiple GC passes to handle finalizer queues and large object heap.
2626
for (int i = 0; i < 3; i++)
2727
{
28-
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true, compacting: false);
28+
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true);
2929
GC.WaitForPendingFinalizers();
3030
}
3131

@@ -41,7 +41,7 @@ protected override void AddCheckSteps()
4141
{
4242
for (int i = 0; i < 3; i++)
4343
{
44-
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true, compacting: false);
44+
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true);
4545
GC.WaitForPendingFinalizers();
4646
}
4747

0 commit comments

Comments
 (0)