Lines Matching refs:space

21 #include "gc/space/space-inl.h"
38 // Target space is ignored for the card cache implementation.
40 TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space);
48 Thread* self, space::ContinuousMemMapAllocSpace* space, size_t component_count)
50 auto* klass = GetObjectArrayClass(self, space);
54 space->Alloc(self, size, &bytes_allocated, nullptr, &bytes_tl_bulk_allocated));
58 space->GetLiveBitmap()->Set(obj);
69 mirror::Class* GetObjectArrayClass(Thread* self, space::ContinuousMemMapAllocSpace* space)
78 // copy of the class in the same space that we are allocating in.
82 auto* klass = down_cast<mirror::Class*>(space->Alloc(self, class_size, &bytes_allocated,
103 // A mod union table that only holds references to a specified target space.
107 const std::string& name, Heap* heap, space::ContinuousSpace* space,
108 space::ContinuousSpace* target_space)
109 : ModUnionTableReferenceCache(name, heap, space), target_space_(target_space) {}
116 space::ContinuousSpace* const target_space_;
137 TableType type, space::ContinuousSpace* space, space::ContinuousSpace* target_space) {
142 return new ModUnionTableCardCache(name.str(), Runtime::Current()->GetHeap(), space);
145 return new ModUnionTableRefCacheToSpace(name.str(), Runtime::Current()->GetHeap(), space,
168 // Use non moving space since moving GC don't necessarily have a primary free list space.
169 auto* space = heap->GetNonMovingSpace();
171 // Create another space that we can put references in.
172 std::unique_ptr<space::DlMallocSpace> other_space(space::DlMallocSpace::Create(
173 "other space", 128 * KB, 4 * MB, 4 * MB, nullptr, false));
177 type, space, other_space.get()));
179 // Create some fake objects and put the main space and dirty cards in the non moving space.
180 auto* obj1 = AllocObjectArray(self, space, CardTable::kCardSize);
182 auto* obj2 = AllocObjectArray(self, space, CardTable::kCardSize);
184 auto* obj3 = AllocObjectArray(self, space, CardTable::kCardSize);
186 auto* obj4 = AllocObjectArray(self, space, CardTable::kCardSize);
193 // Dirty some more cards to objects in another space.
212 // obj3, obj4 don't have a reference to any object in the other space, their cards should have
227 for (auto* ptr = space->Begin(); ptr < AlignUp(space->End(), CardTable::kCardSize);
241 // Remove the space we added so it doesn't persist to the next test.