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.cc235 void MallocSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
245 bitmap->Clear(ptrs[i]); in SweepCallback()
252 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.cc210 size_t LargeObjectSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument
214 CHECK(Contains(ptrs[i])); in FreeList()
216 total += Free(self, ptrs[i]); in FreeList()
571 void LargeObjectSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument
581 bitmap->Clear(ptrs[i]); in SweepCallback()
585 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;
113 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.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()