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

◆ Remove()

void System.Runtime.InteropServices.HandleCollector.Remove ( )
inline

Definition at line 80 of file HandleCollector.cs.

81 {
83 if (_handleCount < 0)
84 {
86 }
87 int num = _handleCount + _handleCount / 10;
88 if (num < _threshold - _threshold / 10)
89 {
90 lock (this)
91 {
92 if (num > InitialThreshold)
93 {
94 _threshold = num;
95 }
96 else
97 {
99 }
100 _gcGeneration = 0;
101 }
102 }
103 for (int i = 1; i < 3; i++)
104 {
105 _gcCounts[i] = GC.CollectionCount(i);
106 }
107 }
static string InvalidOperation_HCCountOverflow
Definition SR.cs:14
Definition SR.cs:7
static int Decrement(ref int location)

References System.Runtime.InteropServices.HandleCollector._gcCounts, System.Runtime.InteropServices.HandleCollector._gcGeneration, System.Runtime.InteropServices.HandleCollector._handleCount, System.Runtime.InteropServices.HandleCollector._threshold, System.GC.CollectionCount(), System.Threading.Interlocked.Decrement(), System.Runtime.InteropServices.HandleCollector.InitialThreshold, and System.SR.InvalidOperation_HCCountOverflow.