armeilleure: Do not call GCSettings.LargeObjectHeapCompactionMode on Android

Mono only support Default as argument and will throw otherwise.
This commit is contained in:
Mary 2023-05-08 15:54:52 +02:00 committed by Emmanuel Hansen
parent 0a666d9c5b
commit 1835e16045

View File

@ -414,8 +414,11 @@ namespace ARMeilleure.Translation.PTC
{
ResetCarriersIfNeeded();
if (!OperatingSystem.IsAndroid())
{
GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce;
}
}
_waitEvent.Set();
}
@ -790,7 +793,10 @@ namespace ARMeilleure.Translation.PTC
{
ResetCarriersIfNeeded();
if (!OperatingSystem.IsAndroid())
{
GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce;
}
return;
}