/art/runtime/gc/space/ |
D | dlmalloc_space.cc | 181 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()
|
D | rosalloc_space.cc | 203 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()
|
D | zygote_space.cc | 104 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()
|
D | zygote_space.h | 55 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);
|
D | memory_tool_malloc_space-inl.h | 224 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()
|
D | malloc_space.h | 67 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)
|
D | malloc_space.cc | 235 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()
|
D | memory_tool_malloc_space.h | 48 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE
|
D | large_object_space.cc | 210 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()
|
D | large_object_space.h | 63 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);
|
D | dlmalloc_space.h | 70 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE
|
D | rosalloc_space.h | 68 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE
|
D | space.h | 233 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) = 0;
|
/art/runtime/gc/accounting/ |
D | space_bitmap.h | 45 typedef void SweepCallback(size_t ptr_count, mirror::Object** ptrs, void* arg);
|
/art/runtime/gc/allocator/ |
D | rosalloc.h | 851 size_t BulkFree(Thread* self, void** ptrs, size_t num_ptrs)
|
D | rosalloc.cc | 1003 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()
|