17 references to s_notifications
System.Private.CoreLib (17)
src\System\GC.CoreCLR.cs (17)
594
lock (
s_notifications
)
605
int count =
s_notifications
.Count;
620
if (
s_notifications
[i].LowMemoryPercent <= s_previousMemoryLoad && s_previousMemoryLoad <=
s_notifications
[i].HighMemoryPercent
621
&& !(
s_notifications
[i].LowMemoryPercent <= currentMemoryLoad && currentMemoryLoad <=
s_notifications
[i].HighMemoryPercent))
623
s_notifications
[i].Notification();
628
s_notifications
[last++] =
s_notifications
[i];
634
s_notifications
.RemoveRange(last, count - last);
657
lock (
s_notifications
)
659
s_notifications
.Add(new MemoryLoadChangeNotification(lowMemoryPercent, highMemoryPercent, notification));
661
if (
s_notifications
.Count == 1)
769
lock (
s_notifications
)
771
for (int i = 0; i <
s_notifications
.Count; ++i)
773
if (
s_notifications
[i].Notification == notification)
775
s_notifications
.RemoveAt(i);