Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RegisterForFullGCNotification()

static void System.GC.RegisterForFullGCNotification ( int maxGenerationThreshold,
int largeObjectHeapThreshold )
inlinestatic

Definition at line 269 of file GC.cs.

270 {
271 if (maxGenerationThreshold <= 0 || maxGenerationThreshold >= 100)
272 {
273 throw new ArgumentOutOfRangeException("maxGenerationThreshold", SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 1, 99));
274 }
275 if (largeObjectHeapThreshold <= 0 || largeObjectHeapThreshold >= 100)
276 {
277 throw new ArgumentOutOfRangeException("largeObjectHeapThreshold", SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, 1, 99));
278 }
279 if (!_RegisterForFullGCNotification(maxGenerationThreshold, largeObjectHeapThreshold))
280 {
281 throw new InvalidOperationException(SR.InvalidOperation_NotWithConcurrentGC);
282 }
283 }
static bool _RegisterForFullGCNotification(int maxGenerationPercentage, int largeObjectHeapPercentage)

References System.GC._RegisterForFullGCNotification(), System.SR.ArgumentOutOfRange_Bounds_Lower_Upper, System.SR.Format(), and System.SR.InvalidOperation_NotWithConcurrentGC.