Home
last modified time | relevance | path

Searched refs:ptrs (Results 1 – 16 of 16) sorted by relevance

/art/runtime/gc/space/
Ddlmalloc_space.cc240 size_t DlMallocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
241 DCHECK(ptrs != nullptr); in FreeList()
246 mirror::Object* ptr = ptrs[i]; in FreeList()
250 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + look_ahead]) - sizeof(size_t)); in FreeList()
258 RegisterRecentFree(ptrs[i]); in FreeList()
265 if (!Contains(ptrs[i])) { in FreeList()
267 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this; in FreeList()
269 size_t size = mspace_usable_size(ptrs[i]); in FreeList()
270 memset(ptrs[i], 0xEF, size); in FreeList()
278 mspace_bulk_free(mspace_, reinterpret_cast<void**>(ptrs), num_ptrs); in FreeList()
Drosalloc_space.cc272 size_t RosAllocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
273 DCHECK(ptrs != nullptr); in FreeList()
278 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + kPrefetchLookAhead])); in FreeList()
281 verify_bytes += AllocationSizeNonvirtual<true>(ptrs[i], nullptr); in FreeList()
288 RegisterRecentFree(ptrs[i]); in FreeList()
295 if (!Contains(ptrs[i])) { in FreeList()
297 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this; in FreeList()
299 size_t size = rosalloc_->UsableSize(ptrs[i]); in FreeList()
300 memset(ptrs[i], 0xEF, size); in FreeList()
306 const size_t bytes_freed = rosalloc_->BulkFree(self, reinterpret_cast<void**>(ptrs), num_ptrs); in FreeList()
Dmemory_tool_malloc_space-inl.h252 Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
256 std::sort(ptrs, ptrs + num_ptrs, [](mirror::Object* a, mirror::Object* b) in FreeList()
261 freed += Free(self, ptrs[i]); in FreeList()
262 ptrs[i] = nullptr; in FreeList()
Dzygote_space.cc119 void ZygoteSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
130 bitmap->Clear(ptrs[i]); in SweepCallback()
136 card_table->MarkCard(ptrs[i]); in SweepCallback()
Dzygote_space.h58 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override;
92 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg);
Dmalloc_space.h59 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override
205 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg)
Dmalloc_space.cc259 void MallocSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
269 bitmap->Clear(ptrs[i]); in SweepCallback()
276 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
Dmemory_tool_malloc_space.h48 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override
Dlarge_object_space.cc219 size_t LargeObjectSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
223 CHECK(Contains(ptrs[i])); in FreeList()
225 total += Free(self, ptrs[i]); in FreeList()
608 void LargeObjectSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
618 bitmap->Clear(ptrs[i]); in SweepCallback()
622 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
Dlarge_object_space.h69 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override;
122 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg);
Ddlmalloc_space.h79 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override
Drosalloc_space.h75 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override
Dspace.h232 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) = 0;
/art/runtime/gc/accounting/
Dspace_bitmap.h44 typedef void SweepCallback(size_t ptr_count, mirror::Object** ptrs, void* arg);
/art/runtime/gc/allocator/
Drosalloc.h855 size_t BulkFree(Thread* self, void** ptrs, size_t num_ptrs)
Drosalloc.cc1006 size_t RosAlloc::BulkFree(Thread* self, void** ptrs, size_t num_ptrs) { in BulkFree() argument
1011 freed_bytes += FreeInternal(self, ptrs[i]); in BulkFree()
1026 void* ptr = ptrs[i]; in BulkFree()