From 1fc972d6acff80abfa3e700d659efcf3ff3cf16e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 30 Oct 2023 16:45:57 +0100 Subject: [PATCH] Fix stall in GC collect on iOS with AOT --- Source/Engine/Engine/NativeInterop.Unmanaged.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Engine/Engine/NativeInterop.Unmanaged.cs b/Source/Engine/Engine/NativeInterop.Unmanaged.cs index 0391974b6..5af1569b9 100644 --- a/Source/Engine/Engine/NativeInterop.Unmanaged.cs +++ b/Source/Engine/Engine/NativeInterop.Unmanaged.cs @@ -1181,7 +1181,10 @@ namespace FlaxEngine.Interop [UnmanagedCallersOnly] internal static void GCCollect(int generation, int mode, bool blocking, bool compacting) { + // TODO: fix stall on iOS with AOT +#if !USE_AOT GC.Collect(generation, (GCCollectionMode)mode, blocking, compacting); +#endif } [UnmanagedCallersOnly]