mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Alternate link name with disabled GC
This commit is contained in:
parent
6160d4e6ac
commit
109ad9fc78
1 changed files with 15 additions and 2 deletions
|
@ -99,8 +99,11 @@ namespace System
|
||||||
[CallingConvention(.Cdecl)]
|
[CallingConvention(.Cdecl)]
|
||||||
public extern static void SetMaxRawDeferredObjectFreePercentage(int maxPercentage);
|
public extern static void SetMaxRawDeferredObjectFreePercentage(int maxPercentage);
|
||||||
#else
|
#else
|
||||||
|
[LinkName("__GC_Report")]
|
||||||
public static void Report() {}
|
public static void Report() {}
|
||||||
|
[LinkName("__GC_Shutdown")]
|
||||||
public static void Shutdown() {}
|
public static void Shutdown() {}
|
||||||
|
[LinkName("__GC_SetMaxRawDeferredObjectFreePercentage")]
|
||||||
public static void SetMaxRawDeferredObjectFreePercentage(int maxPercentage) {}
|
public static void SetMaxRawDeferredObjectFreePercentage(int maxPercentage) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -138,17 +141,27 @@ namespace System
|
||||||
[CallingConvention(.Cdecl)]
|
[CallingConvention(.Cdecl)]
|
||||||
public extern static void ExcludeThreadId(int thereadId);
|
public extern static void ExcludeThreadId(int thereadId);
|
||||||
#else
|
#else
|
||||||
|
[LinkName("__GC_Disable")]
|
||||||
public static void Disable() {}
|
public static void Disable() {}
|
||||||
|
[LinkName("__GC_Collect")]
|
||||||
public static void Collect(bool async = true) {}
|
public static void Collect(bool async = true) {}
|
||||||
|
[LinkName("__GC_MarkAllStaticMembers")]
|
||||||
private static void MarkAllStaticMembers() {}
|
private static void MarkAllStaticMembers() {}
|
||||||
|
[LinkName("__GC_DebugDumpLeaks")]
|
||||||
public static void DebugDumpLeaks() {}
|
public static void DebugDumpLeaks() {}
|
||||||
[SkipCall]
|
[SkipCall, LinkName("__GC_Mark1")]
|
||||||
public static void Mark(Object obj) {}
|
public static void Mark(Object obj) {}
|
||||||
|
[LinkName("__GC_Mark2")]
|
||||||
public static void Mark(void* ptr, int size) {}
|
public static void Mark(void* ptr, int size) {}
|
||||||
|
[LinkName("__GC_SetAutoCollectPeriod")]
|
||||||
public static void SetAutoCollectPeriod(int periodMS) {}
|
public static void SetAutoCollectPeriod(int periodMS) {}
|
||||||
|
[LinkName("__GC_SetCollectFreeThreshold")]
|
||||||
public static void SetCollectFreeThreshold(int freeBytes) {}
|
public static void SetCollectFreeThreshold(int freeBytes) {}
|
||||||
|
[LinkName("__GC_SetMaxPausePercentage")]
|
||||||
public static void SetMaxPausePercentage(int maxPausePercentage) {}
|
public static void SetMaxPausePercentage(int maxPausePercentage) {}
|
||||||
|
[LinkName("__GC_AddPendingThread")]
|
||||||
static void AddPendingThread(void* internalThreadInfo) {}
|
static void AddPendingThread(void* internalThreadInfo) {}
|
||||||
|
[LinkName("__GC_ExcludeThreadId")]
|
||||||
public static void ExcludeThreadId(int thereadId) {}
|
public static void ExcludeThreadId(int thereadId) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue