Lines Matching refs:space

107       // Do not sweep code space concurrently.
154 ForAllSweepingSpaces([this, marking_state](AllocationSpace space) {
162 int space_index = GetSweepSpaceIndex(space);
182 Page* Sweeper::GetSweptPageSafe(PagedSpace* space) {
184 SweptList& list = swept_list_[GetSweepSpaceIndex(space->identity())];
200 ForAllSweepingSpaces([this](AllocationSpace space) {
201 ParallelSweepSpace(space, SweepingMode::kLazyOrConcurrent, 0);
206 ForAllSweepingSpaces([this](AllocationSpace space) {
207 CHECK(sweeping_list_[GetSweepSpaceIndex(space)].empty());
212 void Sweeper::DrainSweepingWorklistForSpace(AllocationSpace space) {
214 ParallelSweepSpace(space, SweepingMode::kLazyOrConcurrent, 0);
218 ForAllSweepingSpaces([this](AllocationSpace space) {
220 ParallelSweepSpace(space, SweepingMode::kLazyOrConcurrent, 0,
230 Address free_start, Address free_end, Page* page, Space* space,
247 reinterpret_cast<PagedSpace*>(space)->UnaccountedFree(free_start, size);
260 // New space and in consequence the old-to-new remembered set is always
324 // the space size is refined.
334 Space* space = p->owner();
335 DCHECK_NOT_NULL(space);
336 DCHECK(free_list_mode == IGNORE_FREE_LIST || space->identity() == OLD_SPACE ||
337 space->identity() == CODE_SPACE || space->identity() == MAP_SPACE);
400 FreeAndProcessFreedMemory(free_start, free_end, p, space,
429 FreeAndProcessFreedMemory(free_start, free_end, p, space,
545 AllocationSpace space = page->owner_identity();
547 if (IsValidSweepingSpace(space)) {
548 if (TryRemoveSweepingPageSafe(space, page)) {
550 ParallelSweepPage(page, space, SweepingMode::kLazyOrConcurrent);
567 bool Sweeper::TryRemoveSweepingPageSafe(AllocationSpace space, Page* page) {
569 DCHECK(IsValidSweepingSpace(space));
570 int space_index = GetSweepSpaceIndex(space);
590 void Sweeper::AddPage(AllocationSpace space, Page* page,
593 DCHECK(IsValidSweepingSpace(space));
596 PrepareToBeSweptPage(space, page);
604 sweeping_list_[GetSweepSpaceIndex(space)].push_back(page);
607 void Sweeper::PrepareToBeSweptPage(AllocationSpace space, Page* page) {
618 heap_->paged_space(space)->IncreaseAllocatedBytes(
622 Page* Sweeper::GetSweepingPageSafe(AllocationSpace space) {
624 DCHECK(IsValidSweepingSpace(space));
625 int space_index = GetSweepSpaceIndex(space);