Fix stall in GC collect on iOS with AOT

This commit is contained in:
Wojtek Figat
2023-10-30 16:45:57 +01:00
parent 615b6470e5
commit 1fc972d6ac

View File

@@ -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]