mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 19:36:24 +02:00
armeilleure: Do not call GCSettings.LargeObjectHeapCompactionMode on Android
Mono only support Default as argument and will throw otherwise.
This commit is contained in:
parent
0a666d9c5b
commit
1835e16045
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue