/art/runtime/gc/collector/ |
H A D | immune_spaces.h | 22 #include "gc/space/space.h" 29 namespace space { namespace in namespace:art::gc 31 } // namespace space 40 bool operator()(space::ContinuousSpace* a, space::ContinuousSpace* b) const; 47 // Add a continuous space to the immune spaces set. 48 void AddSpace(space::ContinuousSpace* space) REQUIRES(Locks::heap_bitmap_lock_); 51 // true for the largest immune region. The object can still be inside of an immune space [all...] |
H A D | immune_spaces.cc | 22 #include "gc/space/space-inl.h" 44 for (space::ContinuousSpace* space : GetSpaces()) { 45 uintptr_t space_begin = reinterpret_cast<uintptr_t>(space->Begin()); 46 uintptr_t space_end = reinterpret_cast<uintptr_t>(space->Limit()); 47 if (space->IsImageSpace()) { 50 space::ImageSpace* image_space = space->AsImageSpace(); 106 void ImmuneSpaces::AddSpace(space argument [all...] |
H A D | partial_mark_sweep.cc | 20 #include "gc/space/space.h" 37 // For partial GCs we need to bind the bitmap of the zygote space so that all objects in the 38 // zygote space are viewed as marked. 39 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 40 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect) { 41 CHECK(space->IsZygoteSpace()); 42 immune_spaces_.AddSpace(space);
|
H A D | sticky_mark_sweep.cc | 18 #include "gc/space/large_object_space.h" 19 #include "gc/space/space-inl.h" 36 // know what was allocated since the last GC. A side-effect of binding the allocation space mark 38 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 39 if (space->IsContinuousMemMapAllocSpace() && 40 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyAlwaysCollect) { 41 DCHECK(space->IsContinuousMemMapAllocSpace()); 42 space [all...] |
H A D | concurrent_copying-inl.h | 24 #include "gc/space/region_space.h" 39 // invalid. This is usually OK as the from-space copy of objects 40 // aren't accessed by mutators due to the to-space 51 space::RegionSpace::RegionType rtype = region_space_->GetRegionType(from_ref); 53 case space::RegionSpace::RegionType::kRegionTypeToSpace: 56 case space::RegionSpace::RegionType::kRegionTypeFromSpace: { 63 // It isn't marked yet. Mark it by copying it to the to-space. 70 case space::RegionSpace::RegionType::kRegionTypeUnevacFromSpace: { 87 case space::RegionSpace::RegionType::kRegionTypeNone:
|
H A D | garbage_collector.cc | 28 #include "gc/space/large_object_space.h" 29 #include "gc/space/space-inl.h" 112 // Swap the live and mark bitmaps for each alloc space. This is needed since sweep re-swaps 116 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 118 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyAlwaysCollect || 120 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect)) { 121 accounting::ContinuousSpaceBitmap* live_bitmap = space 132 space::LargeObjectSpace* space = disc_space->AsLargeObjectSpace(); local [all...] |
H A D | mark_compact.cc | 27 #include "gc/space/bump_pointer_space-inl.h" 28 #include "gc/space/large_object_space.h" 29 #include "gc/space/space-inl.h" 45 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 46 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyNeverCollect || 47 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect) { 48 immune_spaces_.AddSpace(space); 599 SetSpace(space::BumpPointerSpace* space) argument [all...] |
H A D | semi_space.cc | 35 #include "gc/space/bump_pointer_space.h" 36 #include "gc/space/bump_pointer_space-inl.h" 37 #include "gc/space/image_space.h" 38 #include "gc/space/large_object_space.h" 39 #include "gc/space/space-inl.h" 66 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 67 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyNeverCollect || 68 space [all...] |
H A D | mark_sweep.cc | 38 #include "gc/space/large_object_space.h" 39 #include "gc/space/space-inl.h" 85 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 86 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyNeverCollect) { 87 immune_spaces_.AddSpace(space); 290 for (const auto& space : immune_spaces_.GetSpaces()) { 291 const char* name = space->IsZygoteSpace() 294 DCHECK(space [all...] |
/art/test/596-app-images/ |
H A D | app_images.cc | 24 #include "gc/space/image_space.h" 25 #include "gc/space/space-inl.h" 38 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { 39 if (space->IsImageSpace()) { 40 auto* image_space = space->AsImageSpace(); 53 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { 54 if (space->IsImageSpace()) { 55 auto* image_space = space->AsImageSpace();
|
/art/runtime/gc/accounting/ |
H A D | mod_union_table-inl.h | 22 #include "gc/space/space.h" 28 // A mod-union table to record image references to the Zygote and alloc space. 33 space::ContinuousSpace* space) 34 : ModUnionTableReferenceCache(name, heap, space) {} 31 ModUnionTableToZygoteAllocspace(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument
|
H A D | remembered_set.h | 35 namespace space { namespace in namespace:art::gc 37 } // namespace space 50 explicit RememberedSet(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument 51 : name_(name), heap_(heap), space_(space) {} 56 // Mark through all references to the target space. 57 void UpdateAndMarkReferences(space::ContinuousSpace* target_space, 64 space::ContinuousSpace* GetSpace() { 78 space::ContinuousSpace* const space_;
|
H A D | mod_union_table.h | 36 namespace space { namespace in namespace:art::gc 38 } // namespace space 51 explicit ModUnionTable(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument 54 space_(space) {} 58 // Clear cards which map to a memory range of a space. This doesn't immediately update the 83 space::ContinuousSpace* GetSpace() { 98 space::ContinuousSpace* const space_; 101 // Reference caching implementation. Caches references pointing to alloc space(s) for each card. 105 space 104 ModUnionTableReferenceCache(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument [all...] |
H A D | mod_union_table_test.cc | 21 #include "gc/space/space-inl.h" 39 // Target space is ignored for the card cache implementation. 41 TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space); 49 Thread* self, space::ContinuousMemMapAllocSpace* space, size_t component_count) 51 auto* klass = GetObjectArrayClass(self, space); 55 space 119 ModUnionTableRefCacheToSpace( const std::string& name, Heap* heap, space::ContinuousSpace* space, space::ContinuousSpace* target_space) argument 149 Create( TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space) argument 182 auto* space = heap->GetNonMovingSpace(); local [all...] |
H A D | mod_union_table.cc | 26 #include "gc/space/image_space.h" 27 #include "gc/space/space.h" 91 space::ContinuousSpace* from_space, 92 space::ContinuousSpace* immune_space, 132 space::ContinuousSpace* const from_space_; 133 space::ContinuousSpace* const immune_space_; 134 // Set if we have any references to another space. 140 // Immune space is any other space whic 383 space::ContinuousSpace* space = local 435 ModUnionTableCardCache(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument 451 CardBitVisitor(MarkObjectVisitor* visitor, space::ContinuousSpace* space, space::ContinuousSpace* immune_space, ModUnionTable::CardBitmap* card_bitmap) argument [all...] |
/art/runtime/gc/space/ |
H A D | memory_tool_settings.h | 22 namespace space { namespace in namespace:art::gc 28 } // namespace space
|
H A D | space_create_test.cc | 25 namespace space { namespace in namespace:art::gc 65 std::unique_ptr<Space> space(CreateSpace("test", 16 * MB, 32 * MB, 32 * MB, nullptr)); 66 EXPECT_TRUE(space != nullptr); 68 space.reset(CreateSpace("test", 16 * MB, 16 * MB, 16 * MB, nullptr)); 69 EXPECT_TRUE(space != nullptr); 71 space.reset(CreateSpace("test", 32 * MB, 16 * MB, 16 * MB, nullptr)); 72 EXPECT_TRUE(space == nullptr); 74 space.reset(CreateSpace("test", 16 * MB, 16 * MB, 32 * MB, nullptr)); 75 EXPECT_TRUE(space != nullptr); 77 space [all...] |
H A D | space_test.h | 35 namespace space { namespace in namespace:art::gc 42 void AddSpace(ContinuousSpace* space, bool revoke = true) { argument 49 ScopedSuspendAll ssa("Add image space"); 50 heap->AddSpace(space); 52 heap->SetSpaceAsDefault(space); 68 mirror::Object* Alloc(space::MallocSpace* alloc_space, 88 mirror::Object* AllocWithGrowth(space::MallocSpace* alloc_space, 133 void SizeFootPrintGrowthLimitAndTrimBody(MallocSpace* space, intptr_t object_size, 144 void SpaceTest<Super>::SizeFootPrintGrowthLimitAndTrimBody(MallocSpace* space, argument 154 // The space' [all...] |
H A D | dlmalloc_space_random_test.cc | 23 namespace space { namespace in namespace:art::gc 33 } // namespace space
|
H A D | dlmalloc_space_static_test.cc | 23 namespace space { namespace in namespace:art::gc 33 } // namespace space
|
H A D | rosalloc_space_random_test.cc | 21 namespace space { namespace in namespace:art::gc 32 } // namespace space
|
H A D | rosalloc_space_static_test.cc | 21 namespace space { namespace in namespace:art::gc 32 } // namespace space
|
/art/runtime/base/ |
H A D | stringprintf.cc | 25 char space[1024]; local 32 int result = vsnprintf(space, sizeof(space), format, backup_ap); 35 if (result < static_cast<int>(sizeof(space))) { 38 dst->append(space, result);
|
/art/runtime/gc/ |
H A D | heap.cc | 49 #include "gc/space/bump_pointer_space.h" 50 #include "gc/space/dlmalloc_space-inl.h" 51 #include "gc/space/image_space.h" 52 #include "gc/space/large_object_space.h" 53 #include "gc/space/region_space.h" 54 #include "gc/space/rosalloc_space-inl.h" 55 #include "gc/space/space-inl.h" 56 #include "gc/space/zygote_space.h" 97 // Define space nam 797 space::Space* space = nullptr; local 812 stream << " in space " << *space; local 1063 AddSpace(space::Space* space) argument 1104 RemoveSpace(space::Space* space) argument 1341 space::AllocSpace* space = nullptr; local 1590 stream << space << " " << *space << "\\n"; local 1599 stream << space << " " << *space << "\\n"; local 2315 BuildBins(space::ContinuousSpace* space) argument 2932 space::MallocSpace* space = ref_space->AsMallocSpace(); variable 3264 FindModUnionTableFromSpace(space::Space* space) argument 3272 FindRememberedSetFromSpace(space::Space* space) argument 3511 space::Space* space = FindContinuousSpaceFromObject(obj, true); local 3955 space::Space* space = remembered_set->GetSpace(); local 3962 RemoveRememberedSet(space::Space* space) argument [all...] |
H A D | heap.h | 35 #include "gc/space/large_object_space.h" 81 namespace space { namespace in namespace:art::gc 94 } // namespace space 134 // Primitive arrays larger than this size are put in the large object space. 139 // Whether or not we use the free list large object space. Only use it if USE_ART_LOW_4G_ALLOCATOR 141 static constexpr space::LargeObjectSpaceType kDefaultLargeObjectSpaceType = 143 space::LargeObjectSpaceType::kFreeList 144 : space::LargeObjectSpaceType::kMap; 169 space::LargeObjectSpaceType large_object_space_type, 252 // Transition the garbage collector during runtime, may copy objects from one space t [all...] |