17 references to s_notifications
System.Private.CoreLib (17)
src\System\GC.CoreCLR.cs (17)
601
lock (
s_notifications
)
612
int count =
s_notifications
.Count;
627
if (
s_notifications
[i].LowMemoryPercent <= s_previousMemoryLoad && s_previousMemoryLoad <=
s_notifications
[i].HighMemoryPercent
628
&& !(
s_notifications
[i].LowMemoryPercent <= currentMemoryLoad && currentMemoryLoad <=
s_notifications
[i].HighMemoryPercent))
630
s_notifications
[i].Notification();
635
s_notifications
[last++] =
s_notifications
[i];
641
s_notifications
.RemoveRange(last, count - last);
664
lock (
s_notifications
)
666
s_notifications
.Add(new MemoryLoadChangeNotification(lowMemoryPercent, highMemoryPercent, notification));
668
if (
s_notifications
.Count == 1)
776
lock (
s_notifications
)
778
for (int i = 0; i <
s_notifications
.Count; ++i)
780
if (
s_notifications
[i].Notification == notification)
782
s_notifications
.RemoveAt(i);