Skip to content

Commit eb95345

Browse files
committed
removed redundant check for gc state as this is already handled by GC_wait_for_gc_completion
1 parent cdb817f commit eb95345

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mono/metadata/unity-memory-info.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,7 @@ static void CollectMonoImageFromAssembly(MonoAssembly *assembly, void *user_data
615615
MonoManagedMemorySnapshot* mono_unity_capture_memory_snapshot()
616616
{
617617
GC_disable();
618-
619-
if (GC_collection_in_progress() == TRUE)
620-
GC_wait_for_gc_completion();
618+
GC_wait_for_gc_completion(TRUE);
621619

622620
GC_stop_world_external();
623621

0 commit comments

Comments
 (0)