Lines Matching refs:Cache
31 static void deallocateCache(CacheT *Cache) { in deallocateCache() argument
32 while (scudo::QuarantineBatch *Batch = Cache->dequeueBatch()) in deallocateCache()
71 CacheT Cache; in TEST() local
73 Cache.init(); in TEST()
75 Cache.mergeBatches(&ToDeallocate); in TEST()
82 CacheT Cache; in TEST() local
83 Cache.init(); in TEST()
84 Cache.enqueue(Cb, FakePtr, BlockSize); in TEST()
85 EXPECT_EQ(BlockSize + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST()
89 Cache.mergeBatches(&ToDeallocate); in TEST()
92 EXPECT_EQ(BlockSize + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST()
97 deallocateCache(&Cache); in TEST()
105 CacheT Cache; in TEST() local
106 Cache.init(); in TEST()
107 Cache.enqueue(Cb, FakePtr, BlockSize); in TEST()
109 Cache.transfer(&From); in TEST()
111 Cache.getSize()); in TEST()
115 Cache.mergeBatches(&ToDeallocate); in TEST()
118 EXPECT_EQ(BlockSize * 2 + sizeof(scudo::QuarantineBatch), Cache.getSize()); in TEST()
121 deallocateCache(&Cache); in TEST()
130 CacheT Cache; in TEST() local
132 Cache.init(); in TEST()
135 Cache.enqueue(Cb, FakePtr, BlockSize); in TEST()
137 Cache.transfer(&From); in TEST()
139 Cache.getSize()); in TEST()
143 Cache.mergeBatches(&ToDeallocate); in TEST()
147 Cache.getSize()); in TEST()
150 deallocateCache(&Cache); in TEST()
160 CacheT Cache; in TEST() local
161 Cache.init(); in TEST()
166 Cache.transfer(&From); in TEST()
171 Cache.getSize()); in TEST()
175 Cache.mergeBatches(&ToDeallocate); in TEST()
180 Cache.getSize()); in TEST()
186 deallocateCache(&Cache); in TEST()
195 CacheT Cache; in TEST() local
196 Cache.init(); in TEST()
202 scudo::uptr CacheSize = Cache.getSize(); in TEST()
203 EXPECT_EQ(Cache.getSize(), 0UL); in TEST()
207 Quarantine.put(&Cache, Cb, FakePtr, LargeBlockSize); in TEST()
208 if (!DrainOccurred && Cache.getSize() < CacheSize) in TEST()
210 CacheSize = Cache.getSize(); in TEST()
214 Quarantine.drainAndRecycle(&Cache, Cb); in TEST()
215 EXPECT_EQ(Cache.getSize(), 0UL); in TEST()
225 CacheT Cache; member
230 P->Cache.init(); in populateQuarantine()
232 P->Quarantine->put(&P->Cache, Cb, FakePtr, LargeBlockSize); in populateQuarantine()
254 Quarantine.drainAndRecycle(&T[I].Cache, Cb); in TEST()