Lines Matching refs:main_space_
161 main_space_(nullptr), in Heap()
463 CHECK(main_space_ != nullptr); in Heap()
464 AddSpace(main_space_); in Heap()
466 non_moving_space_ = main_space_; in Heap()
544 if (collector::SemiSpace::kUseRememberedSet && non_moving_space_ != main_space_) { in Heap()
698 if (collector::SemiSpace::kUseRememberedSet && main_space_ != nullptr) { in CreateMainMallocSpace()
699 RemoveRememberedSet(main_space_); in CreateMainMallocSpace()
702 main_space_ = CreateMallocSpaceFromMemMap(mem_map, initial_size, growth_limit, capacity, name, in CreateMainMallocSpace()
704 SetSpaceAsDefault(main_space_); in CreateMainMallocSpace()
705 VLOG(heap) << "Created main space " << main_space_; in CreateMainMallocSpace()
732 if (!IsMovingGc(collector_type_) && non_moving_space_ != main_space_) { in DisableMovingGc()
733 CHECK(main_space_ != nullptr); in DisableMovingGc()
741 main_space_->DisableMovingObjects(); in DisableMovingGc()
742 non_moving_space_ = main_space_; in DisableMovingGc()
1049 space::ContinuousSpace* space1 = main_space_ != nullptr ? main_space_ : non_moving_space_; in MarkAllocStackAsLive()
1346 space = main_space_; in ThrowOutOfMemoryError()
2019 return main_space_backup_.get() != nullptr && main_space_ != nullptr && in SupportHomogeneousSpaceCompactAndCollectorTransitions()
2040 !main_space_->CanMoveObjects()) { in PerformHomogeneousSpaceCompact()
2060 space::MallocSpace* from_space = main_space_; in PerformHomogeneousSpaceCompact()
2068 main_space_ = to_space; in PerformHomogeneousSpaceCompact()
2071 SetSpaceAsDefault(main_space_); // Set as default to reset the proper dlmalloc space. in PerformHomogeneousSpaceCompact()
2155 collector = Compact(bump_pointer_space_, main_space_, kGcCauseCollectorTransition); in TransitionCollector()
2157 mem_map.reset(main_space_->ReleaseMemMap()); in TransitionCollector()
2159 if (dlmalloc_space_ == main_space_) { in TransitionCollector()
2161 } else if (rosalloc_space_ == main_space_) { in TransitionCollector()
2166 RemoveSpace(main_space_); in TransitionCollector()
2167 RemoveRememberedSet(main_space_); in TransitionCollector()
2168 delete main_space_; // Delete the space since it has been removed. in TransitionCollector()
2169 main_space_ = nullptr; in TransitionCollector()
2193 AddSpace(main_space_); in TransitionCollector()
2194 collector = Compact(main_space_, bump_pointer_space_, kGcCauseCollectorTransition); in TransitionCollector()
2445 const bool same_space = non_moving_space_ == main_space_; in PreZygoteFork()
2464 CHECK(main_space_ != nullptr); in PreZygoteFork()
2465 CHECK_NE(main_space_, non_moving_space_) in PreZygoteFork()
2468 zygote_collector.SetFromSpace(main_space_); in PreZygoteFork()
2475 main_space_->GetMemMap()->Protect(PROT_READ | PROT_WRITE); in PreZygoteFork()
2476 madvise(main_space_->Begin(), main_space_->Capacity(), MADV_DONTNEED); in PreZygoteFork()
2477 MemMap* mem_map = main_space_->ReleaseMemMap(); in PreZygoteFork()
2478 RemoveSpace(main_space_); in PreZygoteFork()
2479 space::Space* old_main_space = main_space_; in PreZygoteFork()
2483 AddSpace(main_space_); in PreZygoteFork()
2525 main_space_ = non_moving_space_; in PreZygoteFork()
2526 SetSpaceAsDefault(main_space_); in PreZygoteFork()