/art/runtime/gc/space/ |
D | space_test.h | 32 namespace space { 41 void AddSpace(ContinuousSpace* space, bool revoke = true) { 46 heap->AddSpace(space); 47 heap->SetSpaceAsDefault(space); 63 mirror::Object* Alloc(space::MallocSpace* alloc_space, Thread* self, size_t bytes, in Alloc() 75 mirror::Object* AllocWithGrowth(space::MallocSpace* alloc_space, Thread* self, size_t bytes, in AllocWithGrowth() 119 void SizeFootPrintGrowthLimitAndTrimBody(MallocSpace* space, intptr_t object_size, 132 std::unique_ptr<Space> space(create_space("test", 16 * MB, 32 * MB, 32 * MB, nullptr)); in InitTestBody() 133 EXPECT_TRUE(space.get() != nullptr); in InitTestBody() 137 std::unique_ptr<Space> space(create_space("test", 16 * MB, 16 * MB, 16 * MB, nullptr)); in InitTestBody() [all …]
|
D | space.cc | 27 namespace space { namespace 36 std::ostream& operator<<(std::ostream& os, const Space& space) { in operator <<() argument 37 space.Dump(os); in operator <<() 136 AllocSpace::SweepCallbackContext::SweepCallbackContext(bool swap_bitmaps, space::Space* space) in SweepCallbackContext() argument 137 : swap_bitmaps(swap_bitmaps), space(space), self(Thread::Current()) { in SweepCallbackContext()
|
D | large_object_space_test.cc | 22 namespace space { namespace 39 los = space::LargeObjectMapSpace::Create("large object space"); in LargeObjectTest() 41 los = space::FreeListSpace::Create("large object space", nullptr, 128 * MB); in LargeObjectTest() 129 los = space::LargeObjectMapSpace::Create("large object space"); in RaceTest() 131 los = space::FreeListSpace::Create("large object space", nullptr, 128 * MB); in RaceTest()
|
D | dlmalloc_space.cc | 32 namespace space { namespace 102 DlMallocSpace* space = CreateFromMemMap(mem_map, name, starting_size, initial_size, in Create() local 107 << " ) " << *space; in Create() 109 return space; in Create() 223 for (space::ContinuousSpace* space : heap->GetContinuousSpaces()) { in art_heap_morecore() 224 if (space->IsDlMallocSpace()) { in art_heap_morecore() 225 DlMallocSpace* cur_dlmalloc_space = space->AsDlMallocSpace(); in art_heap_morecore()
|
D | image_space.cc | 39 namespace space { namespace 455 ImageSpace* space; in Create() local 543 space = ImageSpace::Init(image_filename->c_str(), image_location, in Create() 546 if (space != nullptr) { in Create() 547 return space; in Create() 602 space = ImageSpace::Init(cache_filename.c_str(), image_location, true, error_msg); in Create() 603 if (space == nullptr) { in Create() 607 return space; in Create() 688 std::unique_ptr<ImageSpace> space(new ImageSpace(image_filename, image_location, in Init() local 697 space->oat_file_.reset(space->OpenOatFile(image_filename, error_msg)); in Init() [all …]
|
/art/runtime/gc/collector/ |
D | immune_region.cc | 35 bool ImmuneRegion::AddContinuousSpace(space::ContinuousSpace* space) { in AddContinuousSpace() argument 37 if (space->GetLiveBitmap() != space->GetMarkBitmap()) { in AddContinuousSpace() 38 CHECK(space->IsContinuousMemMapAllocSpace()); in AddContinuousSpace() 39 space->AsContinuousMemMapAllocSpace()->BindLiveToMarkBitmap(); in AddContinuousSpace() 41 mirror::Object* space_begin = reinterpret_cast<mirror::Object*>(space->Begin()); in AddContinuousSpace() 42 mirror::Object* space_limit = reinterpret_cast<mirror::Object*>(space->Limit()); in AddContinuousSpace() 58 bool ImmuneRegion::ContainsSpace(const space::ContinuousSpace* space) const { in ContainsSpace() 60 begin_ <= reinterpret_cast<mirror::Object*>(space->Begin()) && in ContainsSpace() 61 end_ >= reinterpret_cast<mirror::Object*>(space->Limit()); in ContainsSpace() 64 DCHECK(space->GetType() != space::kSpaceTypeBumpPointerSpace); in ContainsSpace()
|
D | garbage_collector.cc | 109 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in SwapBitmaps() local 111 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyAlwaysCollect || in SwapBitmaps() 113 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect)) { in SwapBitmaps() 114 accounting::ContinuousSpaceBitmap* live_bitmap = space->GetLiveBitmap(); in SwapBitmaps() 115 accounting::ContinuousSpaceBitmap* mark_bitmap = space->GetMarkBitmap(); in SwapBitmaps() 119 CHECK(space->IsContinuousMemMapAllocSpace()); in SwapBitmaps() 120 space->AsContinuousMemMapAllocSpace()->SwapBitmaps(); in SwapBitmaps() 125 space::LargeObjectSpace* space = disc_space->AsLargeObjectSpace(); in SwapBitmaps() local 126 accounting::LargeObjectBitmap* live_set = space->GetLiveBitmap(); in SwapBitmaps() 127 accounting::LargeObjectBitmap* mark_set = space->GetMarkBitmap(); in SwapBitmaps() [all …]
|
D | partial_mark_sweep.cc | 39 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps() local 40 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect) { in BindBitmaps() 41 CHECK(space->IsZygoteSpace()); in BindBitmaps() 42 CHECK(immune_region_.AddContinuousSpace(space)) << "Failed to add space " << *space; in BindBitmaps()
|
D | sticky_mark_sweep.cc | 40 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps() local 41 if (space->IsContinuousMemMapAllocSpace() && in BindBitmaps() 42 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyAlwaysCollect) { in BindBitmaps() 43 DCHECK(space->IsContinuousMemMapAllocSpace()); in BindBitmaps() 44 space->AsContinuousMemMapAllocSpace()->BindLiveToMarkBitmap(); in BindBitmaps()
|
D | semi_space.cc | 65 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps() local 66 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyNeverCollect || in BindBitmaps() 67 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect) { in BindBitmaps() 68 CHECK(immune_region_.AddContinuousSpace(space)) << "Failed to add space " << *space; in BindBitmaps() 69 } else if (space->GetLiveBitmap() != nullptr) { in BindBitmaps() 70 if (space == to_space_ || collect_from_space_only_) { in BindBitmaps() 74 CHECK(space == GetHeap()->GetPrimaryFreeListSpace() || in BindBitmaps() 75 space == GetHeap()->GetNonMovingSpace()); in BindBitmaps() 77 CHECK(space->IsContinuousMemMapAllocSpace()); in BindBitmaps() 78 space->AsContinuousMemMapAllocSpace()->BindLiveToMarkBitmap(); in BindBitmaps() [all …]
|
D | mark_compact.cc | 62 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps() local 63 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyNeverCollect || in BindBitmaps() 64 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect) { in BindBitmaps() 65 CHECK(immune_region_.AddContinuousSpace(space)) << "Failed to add space " << *space; in BindBitmaps() 91 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); in ForwardObject() 111 DCHECK_ALIGNED(obj, space::BumpPointerSpace::kAlignment); in operator ()() 236 for (auto& space : heap_->GetContinuousSpaces()) { in UpdateAndMarkModUnion() local 238 if (immune_region_.ContainsSpace(space)) { in UpdateAndMarkModUnion() 239 accounting::ModUnionTable* table = heap_->FindModUnionTableFromSpace(space); in UpdateAndMarkModUnion() 243 space->IsZygoteSpace() ? "UpdateAndMarkZygoteModUnionTable" : in UpdateAndMarkModUnion() [all …]
|
D | mark_sweep.cc | 87 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in BindBitmaps() local 88 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyNeverCollect) { in BindBitmaps() 89 CHECK(immune_region_.AddContinuousSpace(space)) << "Failed to add space " << *space; in BindBitmaps() 264 for (const auto& space : heap_->GetContinuousSpaces()) { in UpdateAndMarkModUnion() local 265 if (immune_region_.ContainsSpace(space)) { in UpdateAndMarkModUnion() 266 const char* name = space->IsZygoteSpace() ? "UpdateAndMarkZygoteModUnionTable" : in UpdateAndMarkModUnion() 269 accounting::ModUnionTable* mod_union_table = heap_->FindModUnionTableFromSpace(space); in UpdateAndMarkModUnion() 304 for (const auto& space : GetHeap()->GetContinuousSpaces()) { in FindDefaultSpaceBitmap() local 305 accounting::ContinuousSpaceBitmap* bitmap = space->GetMarkBitmap(); in FindDefaultSpaceBitmap() 308 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyAlwaysCollect) { in FindDefaultSpaceBitmap() [all …]
|
D | immune_region.h | 28 namespace space { 43 bool AddContinuousSpace(space::ContinuousSpace* space) 45 bool ContainsSpace(const space::ContinuousSpace* space) const;
|
D | semi_space.h | 51 namespace space { 84 void SetToSpace(space::ContinuousMemMapAllocSpace* to_space); 87 void SetFromSpace(space::ContinuousMemMapAllocSpace* from_space); 184 virtual bool ShouldSweepSpace(space::ContinuousSpace* space) const; 215 space::ContinuousMemMapAllocSpace* to_space_; 218 space::ContinuousMemMapAllocSpace* from_space_; 251 space::ContinuousMemMapAllocSpace* promo_dest_space_; 254 space::ContinuousMemMapAllocSpace* fallback_space_;
|
D | mark_compact.h | 52 namespace space { 82 void SetSpace(space::BumpPointerSpace* space); 162 bool ShouldSweepSpace(space::ContinuousSpace* space) const; 221 space::BumpPointerSpace* space_;
|
/art/runtime/gc/accounting/ |
D | mod_union_table.h | 38 namespace space { 56 explicit ModUnionTable(const std::string& name, Heap* heap, space::ContinuousSpace* space) in ModUnionTable() argument 59 space_(space) { in ModUnionTable() 81 space::ContinuousSpace* GetSpace() { in GetSpace() 94 space::ContinuousSpace* const space_; 101 space::ContinuousSpace* space) in ModUnionTableReferenceCache() argument 102 : ModUnionTable(name, heap, space) {} in ModUnionTableReferenceCache() 136 …explicit ModUnionTableCardCache(const std::string& name, Heap* heap, space::ContinuousSpace* space) in ModUnionTableCardCache() argument 137 : ModUnionTable(name, heap, space) {} in ModUnionTableCardCache()
|
D | remembered_set.h | 34 namespace space { 49 explicit RememberedSet(const std::string& name, Heap* heap, space::ContinuousSpace* space) in RememberedSet() argument 50 : name_(name), heap_(heap), space_(space) {} in RememberedSet() 58 space::ContinuousSpace* target_space, void* arg) 64 space::ContinuousSpace* GetSpace() { in GetSpace() 78 space::ContinuousSpace* const space_;
|
D | mod_union_table-inl.h | 32 space::ContinuousSpace* space) in ModUnionTableToZygoteAllocspace() argument 33 : ModUnionTableReferenceCache(name, heap, space) {} in ModUnionTableToZygoteAllocspace()
|
D | card_table.cc | 93 void CardTable::ClearSpaceCards(space::ContinuousSpace* space) { in ClearSpaceCards() argument 95 byte* card_start = CardFromAddr(space->Begin()); in ClearSpaceCards() 96 byte* card_end = CardFromAddr(space->End()); // Make sure to round up. in ClearSpaceCards()
|
D | remembered_set.cc | 66 space::ContinuousSpace* target_space, in RememberedSetReferenceVisitor() 94 space::ContinuousSpace* const target_space_; 103 space::ContinuousSpace* target_space, in RememberedSetObjectVisitor() 118 space::ContinuousSpace* const target_space_; 125 space::ContinuousSpace* target_space, void* arg) { in UpdateAndMarkReferences()
|
/art/runtime/gc/ |
D | heap.cc | 223 space::ImageSpace* image_space = space::ImageSpace::Create(image_file_name.c_str(), in Heap() 307 non_moving_space_ = space::DlMallocSpace::CreateFromMemMap( in Heap() 320 bump_pointer_space_ = space::BumpPointerSpace::CreateFromMemMap("Bump pointer space 1", in Heap() 324 temp_space_ = space::BumpPointerSpace::CreateFromMemMap("Bump pointer space 2", in Heap() 341 bump_pointer_space_ = space::BumpPointerSpace::Create("Bump pointer space 1", in Heap() 345 temp_space_ = space::BumpPointerSpace::Create("Bump pointer space 2", in Heap() 362 large_object_space_ = space::FreeListSpace::Create("large object space", nullptr, capacity_); in Heap() 364 large_object_space_ = space::LargeObjectMapSpace::Create("large object space"); in Heap() 467 space::MallocSpace* Heap::CreateMallocSpaceFromMemMap(MemMap* mem_map, size_t initial_size, in CreateMallocSpaceFromMemMap() 470 space::MallocSpace* malloc_space = nullptr; in CreateMallocSpaceFromMemMap() [all …]
|
D | heap.h | 79 namespace space { 306 void SetSpaceAsDefault(space::ContinuousSpace* continuous_space) 308 void AddSpace(space::Space* space) LOCKS_EXCLUDED(Locks::heap_bitmap_lock_); 309 void RemoveSpace(space::Space* space) LOCKS_EXCLUDED(Locks::heap_bitmap_lock_); 327 const std::vector<space::ContinuousSpace*>& GetContinuousSpaces() const { in GetContinuousSpaces() 331 const std::vector<space::DiscontinuousSpace*>& GetDiscontinuousSpaces() const { in GetDiscontinuousSpaces() 456 space::ContinuousSpace* FindContinuousSpaceFromObject(const mirror::Object*, bool fail_ok) const; 457 space::DiscontinuousSpace* FindDiscontinuousSpaceFromObject(const mirror::Object*, 459 space::Space* FindSpaceFromObject(const mirror::Object*, bool fail_ok) const; 516 space::ImageSpace* GetImageSpace() const; [all …]
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 283 for (gc::space::ContinuousSpace* space : heap->GetContinuousSpaces()) { in VMDebug_getHeapSpaceStats() 284 if (space->IsImageSpace()) { in VMDebug_getHeapSpaceStats() 286 } else if (space->IsZygoteSpace()) { in VMDebug_getHeapSpaceStats() 287 gc::space::ZygoteSpace* zygote_space = space->AsZygoteSpace(); in VMDebug_getHeapSpaceStats() 290 } else if (space->IsMallocSpace()) { in VMDebug_getHeapSpaceStats() 292 gc::space::MallocSpace* malloc_space = space->AsMallocSpace(); in VMDebug_getHeapSpaceStats() 295 } else if (space->IsBumpPointerSpace()) { in VMDebug_getHeapSpaceStats() 297 gc::space::BumpPointerSpace* bump_pointer_space = space->AsBumpPointerSpace(); in VMDebug_getHeapSpaceStats() 302 for (gc::space::DiscontinuousSpace* space : heap->GetDiscontinuousSpaces()) { in VMDebug_getHeapSpaceStats() 303 if (space->IsLargeObjectSpace()) { in VMDebug_getHeapSpaceStats() [all …]
|
/art/runtime/base/ |
D | stringprintf.cc | 25 char space[1024]; in StringAppendV() local 32 int result = vsnprintf(space, sizeof(space), format, backup_ap); in StringAppendV() 35 if (result < static_cast<int>(sizeof(space))) { in StringAppendV() 38 dst->append(space, result); in StringAppendV()
|
/art/compiler/ |
D | image_test.cc | 121 gc::space::ContinuousSpace* space = heap->GetNonMovingSpace(); in TEST_F() local 122 ASSERT_FALSE(space->IsImageSpace()); in TEST_F() 123 ASSERT_TRUE(space != NULL); in TEST_F() 124 ASSERT_TRUE(space->IsMallocSpace()); in TEST_F() 125 ASSERT_GE(sizeof(image_header) + space->Size(), static_cast<size_t>(file->GetLength())); in TEST_F() 169 gc::space::ImageSpace* image_space = heap->GetImageSpace(); in TEST_F()
|