/art/runtime/gc/space/ |
D | dlmalloc_space.cc | 179 size_t DlMallocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument 180 DCHECK(ptrs != nullptr); in FreeList() 185 mirror::Object* ptr = ptrs[i]; in FreeList() 189 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + look_ahead]) - sizeof(size_t)); in FreeList() 197 RegisterRecentFree(ptrs[i]); in FreeList() 204 if (!Contains(ptrs[i])) { in FreeList() 206 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this; in FreeList() 208 size_t size = mspace_usable_size(ptrs[i]); in FreeList() 209 memset(ptrs[i], 0xEF, size); in FreeList() 217 mspace_bulk_free(mspace_, reinterpret_cast<void**>(ptrs), num_ptrs); in FreeList()
|
D | rosalloc_space.cc | 206 size_t RosAllocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument 207 DCHECK(ptrs != nullptr); in FreeList() 212 __builtin_prefetch(reinterpret_cast<char*>(ptrs[i + kPrefetchLookAhead])); in FreeList() 215 verify_bytes += AllocationSizeNonvirtual<true>(ptrs[i], nullptr); in FreeList() 222 RegisterRecentFree(ptrs[i]); in FreeList() 229 if (!Contains(ptrs[i])) { in FreeList() 231 LOG(ERROR) << "FreeList[" << i << "] (" << ptrs[i] << ") not in bounds of heap " << *this; in FreeList() 233 size_t size = rosalloc_->UsableSize(ptrs[i]); in FreeList() 234 memset(ptrs[i], 0xEF, size); in FreeList() 240 const size_t bytes_freed = rosalloc_->BulkFree(self, reinterpret_cast<void**>(ptrs), num_ptrs); in FreeList()
|
D | zygote_space.cc | 105 void ZygoteSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument 116 bitmap->Clear(ptrs[i]); in SweepCallback() 122 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 | valgrind_malloc_space-inl.h | 225 Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument 228 freed += Free(self, ptrs[i]); in FreeList() 229 ptrs[i] = nullptr; in FreeList()
|
D | malloc_space.h | 68 virtual size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) 199 static void SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg)
|
D | malloc_space.cc | 231 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()
|
D | large_object_space.cc | 215 size_t LargeObjectSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument 219 CHECK(Contains(ptrs[i])); in FreeList() 221 total += Free(self, ptrs[i]); in FreeList() 576 void LargeObjectSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* arg) { in SweepCallback() argument 586 bitmap->Clear(ptrs[i]); in SweepCallback() 590 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
|
D | valgrind_malloc_space.h | 50 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE
|
D | large_object_space.h | 63 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);
|
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 | 44 typedef void SweepCallback(size_t ptr_count, mirror::Object** ptrs, void* arg);
|
/art/runtime/gc/allocator/ |
D | rosalloc.h | 576 size_t BulkFree(Thread* self, void** ptrs, size_t num_ptrs)
|
D | rosalloc.cc | 1155 size_t RosAlloc::BulkFree(Thread* self, void** ptrs, size_t num_ptrs) { in BulkFree() argument 1160 freed_bytes += FreeInternal(self, ptrs[i]); in BulkFree() 1175 void* ptr = ptrs[i]; in BulkFree()
|