Home
last modified time | relevance | path

Searched refs:Cache (Results 1 – 25 of 573) sorted by relevance

12345678910>>...23

/external/llvm-project/clang/unittests/Serialization/
DInMemoryModuleCacheTest.cpp26 InMemoryModuleCache Cache; in TEST() local
27 EXPECT_EQ(InMemoryModuleCache::Unknown, Cache.getPCMState("B")); in TEST()
28 EXPECT_FALSE(Cache.isPCMFinal("B")); in TEST()
29 EXPECT_FALSE(Cache.shouldBuildPCM("B")); in TEST()
32 EXPECT_DEATH(Cache.tryToDropPCM("B"), "PCM to remove is unknown"); in TEST()
33 EXPECT_DEATH(Cache.finalizePCM("B"), "PCM to finalize is unknown"); in TEST()
41 InMemoryModuleCache Cache; in TEST() local
42 EXPECT_EQ(RawB, &Cache.addPCM("B", std::move(B))); in TEST()
43 EXPECT_EQ(InMemoryModuleCache::Tentative, Cache.getPCMState("B")); in TEST()
44 EXPECT_EQ(RawB, Cache.lookupPCM("B")); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dquarantine_test.cpp31 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()
[all …]
Dprimary_test.cpp32 typename Primary::CacheT Cache; in testPrimary() local
33 Cache.init(nullptr, Allocator.get()); in testPrimary()
41 void *P = Cache.allocate(ClassId); in testPrimary()
46 Cache.deallocate(ClassId, Pointers[J]); in testPrimary()
48 Cache.destroy(nullptr); in testPrimary()
72 typename Primary::CacheT Cache; in TEST() local
75 Cache.init(&Stats, &Allocator); in TEST()
81 TransferBatch *B = Allocator.popBatch(&Cache, ClassId); in TEST()
94 Cache.destroy(nullptr); in TEST()
110 typename Primary::CacheT Cache; in testIteratePrimary() local
[all …]
/external/scudo/standalone/tests/
Dquarantine_test.cpp31 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()
[all …]
Dprimary_test.cpp106 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() local
107 Cache.init(nullptr, Allocator.get()); in SCUDO_TYPED_TEST()
116 void *P = Cache.allocate(ClassId); in SCUDO_TYPED_TEST()
121 Cache.deallocate(ClassId, Pointers[J]); in SCUDO_TYPED_TEST()
123 Cache.destroy(nullptr); in SCUDO_TYPED_TEST()
147 typename Primary::CacheT Cache; in TEST() local
150 Cache.init(&Stats, &Allocator); in TEST()
156 TransferBatch *B = Allocator.popBatch(&Cache, ClassId); in TEST()
169 Cache.destroy(nullptr); in TEST()
182 typename Primary::CacheT Cache; in SCUDO_TYPED_TEST() local
[all …]
/external/libchrome/base/containers/
Dmru_cache_unittest.cc43 typedef base::MRUCache<int, CachedItem> Cache; in TEST() typedef
44 Cache cache(Cache::NO_AUTO_EVICT); in TEST()
55 Cache::iterator inserted_item = cache.Put(kItem1Key, item1); in TEST()
60 Cache::iterator found = cache.Get(kItem1Key); in TEST()
78 Cache::reverse_iterator oldest = cache.rbegin(); in TEST()
86 Cache::iterator test_item = cache.Get(kItem1Key); in TEST()
94 Cache::reverse_iterator oldest = cache.rbegin(); in TEST()
102 Cache::reverse_iterator next = cache.Erase(cache.rbegin()); in TEST()
123 typedef base::MRUCache<int, CachedItem> Cache; in TEST() typedef
124 Cache cache(Cache::NO_AUTO_EVICT); in TEST()
[all …]
/external/llvm-project/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITObjectCacheTest.cpp123 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
130 TheJIT->setObjectCache(Cache.get()); in TEST_F()
133 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
139 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); in TEST_F()
142 ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
146 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F()
152 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
156 TheJIT->setObjectCache(Cache.get()); in TEST_F()
173 TheJIT->setObjectCache(Cache.get()); in TEST_F()
177 EXPECT_TRUE(Cache->wasModuleLookedUp(SecondModulePointer)); in TEST_F()
[all …]
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITObjectCacheTest.cpp124 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
131 TheJIT->setObjectCache(Cache.get()); in TEST_F()
134 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
140 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); in TEST_F()
143 ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F()
147 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F()
153 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local
157 TheJIT->setObjectCache(Cache.get()); in TEST_F()
174 TheJIT->setObjectCache(Cache.get()); in TEST_F()
178 EXPECT_TRUE(Cache->wasModuleLookedUp(SecondModulePointer)); in TEST_F()
[all …]
/external/tensorflow/tensorflow/core/lib/io/
Dcache.h40 class Cache; variable
44 Cache* NewLRUCache(size_t capacity);
46 class Cache {
48 Cache() = default;
50 Cache(const Cache&) = delete;
51 Cache& operator=(const Cache&) = delete;
55 virtual ~Cache();
/external/volley/src/test/java/com/android/volley/toolbox/
DCacheTest.java21 import com.android.volley.Cache;
32 assertNotNull(Cache.class.getMethod("get", String.class)); in publicMethods()
33 assertNotNull(Cache.class.getMethod("put", String.class, Cache.Entry.class)); in publicMethods()
34 assertNotNull(Cache.class.getMethod("initialize")); in publicMethods()
35 assertNotNull(Cache.class.getMethod("invalidate", String.class, boolean.class)); in publicMethods()
36 assertNotNull(Cache.class.getMethod("remove", String.class)); in publicMethods()
37 assertNotNull(Cache.class.getMethod("clear")); in publicMethods()
DDiskBasedCacheTest.java35 import com.android.volley.Cache;
67 private Cache cache;
92 Cache.Entry entry = new Cache.Entry(); in testPutGetZeroBytes()
110 Cache.Entry entry = randomData(511); in testPutRemoveGet()
122 Cache.Entry entry = randomData(511); in testPutClearGet()
134 Cache.Entry entry = randomData(1023); in testReinitialize()
137 Cache copy = new DiskBasedCache(temporaryFolder.getRoot(), MAX_SIZE); in testReinitialize()
145 Cache.Entry entry = randomData(32); in testInvalidate()
157 Cache.Entry entry = randomData(32); in testInvalidateFullExpire()
170 Cache.Entry entry = randomData(MAX_SIZE - getEntrySizeOnDisk("oversize")); in testTooLargeEntry()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_quarantine_test.cpp30 typedef QuarantineCache<QuarantineCallback> Cache; typedef
37 static void DeallocateCache(Cache *cache) { in DeallocateCache()
77 Cache cache; in TEST()
78 Cache to_deallocate; in TEST()
86 Cache cache; in TEST()
90 Cache to_deallocate; in TEST()
104 Cache from; in TEST()
106 Cache cache; in TEST()
112 Cache to_deallocate; in TEST()
127 Cache from; in TEST()
[all …]
/external/ImageMagick/MagickCore/
Dcache-private.h34 *Cache; typedef
238 extern MagickPrivate Cache
240 ClonePixelCache(const Cache),
241 DestroyPixelCache(Cache),
242 ReferencePixelCache(Cache);
245 GetPixelCacheStorageClass(const Cache);
248 GetPixelCacheColorspace(const Cache);
254 *GetVirtualPixelsNexus(const Cache,NexusInfo *magick_restrict);
257 *GetVirtualMetacontentFromNexus(const Cache,NexusInfo *magick_restrict);
266 GetPixelCacheNexusExtent(const Cache,NexusInfo *magick_restrict);
[all …]
/external/volley/src/test/java/com/android/volley/utils/
DCacheTestUtils.java24 import com.android.volley.Cache;
36 public static Cache.Entry makeRandomCacheEntry( in makeRandomCacheEntry()
39 Cache.Entry entry = new Cache.Entry(); in makeRandomCacheEntry()
56 public static Cache.Entry makeRandomCacheEntry(byte[] data) { in makeRandomCacheEntry()
60 public static void assertThatEntriesAreEqual(Cache.Entry actual, Cache.Entry expected) { in assertThatEntriesAreEqual()
71 public static Cache.Entry randomData(int length) { in randomData()
72 Cache.Entry entry = new Cache.Entry(); in randomData()
/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_allocator_combined.h34 void *allocatePrimary(AllocatorCache *Cache, uptr ClassId) { in allocatePrimary() argument
35 return Cache->Allocate(&Primary, ClassId); in allocatePrimary()
44 void deallocatePrimary(AllocatorCache *Cache, void *Ptr, uptr ClassId) { in deallocatePrimary() argument
45 Cache->Deallocate(&Primary, ClassId, Ptr); in deallocatePrimary()
52 void initCache(AllocatorCache *Cache) { in initCache() argument
53 Cache->Init(&Stats); in initCache()
56 void destroyCache(AllocatorCache *Cache) { in destroyCache() argument
57 Cache->Destroy(&Primary, &Stats); in destroyCache()
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp737 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, in AssertSorted() argument
740 Count = Cache.size(); in AssertSorted()
741 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
752 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
759 if (!Cache.empty()) { in getNonLocalCallDependency()
764 return Cache; in getNonLocalCallDependency()
769 for (auto &Entry : Cache) in getNonLocalCallDependency()
774 std::sort(Cache.begin(), Cache.end()); in getNonLocalCallDependency()
792 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
793 DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_dense_alloc.h39 typedef DenseSlabAllocCache Cache; typedef
40 typedef typename Cache::IndexT IndexT;
61 IndexT Alloc(Cache *c) { in Alloc()
67 void Free(Cache *c, IndexT idx) { in Free()
69 if (c->pos == Cache::kSize) in Free()
80 void FlushCache(Cache *c) { in FlushCache()
89 void InitCache(Cache *c) { in InitCache()
100 void Refill(Cache *c) { in Refill()
118 for (uptr i = 0; i < Cache::kSize / 2 && freelist_ != 0; i++) { in Refill()
125 void Drain(Cache *c) { in Drain()
[all …]
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_dense_alloc.h38 typedef DenseSlabAllocCache Cache; typedef
39 typedef typename Cache::IndexT IndexT;
61 IndexT Alloc(Cache *c) { in Alloc()
67 void Free(Cache *c, IndexT idx) { in Free()
69 if (c->pos == Cache::kSize) in Free()
80 void FlushCache(Cache *c) { in FlushCache()
89 void InitCache(Cache *c) { in InitCache()
101 void Refill(Cache *c) { in Refill()
122 for (uptr i = 0; i < Cache::kSize / 2 && freelist_ != 0; i++) { in Refill()
129 void Drain(Cache *c) { in Drain()
[all …]
/external/compiler-rt/test/tsan/
Dstatic_init2.cc6 struct Cache { struct
8 explicit Cache(int x) in Cache() function
13 void foo(Cache *my) { in foo()
14 static Cache *c = my ? my : new Cache(rand()); in foo()
20 foo(new Cache(rand())); in Thread()
Dstatic_init3.cc7 struct Cache { struct
11 Cache g_cache; argument
13 Cache *CreateCache() { in CreateCache()
18 _Atomic(Cache*) queue;
21 static Cache *c = CreateCache(); in Thread1()
27 Cache *c = 0; in Thread2()
Dstatic_init6.cc7 struct Cache { struct
9 explicit Cache(int x) in Cache() argument
15 return new Cache((int)(long)p); in AsyncInit()
18 Cache *CreateCache() { in CreateCache()
23 return (Cache*)res; in CreateCache()
27 static Cache *c = CreateCache(); in Thread1()
/external/llvm-project/compiler-rt/test/tsan/
Dstatic_init2.cpp6 struct Cache { struct
8 explicit Cache(int x) in Cache() argument
13 void foo(Cache *my) { in foo()
14 static Cache *c = my ? my : new Cache(rand()); in foo()
20 foo(new Cache(rand())); in Thread()
Dstatic_init3.cpp7 struct Cache { struct
11 Cache g_cache; argument
13 Cache *CreateCache() { in CreateCache()
18 _Atomic(Cache*) queue;
21 static Cache *c = CreateCache(); in Thread1()
27 Cache *c = 0; in Thread2()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp776 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, in AssertSorted() argument
779 Count = Cache.size(); in AssertSorted()
780 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
791 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
798 if (!Cache.empty()) { in getNonLocalCallDependency()
803 return Cache; in getNonLocalCallDependency()
808 for (auto &Entry : Cache) in getNonLocalCallDependency()
813 llvm::sort(Cache); in getNonLocalCallDependency()
831 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
832 LLVM_DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp710 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, in AssertSorted() argument
713 Count = Cache.size(); in AssertSorted()
714 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted()
725 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local
732 if (!Cache.empty()) { in getNonLocalCallDependency()
737 return Cache; in getNonLocalCallDependency()
742 for (auto &Entry : Cache) in getNonLocalCallDependency()
747 llvm::sort(Cache); in getNonLocalCallDependency()
765 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency()
766 LLVM_DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency()
[all …]

12345678910>>...23