2 writes to _pages
System.Runtime.Caching (2)
System\Runtime\Caching\CacheUsage.cs (2)
155
_pages
= null;
398
_pages
= newPages;
79 references to _pages
System.Runtime.Caching (79)
System\Runtime\Caching\CacheUsage.cs (79)
167
(
_pages
[(pageIndex)]._pagePrev) = -1;
168
(
_pages
[(pageIndex)]._pageNext) = list._head;
171
Debug.Assert((
_pages
[(list._head)]._pagePrev) == -1, "PagePrev(list._head) == -1");
172
(
_pages
[(list._head)]._pagePrev) = pageIndex;
186
(
_pages
[(pageIndex)]._pageNext) = -1;
187
(
_pages
[(pageIndex)]._pagePrev) = list._tail;
190
Debug.Assert((
_pages
[(list._tail)]._pageNext) == -1, "PageNext(list._tail) == -1");
191
(
_pages
[(list._tail)]._pageNext) = pageIndex;
214
if ((
_pages
[(pageIndex)]._pagePrev) != -1)
216
Debug.Assert((
_pages
[((
_pages
[(pageIndex)]._pagePrev))]._pageNext) == pageIndex, "PageNext(PagePrev(pageIndex)) == pageIndex");
217
(
_pages
[((
_pages
[(pageIndex)]._pagePrev))]._pageNext) = (
_pages
[(pageIndex)]._pageNext);
222
list._head = (
_pages
[(pageIndex)]._pageNext);
225
if ((
_pages
[(pageIndex)]._pageNext) != -1)
227
Debug.Assert((
_pages
[((
_pages
[(pageIndex)]._pageNext))]._pagePrev) == pageIndex, "PagePrev(PageNext(pageIndex)) == pageIndex");
228
(
_pages
[((
_pages
[(pageIndex)]._pageNext))]._pagePrev) = (
_pages
[(pageIndex)]._pagePrev);
233
list._tail = (
_pages
[(pageIndex)]._pagePrev);
236
(
_pages
[(pageIndex)]._pagePrev) = -1;
237
(
_pages
[(pageIndex)]._pageNext) = -1;
287
Debug.Assert((((
_pages
[(pageIndex)]._entries))[0]._cFree) == NUM_ENTRIES, "FreeEntryCount(EntriesI(pageIndex)) == NUM_ENTRIES");
292
Debug.Assert((
_pages
[(pageIndex)]._entries) != null, "EntriesI(pageIndex) != null");
293
(
_pages
[(pageIndex)]._entries) = null;
311
UsageEntry[] entries = (
_pages
[(pageIndex)]._entries);
328
UsageEntry[] entries = (
_pages
[(entryRef.PageIndex)]._entries);
362
if (
_pages
== null)
368
oldLength =
_pages
.Length;
383
newPages[i] =
_pages
[i];
413
(
_pages
[(pageIndex)]._entries) = entries;
436
pageIndexNext = (
_pages
[(pageIndexCurrent)]._pageNext);
438
if ((((
_pages
[(pageIndexCurrent)]._entries))[0]._cFree) > meanFree)
458
entries = (
_pages
[(_freeEntryList._tail)]._entries);
481
UsageEntry[] newEntries = (
_pages
[(newRef1.PageIndex)]._entries);
495
{ if ((prev).IsRef1) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref1Index]._ref1._next = (newRef1); } else if ((prev).IsRef2) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref2Index]._ref2._next = (newRef1); } else { _lastRefHead = (newRef1); } };
496
{ if ((next).IsRef1) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref1Index]._ref1._prev = (newRef1); } else if ((next).IsRef2) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref2Index]._ref2._prev = (newRef1); } else { _lastRefTail = (newRef1); } };
507
{ if ((prev).IsRef1) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref1Index]._ref1._next = (newRef2); } else if ((prev).IsRef2) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref2Index]._ref2._next = (newRef2); } else { _lastRefHead = (newRef2); } };
508
{ if ((next).IsRef1) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref1Index]._ref1._prev = (newRef2); } else if ((next).IsRef2) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref2Index]._ref2._prev = (newRef2); } else { _lastRefTail = (newRef2); } };
534
UsageEntry[] entries = (
_pages
[(freeRef1.PageIndex)]._entries);
550
{ if ((_lastRefHead).IsRef1) { (
_pages
[((_lastRefHead).PageIndex)]._entries)[(_lastRefHead).Ref1Index]._ref1._prev = (freeRef1); } else if ((_lastRefHead).IsRef2) { (
_pages
[((_lastRefHead).PageIndex)]._entries)[(_lastRefHead).Ref2Index]._ref2._prev = (freeRef1); } else { _lastRefTail = (freeRef1); } };
560
prev = (
_pages
[(_addRef2Head.PageIndex)]._entries)[_addRef2Head.Ref2Index]._ref2._prev;
565
{ if ((prev).IsRef1) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref1Index]._ref1._next = (freeRef2); } else if ((prev).IsRef2) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref2Index]._ref2._next = (freeRef2); } else { _lastRefHead = (freeRef2); } };
566
{ if ((next).IsRef1) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref1Index]._ref1._prev = (freeRef2); } else if ((next).IsRef2) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref2Index]._ref2._prev = (freeRef2); } else { _lastRefTail = (freeRef2); } };
584
UsageEntry[] entries = (
_pages
[(entryRef.PageIndex)]._entries);
590
{ if ((prev).IsRef1) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref1Index]._ref1._next = (next); } else if ((prev).IsRef2) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref2Index]._ref2._next = (next); } else { _lastRefHead = (next); } };
591
{ if ((next).IsRef1) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref1Index]._ref1._prev = (prev); } else if ((next).IsRef2) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref2Index]._ref2._prev = (prev); } else { _lastRefTail = (prev); } };
598
{ if ((prev).IsRef1) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref1Index]._ref1._next = (next); } else if ((prev).IsRef2) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref2Index]._ref2._next = (next); } else { _lastRefHead = (next); } };
599
{ if ((next).IsRef1) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref1Index]._ref1._prev = (prev); } else if ((next).IsRef2) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref2Index]._ref2._prev = (prev); } else { _lastRefTail = (prev); } };
615
UsageEntry[] entries = (
_pages
[(entryRef.PageIndex)]._entries);
642
UsageEntry[] entries = (
_pages
[(entryRef.PageIndex)]._entries);
649
{ if ((prev).IsRef1) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref1Index]._ref1._next = (next); } else if ((prev).IsRef2) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref2Index]._ref2._next = (next); } else { _lastRefHead = (next); } };
650
{ if ((next).IsRef1) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref1Index]._ref1._prev = (prev); } else if ((next).IsRef2) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref2Index]._ref2._prev = (prev); } else { _lastRefTail = (prev); } };
661
{ if ((prev).IsRef1) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref1Index]._ref1._next = (entryRef2); } else if ((prev).IsRef2) { (
_pages
[((prev).PageIndex)]._entries)[(prev).Ref2Index]._ref2._next = (entryRef2); } else { _lastRefHead = (entryRef2); } };
662
{ if ((next).IsRef1) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref1Index]._ref1._prev = (entryRef2); } else if ((next).IsRef2) { (
_pages
[((next).PageIndex)]._entries)[(next).Ref2Index]._ref2._prev = (entryRef2); } else { _lastRefTail = (entryRef2); } };
667
{ if ((_lastRefHead).IsRef1) { (
_pages
[((_lastRefHead).PageIndex)]._entries)[(_lastRefHead).Ref1Index]._ref1._prev = (entryRef); } else if ((_lastRefHead).IsRef2) { (
_pages
[((_lastRefHead).PageIndex)]._entries)[(_lastRefHead).Ref2Index]._ref2._prev = (entryRef); } else { _lastRefTail = (entryRef); } };
711
prevNext = (
_pages
[(prev.PageIndex)]._entries)[prev.Ref2Index]._ref2._prev;
714
prevNext = (
_pages
[(prevNext.PageIndex)]._entries)[prevNext.Ref1Index]._ref1._prev;
717
entries = (
_pages
[(prev.PageIndex)]._entries);
768
entries = (
_pages
[(current.PageIndex)]._entries);
790
entries = (
_pages
[(current.PageIndex)]._entries);