Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 36) sorted by relevance

12

/art/test/175-alloc-big-bignums/
DAndroid.bp3 // Build rules for ART run-test `175-alloc-big-bignums`.
16 name: "art-run-test-175-alloc-big-bignums",
21 ":art-run-test-175-alloc-big-bignums-expected-stdout",
22 ":art-run-test-175-alloc-big-bignums-expected-stderr",
28 name: "art-run-test-175-alloc-big-bignums-expected-stdout",
29 out: ["art-run-test-175-alloc-big-bignums-expected-stdout.txt"],
36 name: "art-run-test-175-alloc-big-bignums-expected-stderr",
37 out: ["art-run-test-175-alloc-big-bignums-expected-stderr.txt"],
/art/test/1900-track-alloc/
DAndroid.bp3 // Build rules for ART run-test `1900-track-alloc`.
16 name: "art-run-test-1900-track-alloc",
21 ":art-run-test-1900-track-alloc-expected-stdout",
22 ":art-run-test-1900-track-alloc-expected-stderr",
28 name: "art-run-test-1900-track-alloc-expected-stdout",
29 out: ["art-run-test-1900-track-alloc-expected-stdout.txt"],
36 name: "art-run-test-1900-track-alloc-expected-stderr",
37 out: ["art-run-test-1900-track-alloc-expected-stderr.txt"],
/art/test/616-cha-unloading/
Dcha_unload.cc38 bool Visit(LinearAlloc* alloc) in Visit() argument
40 is_found = alloc->Contains(ptr_); in Visit()
80 std::unique_ptr<LinearAlloc> alloc(Runtime::Current()->CreateLinearAlloc()); in Java_Main_reuseArenaOfMethod() local
83 alloc->Alloc(Thread::Current(), 1); in Java_Main_reuseArenaOfMethod()
84 } while (!alloc->Contains(ptr)); in Java_Main_reuseArenaOfMethod()
/art/tools/jvmti-agents/ti-alloc-sample/
DAndroid.bp28 name: "ti-alloc-sample-base-defaults",
43 name: "ti-alloc-sample-defaults",
48 defaults: ["ti-alloc-sample-base-defaults"],
52 name: "ti-alloc-sample-static-defaults",
54 defaults: ["ti-alloc-sample-base-defaults"],
68 defaults: ["ti-alloc-sample-static-defaults"],
73 defaults: ["ti-alloc-sample-defaults"],
80 "ti-alloc-sample-defaults",
/art/libartbase/base/
Ddchecked_vector.h60 explicit dchecked_vector(const allocator_type& alloc) in dchecked_vector() argument
61 : Base(alloc) { } in dchecked_vector()
62 explicit dchecked_vector(size_type n, const allocator_type& alloc = allocator_type())
63 : Base(n, alloc) { } in Base() argument
66 const allocator_type& alloc = allocator_type())
67 : Base(n, value, alloc) { } in Base() argument
71 const allocator_type& alloc = allocator_type())
72 : Base(first, last, alloc) { } in Base() argument
75 dchecked_vector(const dchecked_vector& src, const allocator_type& alloc) in dchecked_vector() argument
76 : Base(src, alloc) { } in dchecked_vector()
[all …]
Dbit_vector_test.cc91 MessyAllocator alloc; in TEST() local
92 BitVector bv(32, false, &alloc); in TEST()
346 SingleAllocator alloc; in TEST() local
348 BitVector bv(16, false, &alloc); in TEST()
350 EXPECT_EQ(alloc.FreeCount(), 0u); in TEST()
351 EXPECT_EQ(alloc.AllocCount(), 1u); in TEST()
358 EXPECT_EQ(alloc.FreeCount(), 0u); in TEST()
359 EXPECT_EQ(alloc.AllocCount(), 1u); in TEST()
361 EXPECT_EQ(alloc.FreeCount(), 1u); in TEST()
362 EXPECT_EQ(alloc.AllocCount(), 1u); in TEST()
[all …]
Dhash_set.h196 explicit HashSet(const allocator_type& alloc) noexcept in HashSet() argument
197 : HashSet(kDefaultMinLoadFactor, kDefaultMaxLoadFactor, alloc) {} in HashSet()
201 HashSet(double min_load_factor, double max_load_factor, const allocator_type& alloc) noexcept in HashSet() argument
202 : HashSet(min_load_factor, max_load_factor, HashFn(), Pred(), alloc) {} in HashSet()
209 const allocator_type& alloc) noexcept in HashSet() argument
210 : HashSet(kDefaultMinLoadFactor, kDefaultMaxLoadFactor, hashfn, pred, alloc) {} in HashSet()
221 const allocator_type& alloc) noexcept in HashSet() argument
222 : allocfn_(alloc), in HashSet()
280 HashSet(value_type* buffer, size_t buffer_size, const allocator_type& alloc) in HashSet() argument
281 : HashSet(kDefaultMinLoadFactor, kDefaultMaxLoadFactor, buffer, buffer_size, alloc) {} in HashSet()
[all …]
Dleb128.h367 explicit Leb128EncodingVector(const typename Vector::allocator_type& alloc) in Leb128EncodingVector() argument
368 : Vector(alloc), in Leb128EncodingVector()
Dallocator.h119 const TrackingAllocatorImpl<U, kTag>& alloc ATTRIBUTE_UNUSED) noexcept {} in TrackingAllocatorImpl()
/art/compiler/utils/
Dswap_space_test.cc42 SwapAllocator<void> alloc(use_file ? &pool : nullptr); in SwapTest() local
44 SwapVector<int32_t> v(alloc); in SwapTest()
51 SwapVector<int32_t> v2(alloc); in SwapTest()
58 SwapVector<int32_t> v3(alloc); in SwapTest()
Ddedupe_set_test.cc56 DedupeSetTestAlloc alloc; in TEST() local
61 DedupeSetTestHashFunc> deduplicator("test", alloc); in TEST()
Ddedupe_set-inl.h57 Shard(const Alloc& alloc, const std::string& lock_name)
58 : alloc_(alloc),
212 const Alloc& alloc)
217 shards_[i].reset(new Shard(alloc, oss.str()));
Ddedupe_set.h44 DedupeSet(const char* set_name, const Alloc& alloc);
/art/compiler/
Dcompiled_method.cc116 SwapAllocator<CompiledMethod> alloc(storage->GetSwapSpaceAllocator()); in SwapAllocCompiledMethod() local
117 CompiledMethod* ret = alloc.allocate(1); in SwapAllocCompiledMethod()
118 alloc.construct(ret, in SwapAllocCompiledMethod()
129 SwapAllocator<CompiledMethod> alloc(storage->GetSwapSpaceAllocator()); in ReleaseSwapAllocatedCompiledMethod() local
130 alloc.destroy(m); in ReleaseSwapAllocatedCompiledMethod()
131 alloc.deallocate(m, 1); in ReleaseSwapAllocatedCompiledMethod()
/art/runtime/
Dmonitor_pool_test.cc63 bool alloc; in TEST_F() local
65 alloc = true; in TEST_F()
67 alloc = false; in TEST_F()
70 alloc = r.next() % 2 == 0; in TEST_F()
73 if (alloc) { in TEST_F()
Dcha.cc83 const LinearAlloc* alloc, in ResetSingleImplementationInHierarchy() argument
88 DCHECK(alloc != nullptr); in ResetSingleImplementationInHierarchy()
99 if (!alloc->ContainsUnsafe(klass->GetMethodsPtr())) { in ResetSingleImplementationInHierarchy()
125 if (!alloc->ContainsUnsafe(method)) { in ResetSingleImplementationInHierarchy()
172 alloc->ContainsUnsafe(method->GetSingleImplementation(pointer_size)) && in ResetSingleImplementationInHierarchy()
Dcha.h120 const LinearAlloc* alloc,
/art/libelffile/elf/
Dxz_utils.cc103 ISzAlloc alloc; in XzDecompress() local
104 alloc.Alloc = [](ISzAllocPtr, size_t size) { return malloc(size); }; in XzDecompress()
105 alloc.Free = [](ISzAllocPtr, void* ptr) { return free(ptr); }; in XzDecompress()
106 XzUnpacker_Construct(state.get(), &alloc); in XzDecompress()
/art/libelffile/dwarf/
Ddebug_line_opcode_writer.h225 const typename Vector::allocator_type& alloc =
228 opcodes_(alloc),
Ddebug_info_entry_writer.h202 const typename Vector::allocator_type& alloc =
206 entries_(alloc),
Ddebug_frame_opcode_writer.h303 const typename Vector::allocator_type& alloc =
307 opcodes_(alloc),
/art/runtime/jit/
Djit_code_cache.cc177 void RemoveMethodsIn(const LinearAlloc& alloc) REQUIRES_SHARED(Locks::mutator_lock_) { in RemoveMethodsIn() argument
181 [&alloc](ArtMethod* method) { return !alloc.ContainsUnsafe(method); }); in RemoveMethodsIn()
359 static const void* FromAllocationToCode(const uint8_t* alloc) { in FromAllocationToCode() argument
361 return reinterpret_cast<const void*>(alloc + RoundUp(sizeof(OatQuickMethodHeader), alignment)); in FromAllocationToCode()
506 void JitCodeCache::RemoveMethodsIn(Thread* self, const LinearAlloc& alloc) { in RemoveMethodsIn() argument
520 it->second.RemoveMethodsIn(alloc); in RemoveMethodsIn()
530 if (alloc.ContainsUnsafe(it->second)) { in RemoveMethodsIn()
540 if (alloc.ContainsUnsafe(it->first)) { in RemoveMethodsIn()
550 if (alloc.ContainsUnsafe(info->GetMethod())) { in RemoveMethodsIn()
/art/compiler/optimizing/
Dexecution_subgraph.cc277 ScopedArenaAllocator alloc(graph_->GetArenaStack()); in RecalculateExcludedCohort() local
278 ScopedArenaQueue<const HBasicBlock*> worklist(alloc.Adapter(kArenaAllocLSA)); in RecalculateExcludedCohort()
/art/runtime/mirror/
Ddex_cache.cc39 static T* AllocArray(Thread* self, LinearAlloc* alloc, size_t num) { in AllocArray() argument
43 return reinterpret_cast<T*>(alloc->AllocAlign16(self, RoundUp(num * sizeof(T), 16))); in AllocArray()
/art/openjdkjvmti/
Djvmti_weak_table-inl.h252 explicit ReleasableContainer(const allocator_type& alloc, size_t reserve = 10)
253 : allocator(alloc),

12