17 references to s_notifications
System.Private.CoreLib (17)
src\System\GC.CoreCLR.cs (17)
600
lock (
s_notifications
)
611
int count =
s_notifications
.Count;
626
if (
s_notifications
[i].LowMemoryPercent <= s_previousMemoryLoad && s_previousMemoryLoad <=
s_notifications
[i].HighMemoryPercent
627
&& !(
s_notifications
[i].LowMemoryPercent <= currentMemoryLoad && currentMemoryLoad <=
s_notifications
[i].HighMemoryPercent))
629
s_notifications
[i].Notification();
634
s_notifications
[last++] =
s_notifications
[i];
640
s_notifications
.RemoveRange(last, count - last);
663
lock (
s_notifications
)
665
s_notifications
.Add(new MemoryLoadChangeNotification(lowMemoryPercent, highMemoryPercent, notification));
667
if (
s_notifications
.Count == 1)
775
lock (
s_notifications
)
777
for (int i = 0; i <
s_notifications
.Count; ++i)
779
if (
s_notifications
[i].Notification == notification)
781
s_notifications
.RemoveAt(i);