17 references to s_notifications
System.Private.CoreLib (17)
src\System\GC.CoreCLR.cs (17)
595
lock (
s_notifications
)
605
int count =
s_notifications
.Count;
619
if (
s_notifications
[i].LowMemoryPercent <= s_previousMemoryLoad && s_previousMemoryLoad <=
s_notifications
[i].HighMemoryPercent
620
&& !(
s_notifications
[i].LowMemoryPercent <= currentMemoryLoad && currentMemoryLoad <=
s_notifications
[i].HighMemoryPercent))
622
s_notifications
[i].Notification();
627
s_notifications
[last++] =
s_notifications
[i];
633
s_notifications
.RemoveRange(last, count - last);
656
lock (
s_notifications
)
658
s_notifications
.Add(new MemoryLoadChangeNotification(lowMemoryPercent, highMemoryPercent, notification));
660
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);