/art/runtime/gc/space/ |
H A D | bump_pointer_space.h | 20 #include "space.h" 34 namespace space { namespace in namespace:art::gc 36 // A bump pointer space allocates by incrementing a pointer, it doesn't provide a free 46 // Create a bump pointer space with the requested sizes. The requested base address is not 48 // space to confirm the request was granted. 52 // Allocate num_bytes, returns null if the space is full. 63 // Return the storage space required by obj. 92 // The total amount of memory reserved for the space. 105 // Reset the space to empty. 165 // Object alignment within the space [all...] |
H A D | malloc_space.h | 20 #include "space.h" 32 namespace space { namespace in namespace:art::gc 45 // Allocate num_bytes allowing the underlying space to grow. 49 // Allocate num_bytes without allowing the underlying space to grow. 52 // Return the storage space required by obj. If usable_size isn't null then it is set to the 53 // amount of the storage space that may be used by obj. 80 // Returns the number of bytes that the space has currently obtained from the system. This is 81 // greater or equal to the amount of live data in the space. 103 // The total amount of memory reserved for the alloc space. 120 // Splits ourself into a zygote space an [all...] |
H A D | large_object_space_test.cc | 24 namespace space { namespace in namespace:art::gc 43 los = space::LargeObjectMapSpace::Create("large object space"); 45 los = space::FreeListSpace::Create("large object space", nullptr, capacity); 158 los = space::LargeObjectMapSpace::Create("large object space"); 160 los = space::FreeListSpace::Create("large object space", nullptr, 128 * MB); 164 ThreadPool thread_pool("Large object space tes [all...] |
H A D | memory_tool_malloc_space-inl.h | 28 namespace space { namespace in namespace:art::gc 261 } // namespace space
|
H A D | space.cc | 17 #include "space.h" 30 namespace space { namespace in namespace:art::gc 39 std::ostream& operator<<(std::ostream& os, const Space& space) { argument 40 space.Dump(os); 95 // If the bitmaps are bound then sweeping this space clearly won't do anything. 143 AllocSpace::SweepCallbackContext::SweepCallbackContext(bool swap_bitmaps_in, space::Space* space_in) 144 : swap_bitmaps(swap_bitmaps_in), space(space_in), self(Thread::Current()) { 147 } // 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 | zygote_space.cc | 29 namespace space { namespace in namespace:art::gc 108 DCHECK(context->space->IsZygoteSpace()); 109 ZygoteSpace* zygote_space = context->space->AsZygoteSpace(); 128 } // namespace space
|
H A D | bump_pointer_space.cc | 25 namespace space { namespace in namespace:art::gc 35 LOG(ERROR) << "Failed to allocate pages for alloc space (" << name << ") of size " 72 // Reset the end of the space back to the beginning, we move the end forward as we allocate 230 } // namespace space
|
H A D | large_object_space.h | 24 #include "space.h" 31 namespace space { namespace in namespace:art::gc 82 // Current address at which the space begins, which may vary as the space is filled. 86 // Current address at which the space ends, which may vary as the space is filled. 90 // Current size of space 104 // Called when we create the zygote space, mark all existing large objects as zygote large 116 // Approximate number of bytes which have been allocated into the space. 131 // A discontinuous large object space implemente [all...] |
H A D | malloc_space.cc | 26 #include "gc/space/space-inl.h" 27 #include "gc/space/zygote_space.h" 37 namespace space { namespace in namespace:art::gc 48 recent_free_pos_(0), lock_("allocation space lock", kAllocSpaceLock), 80 LOG(ERROR) << "Failed to create alloc space (" << name << ") where the initial size (" 86 LOG(ERROR) << "Failed to create alloc space (" << name << ") where the growth limit capacity (" 100 LOG(ERROR) << "Failed to allocate pages for alloc space (" << name << ") of size " 142 // Should never be asked to increase the allocation beyond the capacity of the space. Enforced 168 // alloc space s 238 space::MallocSpace* space = context->space->AsMallocSpace(); local [all...] |
H A D | region_space-inl.h | 25 namespace space { namespace in namespace:art::gc 150 LOG(FATAL) << "Unexpected space type : " << kRegionType; 185 LOG(FATAL) << "Unexpected space type : " << kRegionType; 204 // from-space. 338 // If we aren't at the end of the space, check that the next region is not a large tail. 380 } // namespace space
|
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, 130 void SizeFootPrintGrowthLimitAndTrimBody(MallocSpace* space, intptr_t object_size, 141 void SpaceTest<Super>::SizeFootPrintGrowthLimitAndTrimBody(MallocSpace* space, argument 151 // The space' [all...] |
/art/runtime/ |
H A D | intern_table.h | 34 namespace space { namespace in namespace:art::gc 36 } // namespace space 125 void AddImagesStringsToTable(const std::vector<gc::space::ImageSpace*>& image_spaces)
|
H A D | oat_file_assistant.h | 36 namespace space { namespace in namespace:art::gc 38 } // namespace space 243 // Open and returns an image space associated with the oat file. 244 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
|
/art/runtime/gc/accounting/ |
H A D | card_table.h | 35 namespace space { namespace in namespace:art::gc 37 } // namespace space
|
H A D | mod_union_table.h | 40 namespace space { namespace in namespace:art::gc 42 } // namespace space 59 explicit ModUnionTable(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument 62 space_(space) {} 66 // Process cards for a memory range of a space. This doesn't immediately update the mod-union 100 space::ContinuousSpace* GetSpace() { 115 space::ContinuousSpace* const space_; 118 // Reference caching implementation. Caches references pointing to alloc space(s) for each card. 122 space 121 ModUnionTableReferenceCache(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument [all...] |
H A D | read_barrier_table.h | 24 #include "gc/space/space.h" 48 void ClearForSpace(space::ContinuousSpace* space) { argument 49 uint8_t* entry_start = EntryFromAddr(space->Begin()); 50 uint8_t* entry_end = EntryFromAddr(space->Limit());
|
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 120 ModUnionTableRefCacheToSpace( const std::string& name, Heap* heap, space::ContinuousSpace* space, space::ContinuousSpace* target_space) argument 150 Create( TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space) argument 183 auto* space = heap->GetNonMovingSpace(); local [all...] |
H A D | mod_union_table.cc | 27 #include "gc/space/image_space.h" 28 #include "gc/space/space.h" 94 space::ContinuousSpace* from_space, 95 space::ContinuousSpace* immune_space, 135 space::ContinuousSpace* const from_space_; 136 space::ContinuousSpace* const immune_space_; 137 // Set if we have any references to another space. 143 // Immune space is any other space whic 429 space::ContinuousSpace* space = local 481 ModUnionTableCardCache(const std::string& name, Heap* heap, space::ContinuousSpace* space) argument 497 CardBitVisitor(MarkObjectVisitor* visitor, space::ContinuousSpace* space, space::ContinuousSpace* immune_space, ModUnionTable::CardBitmap* card_bitmap) argument [all...] |
/art/runtime/gc/collector/ |
H A D | semi_space.h | 50 namespace space { namespace in namespace:art::gc 53 } // namespace space 82 // Sets which space we will be copying objects to. 83 void SetToSpace(space::ContinuousMemMapAllocSpace* to_space); 85 // Set the space where we copy objects from. 86 void SetFromSpace(space::ContinuousMemMapAllocSpace* from_space); 183 // Returns true if we should sweep the space. 184 virtual bool ShouldSweepSpace(space::ContinuousSpace* space) const; 203 // Current space, w [all...] |
H A D | garbage_collector.cc | 33 #include "gc/space/large_object_space.h" 34 #include "gc/space/space-inl.h" 122 // Swap the live and mark bitmaps for each alloc space. This is needed since sweep re-swaps 126 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 128 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyAlwaysCollect || 130 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect)) { 131 accounting::ContinuousSpaceBitmap* live_bitmap = space 142 space::LargeObjectSpace* space = disc_space->AsLargeObjectSpace(); local [all...] |
H A D | concurrent_copying.h | 50 namespace space { namespace in namespace:art::gc 52 } // namespace space 58 // Enable the no-from-space-refs verification at the pause. 60 // Enable the from-space bytes/objects check. 96 void SetRegionSpace(space::RegionSpace* region_space) { 100 space::RegionSpace* RegionSpace() { 103 // Assert the to-space invariant for a heap reference `ref` held in `obj` at offset `offset`. 106 // Assert the to-space invariant for a GC root reference `ref`. 114 // Mark object `from_ref`, copying it to the to-space if needed. 281 space [all...] |
H A D | mark_compact.cc | 29 #include "gc/space/bump_pointer_space-inl.h" 30 #include "gc/space/large_object_space.h" 31 #include "gc/space/space-inl.h" 48 for (const auto& space : GetHeap()->GetContinuousSpaces()) { 49 if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyNeverCollect || 50 space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect) { 51 immune_spaces_.AddSpace(space); 617 SetSpace(space::BumpPointerSpace* space) argument [all...] |
/art/runtime/gc/ |
H A D | verification.cc | 67 space::Space* const space = heap_->FindSpaceFromAddress(addr); member in class:art::gc::space 68 if (space != nullptr) { 69 oss << " space=" << *space; local 119 bool Verification::IsAddressInHeapSpace(const void* addr, space::Space** out_space) const { 120 space::Space* const space = heap_->FindSpaceFromAddress(addr); member in class:art::gc::space 121 if (space != nullptr) { 123 *out_space = space; [all...] |
/art/dex2oat/linker/ |
H A D | image_test.h | 38 #include "gc/space/image_space.h" 236 gc::space::ImageSpace::GetMultiImageBootClassPath( 413 gc::space::ContinuousSpace* space = heap->GetNonMovingSpace(); local 414 ASSERT_FALSE(space->IsImageSpace()); 415 ASSERT_TRUE(space != nullptr); 416 ASSERT_TRUE(space->IsMallocSpace()); 468 gc::space::ImageSpace* image_space = heap->GetBootImageSpaces()[i];
|