Lines Matching refs:DlMallocSpace
48 // A specialization of DlMallocSpace that provides information to valgrind wrt allocations.
49 class ValgrindDlMallocSpace : public DlMallocSpace {
52 void* obj_with_rdz = DlMallocSpace::AllocWithGrowth(self, num_bytes + 2 * kValgrindRedZoneBytes,
66 void* obj_with_rdz = DlMallocSpace::Alloc(self, num_bytes + 2 * kValgrindRedZoneBytes,
80 size_t result = DlMallocSpace::AllocationSize(reinterpret_cast<const mirror::Object*>(
89 size_t allocation_size = DlMallocSpace::AllocationSize(
92 size_t freed = DlMallocSpace::Free(self, reinterpret_cast<mirror::Object*>(obj_with_rdz));
106 DlMallocSpace(name, mem_map, mspace, begin, end, growth_limit) {
117 size_t DlMallocSpace::bitmap_index_ = 0;
119 DlMallocSpace::DlMallocSpace(const std::string& name, MemMap* mem_map, void* mspace, byte* begin,
149 DlMallocSpace* DlMallocSpace::Create(const std::string& name, size_t initial_size, size_t
209 DlMallocSpace* space;
214 space = new DlMallocSpace(name, mem_map_ptr, mspace, mem_map_ptr->Begin(), end, growth_limit);
223 void* DlMallocSpace::CreateMallocSpace(void* begin, size_t morecore_start, size_t initial_size) {
239 void DlMallocSpace::SwapBitmaps() {
247 mirror::Object* DlMallocSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated) {
251 mirror::Object* DlMallocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated) {
273 void DlMallocSpace::SetGrowthLimit(size_t growth_limit) {
281 DlMallocSpace* DlMallocSpace::CreateZygoteSpace(const char* alloc_space_name) {
318 DlMallocSpace* alloc_space =
319 new DlMallocSpace(alloc_space_name, mem_map.release(), mspace, end_, end, growth_limit);
328 mirror::Class* DlMallocSpace::FindRecentFreedObject(const mirror::Object* obj) {
343 void DlMallocSpace::RegisterRecentFree(mirror::Object* ptr) {
349 size_t DlMallocSpace::Free(Thread* self, mirror::Object* ptr) {
365 size_t DlMallocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) {
417 void* DlMallocSpace::MoreCore(intptr_t increment) {
421 VLOG(heap) << "DlMallocSpace::MoreCore " << PrettySize(increment);
448 inline size_t DlMallocSpace::InternalAllocationSize(const mirror::Object* obj) {
452 size_t DlMallocSpace::AllocationSize(const mirror::Object* obj) {
456 size_t DlMallocSpace::Trim() {
466 void DlMallocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_arg),
473 size_t DlMallocSpace::GetFootprint() {
478 size_t DlMallocSpace::GetFootprintLimit() {
483 void DlMallocSpace::SetFootprintLimit(size_t new_size) {
485 VLOG(heap) << "DLMallocSpace::SetFootprintLimit " << PrettySize(new_size);
496 void DlMallocSpace::Dump(std::ostream& os) const {