Home
last modified time | relevance | path

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

/art/runtime/gc/space/
Ddlmalloc_space.cc181 size_t DlMallocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
182 DCHECK(ptrs != nullptr); in FreeList()
187 mirror::Object* ptr = ptrs[i]; in FreeList()
191 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + look_ahead]) - sizeof(size_t)); in FreeList()
199 RegisterRecentFree(ptrs[i]); in FreeList()
206 if (!Contains(ptrs[i])) { in FreeList()
208 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this; in FreeList()
210 size_t size = mspace_usable_size(ptrs[i]); in FreeList()
211 memset(ptrs[i], 0xEF, size); in FreeList()
219 mspace_bulk_free(mspace_, reinterpret_cast<void**>(ptrs), num_ptrs); in FreeList()
Drosalloc_space.cc203 size_t RosAllocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
204 DCHECK(ptrs != nullptr); in FreeList()
209 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + kPrefetchLookAhead])); in FreeList()
212 verify_bytes += AllocationSizeNonvirtual<true>(ptrs[i], nullptr); in FreeList()
219 RegisterRecentFree(ptrs[i]); in FreeList()
226 if (!Contains(ptrs[i])) { in FreeList()
228 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this; in FreeList()
230 size_t size = rosalloc_->UsableSize(ptrs[i]); in FreeList()
231 memset(ptrs[i], 0xEF, size); in FreeList()
237 const size_t bytes_freed = rosalloc_->BulkFree(self, reinterpret_cast<void**>(ptrs), num_ptrs); in FreeList()
Dzygote_space.cc104 void ZygoteSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
115 bitmap->Clear(ptrs[i]); in SweepCallback()
121 card_table->MarkCard(ptrs[i]); in SweepCallback()
Dzygote_space.h55 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE;
89 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg);
Dmemory_tool_malloc_space-inl.h224 Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
227 freed += Free(self, ptrs[i]); in FreeList()
228 ptrs[i] = nullptr; in FreeList()
Dmalloc_space.h67 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs)
198 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg)
Dmalloc_space.cc231 void MallocSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
241 bitmap->Clear(ptrs[i]); in SweepCallback()
248 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.cc220 size_t LargeObjectSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
224 CHECK(Contains(ptrs[i])); in FreeList()
226 total += Free(self, ptrs[i]); in FreeList()
581 void LargeObjectSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
591 bitmap->Clear(ptrs[i]); in SweepCallback()
595 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
Dlarge_object_space.h63 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE;
109 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg);
Ddlmalloc_space.h70 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE
Drosalloc_space.h68 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE
Dspace.h233 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) = 0;
/art/runtime/gc/accounting/
Dspace_bitmap.h45 typedef void SweepCallback(size_t ptr_count, mirror::Object** ptrs, void* arg);
/art/runtime/gc/allocator/
Drosalloc.h851 size_t BulkFree(Thread* self, void** ptrs, size_t num_ptrs)
Drosalloc.cc1010 size_t RosAlloc::BulkFree(Thread* self, void** ptrs, size_t num_ptrs) { in BulkFree() argument
1015 freed_bytes += FreeInternal(self, ptrs[i]); in BulkFree()
1030 void* ptr = ptrs[i]; in BulkFree()