/art/runtime/gc/space/ |
D | zygote_space.cc | 42 ZygoteSpace* ZygoteSpace::Create(const std::string& name, MemMap* mem_map, in Create() argument 50 live_bitmap->VisitMarkedRange(reinterpret_cast<uintptr_t>(mem_map->Begin()), in Create() 51 reinterpret_cast<uintptr_t>(mem_map->End()), visitor); in Create() 52 ZygoteSpace* zygote_space = new ZygoteSpace(name, mem_map, objects_allocated); in Create() 64 ZygoteSpace::ZygoteSpace(const std::string& name, MemMap* mem_map, size_t objects_allocated) in ZygoteSpace() argument 65 : ContinuousMemMapAllocSpace(name, mem_map, mem_map->Begin(), mem_map->End(), mem_map->End(), in ZygoteSpace()
|
D | dlmalloc_space.cc | 38 DlMallocSpace::DlMallocSpace(const std::string& name, MemMap* mem_map, void* mspace, byte* begin, in DlMallocSpace() argument 42 : MallocSpace(name, mem_map, begin, end, limit, growth_limit, true, can_move_objects, in DlMallocSpace() 48 DlMallocSpace* DlMallocSpace::CreateFromMemMap(MemMap* mem_map, const std::string& name, in CreateFromMemMap() argument 52 DCHECK(mem_map != nullptr); in CreateFromMemMap() 53 void* mspace = CreateMspace(mem_map->Begin(), starting_size, initial_size); in CreateFromMemMap() 60 byte* end = mem_map->Begin() + starting_size; in CreateFromMemMap() 66 byte* begin = mem_map->Begin(); in CreateFromMemMap() 69 name, mem_map, mspace, begin, end, begin + capacity, growth_limit, initial_size, in CreateFromMemMap() 72 return new DlMallocSpace(name, mem_map, mspace, begin, end, begin + capacity, growth_limit, in CreateFromMemMap() 95 MemMap* mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity, in Create() local [all …]
|
D | bump_pointer_space.cc | 31 std::unique_ptr<MemMap> mem_map(MemMap::MapAnonymous(name.c_str(), requested_begin, capacity, in Create() local 33 if (mem_map.get() == nullptr) { in Create() 38 return new BumpPointerSpace(name, mem_map.release()); in Create() 41 BumpPointerSpace* BumpPointerSpace::CreateFromMemMap(const std::string& name, MemMap* mem_map) { in CreateFromMemMap() argument 42 return new BumpPointerSpace(name, mem_map); in CreateFromMemMap() 55 BumpPointerSpace::BumpPointerSpace(const std::string& name, MemMap* mem_map) in BumpPointerSpace() argument 56 : ContinuousMemMapAllocSpace(name, mem_map, mem_map->Begin(), mem_map->Begin(), mem_map->End(), in BumpPointerSpace() 58 growth_end_(mem_map->End()), in BumpPointerSpace()
|
D | malloc_space.cc | 38 MallocSpace::MallocSpace(const std::string& name, MemMap* mem_map, in MallocSpace() argument 42 : ContinuousMemMapAllocSpace(name, mem_map, begin, end, limit, kGcRetentionPolicyAlwaysCollect), in MallocSpace() 49 CHECK(IsAligned<kGcCardSize>(reinterpret_cast<uintptr_t>(mem_map->Begin()))); in MallocSpace() 50 CHECK(IsAligned<kGcCardSize>(reinterpret_cast<uintptr_t>(mem_map->End()))); in MallocSpace() 92 MemMap* mem_map = MemMap::MapAnonymous(name.c_str(), requested_begin, *capacity, in CreateMemMap() local 94 if (mem_map == nullptr) { in CreateMemMap() 98 return mem_map; in CreateMemMap() 191 std::unique_ptr<MemMap> mem_map(GetMemMap()->RemapAtEnd(End(), alloc_space_name, in CreateZygoteSpace() local 193 CHECK(mem_map.get() != nullptr) << error_msg; in CreateZygoteSpace() 197 byte* end = mem_map->Begin() + starting_size_; in CreateZygoteSpace() [all …]
|
D | rosalloc_space.cc | 44 RosAllocSpace::RosAllocSpace(const std::string& name, MemMap* mem_map, in RosAllocSpace() argument 48 : MallocSpace(name, mem_map, begin, end, limit, growth_limit, true, can_move_objects, in RosAllocSpace() 54 RosAllocSpace* RosAllocSpace::CreateFromMemMap(MemMap* mem_map, const std::string& name, in CreateFromMemMap() argument 58 DCHECK(mem_map != nullptr); in CreateFromMemMap() 59 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map->Begin(), starting_size, initial_size, in CreateFromMemMap() 67 byte* end = mem_map->Begin() + starting_size; in CreateFromMemMap() 73 byte* begin = mem_map->Begin(); in CreateFromMemMap() 79 return new RosAllocSpace(name, mem_map, rosalloc, begin, end, begin + capacity, growth_limit, in CreateFromMemMap() 106 MemMap* mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity, in Create() local 108 if (mem_map == NULL) { in Create() [all …]
|
D | large_object_space.cc | 113 MemMap* mem_map = MemMap::MapAnonymous("large object space allocation", NULL, num_bytes, in Alloc() local 115 if (UNLIKELY(mem_map == NULL)) { in Alloc() 120 mirror::Object* obj = reinterpret_cast<mirror::Object*>(mem_map->Begin()); in Alloc() 122 mem_maps_.Put(obj, mem_map); in Alloc() 123 size_t allocation_size = mem_map->Size(); in Alloc() 178 MemMap* mem_map = it->second; in Walk() local 179 callback(mem_map->Begin(), mem_map->End(), mem_map->Size(), arg); in Walk() 288 MemMap* mem_map = MemMap::MapAnonymous(name.c_str(), requested_begin, size, in Create() local 290 CHECK(mem_map != NULL) << "Failed to allocate large object space mem map: " << error_msg; in Create() 291 return new FreeListSpace(name, mem_map, mem_map->Begin(), mem_map->End()); in Create() [all …]
|
D | valgrind_malloc_space-inl.h | 95 ValgrindMallocSpace<S, A>::ValgrindMallocSpace(const std::string& name, MemMap* mem_map, in ValgrindMallocSpace() argument 100 S(name, mem_map, allocator, begin, end, limit, growth_limit, can_move_objects, starting_size, in ValgrindMallocSpace() 102 VALGRIND_MAKE_MEM_UNDEFINED(mem_map->Begin() + initial_size, mem_map->Size() - initial_size); in ValgrindMallocSpace()
|
D | dlmalloc_space.h | 37 static DlMallocSpace* CreateFromMemMap(MemMap* mem_map, const std::string& name, 110 MallocSpace* CreateInstance(const std::string& name, MemMap* mem_map, void* allocator, 131 DlMallocSpace(const std::string& name, MemMap* mem_map, void* mspace, byte* begin, byte* end,
|
D | zygote_space.h | 33 static ZygoteSpace* Create(const std::string& name, MemMap* mem_map, 86 ZygoteSpace(const std::string& name, MemMap* mem_map, size_t objects_allocated);
|
D | rosalloc_space.h | 44 static RosAllocSpace* CreateFromMemMap(MemMap* mem_map, const std::string& name, 95 MallocSpace* CreateInstance(const std::string& name, MemMap* mem_map, void* allocator, 128 RosAllocSpace(const std::string& name, MemMap* mem_map, allocator::RosAlloc* rosalloc,
|
D | space.h | 372 MemMapSpace(const std::string& name, MemMap* mem_map, byte* begin, byte* end, byte* limit, in MemMapSpace() argument 375 mem_map_(mem_map) { in MemMapSpace() 428 ContinuousMemMapAllocSpace(const std::string& name, MemMap* mem_map, byte* begin, in ContinuousMemMapAllocSpace() argument 430 : MemMapSpace(name, mem_map, begin, end, limit, gc_retention_policy) { in ContinuousMemMapAllocSpace()
|
D | malloc_space.h | 117 virtual MallocSpace* CreateInstance(const std::string& name, MemMap* mem_map, void* allocator, 141 MallocSpace(const std::string& name, MemMap* mem_map, byte* begin, byte* end,
|
D | bump_pointer_space.h | 46 static BumpPointerSpace* CreateFromMemMap(const std::string& name, MemMap* mem_map); 161 BumpPointerSpace(const std::string& name, MemMap* mem_map);
|
D | valgrind_malloc_space.h | 49 ValgrindMallocSpace(const std::string& name, MemMap* mem_map, AllocatorType allocator,
|
D | image_space.h | 148 MemMap* mem_map, accounting::ContinuousSpaceBitmap* live_bitmap);
|
D | image_space.cc | 44 MemMap* mem_map, accounting::ContinuousSpaceBitmap* live_bitmap) in ImageSpace() argument 45 : MemMapSpace(image_filename, mem_map, mem_map->Begin(), mem_map->End(), mem_map->End(), in ImageSpace()
|
D | large_object_space.h | 156 FreeListSpace(const std::string& name, MemMap* mem_map, byte* begin, byte* end);
|
/art/runtime/gc/accounting/ |
D | card_table.cc | 63 std::unique_ptr<MemMap> mem_map( in Create() local 66 CHECK(mem_map.get() != NULL) << "couldn't allocate card table: " << error_msg; in Create() 71 byte* cardtable_begin = mem_map->Begin(); in Create() 86 return new CardTable(mem_map.release(), biased_begin, offset); in Create() 89 CardTable::CardTable(MemMap* mem_map, byte* biased_begin, size_t offset) in CardTable() argument 90 : mem_map_(mem_map), biased_begin_(biased_begin), offset_(offset) { in CardTable()
|
D | space_bitmap.cc | 38 const std::string& name, MemMap* mem_map, byte* heap_begin, size_t heap_capacity) { in CreateFromMemMap() argument 39 CHECK(mem_map != nullptr); in CreateFromMemMap() 40 uword* bitmap_begin = reinterpret_cast<uword*>(mem_map->Begin()); in CreateFromMemMap() 42 return new SpaceBitmap(name, mem_map, bitmap_begin, bitmap_size, heap_begin); in CreateFromMemMap() 46 SpaceBitmap<kAlignment>::SpaceBitmap(const std::string& name, MemMap* mem_map, uword* bitmap_begin, in SpaceBitmap() argument 48 : mem_map_(mem_map), bitmap_begin_(bitmap_begin), bitmap_size_(bitmap_size), in SpaceBitmap() 64 std::unique_ptr<MemMap> mem_map(MemMap::MapAnonymous(name.c_str(), nullptr, bitmap_size, in Create() local 66 if (UNLIKELY(mem_map.get() == nullptr)) { in Create() 70 return CreateFromMemMap(name, mem_map.release(), heap_begin, heap_capacity); in Create()
|
D | space_bitmap.h | 53 static SpaceBitmap* CreateFromMemMap(const std::string& name, MemMap* mem_map, 195 SpaceBitmap(const std::string& name, MemMap* mem_map, uword* bitmap_begin, size_t bitmap_size,
|
/art/runtime/ |
D | mem_map_test.cc | 27 static byte* BaseBegin(MemMap* mem_map) { in BaseBegin() argument 28 return reinterpret_cast<byte*>(mem_map->base_begin_); in BaseBegin() 30 static size_t BaseSize(MemMap* mem_map) { in BaseSize() argument 31 return mem_map->base_size_; in BaseSize()
|
D | mem_map.cc | 662 std::ostream& operator<<(std::ostream& os, const MemMap& mem_map) { in operator <<() argument 664 mem_map.BaseBegin(), mem_map.BaseEnd(), mem_map.GetProtect(), in operator <<() 665 mem_map.GetName().c_str()); in operator <<()
|
D | dex_file.cc | 237 MemMap* mem_map, in OpenMemory() argument 239 return OpenMemory(mem_map->Begin(), in OpenMemory() 240 mem_map->Size(), in OpenMemory() 243 mem_map, in OpenMemory() 330 MemMap* mem_map, in OpenMemory() argument 335 new DexFile(base, size, location, location_checksum, mem_map, oat_file)); in OpenMemory() 346 MemMap* mem_map, in DexFile() argument 352 mem_map_(mem_map), in DexFile()
|
D | mem_map.h | 177 std::ostream& operator<<(std::ostream& os, const MemMap& mem_map);
|
/art/runtime/gc/ |
D | heap.cc | 467 space::MallocSpace* Heap::CreateMallocSpaceFromMemMap(MemMap* mem_map, size_t initial_size, in CreateMallocSpaceFromMemMap() argument 473 malloc_space = space::RosAllocSpace::CreateFromMemMap(mem_map, name, kDefaultStartingSize, in CreateMallocSpaceFromMemMap() 477 malloc_space = space::DlMallocSpace::CreateFromMemMap(mem_map, name, kDefaultStartingSize, in CreateMallocSpaceFromMemMap() 492 void Heap::CreateMainMallocSpace(MemMap* mem_map, size_t initial_size, size_t growth_limit, in CreateMainMallocSpace() argument 511 main_space_ = CreateMallocSpaceFromMemMap(mem_map, initial_size, growth_limit, capacity, name, in CreateMainMallocSpace() 1709 std::unique_ptr<MemMap> mem_map(main_space_backup_->ReleaseMemMap()); in TransitionCollector() local 1712 CHECK(mem_map != nullptr); in TransitionCollector() 1713 mem_map->Protect(PROT_READ | PROT_WRITE); in TransitionCollector() 1715 mem_map.release()); in TransitionCollector() 1719 mem_map.reset(main_space_->ReleaseMemMap()); in TransitionCollector() [all …]
|