Home
last modified time | relevance | path

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

/art/runtime/gc/space/
Ddlmalloc_space.cc290 size_t DlMallocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
291 DCHECK(ptrs != nullptr); in FreeList()
296 mirror::Object* ptr = ptrs[i]; in FreeList()
300 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + look_ahead]) - sizeof(size_t)); in FreeList()
308 RegisterRecentFree(ptrs[i]); in FreeList()
315 if (!Contains(ptrs[i])) { in FreeList()
317 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this; in FreeList()
319 size_t size = mspace_usable_size(ptrs[i]); in FreeList()
320 memset(ptrs[i], 0xEF, size); in FreeList()
328 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.cc117 void ZygoteSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
128 bitmap->Clear(ptrs[i]); in SweepCallback()
134 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.cc224 size_t LargeObjectSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
228 CHECK(Contains(ptrs[i])); in FreeList()
230 total += Free(self, ptrs[i]); in FreeList()
643 void LargeObjectSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
653 bitmap->Clear(ptrs[i]); in SweepCallback()
657 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;
134 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 using SweepCallback = void(size_t ptr_count, mirror::Object** ptrs, void* arg);
/art/runtime/gc/allocator/
Drosalloc.h857 size_t BulkFree(Thread* self, void** ptrs, size_t num_ptrs)
Drosalloc.cc1003 size_t RosAlloc::BulkFree(Thread* self, void** ptrs, size_t num_ptrs) { in BulkFree() argument
1008 freed_bytes += FreeInternal(self, ptrs[i]); in BulkFree()
1023 void* ptr = ptrs[i]; in BulkFree()