Lines Matching refs:page_idx

956   size_t page_idx;  in InitNonMovingSpaceFirstObjects()  local
969 page_idx = DivideByPageSize(reinterpret_cast<uintptr_t>(obj) - begin); in InitNonMovingSpaceFirstObjects()
970 first_objs_non_moving_space_[page_idx++].Assign(obj); in InitNonMovingSpaceFirstObjects()
985 first_objs_non_moving_space_[page_idx].Assign(prev_obj); in InitNonMovingSpaceFirstObjects()
1010 first_objs_non_moving_space_[page_idx].Assign(prev_obj); in InitNonMovingSpaceFirstObjects()
1016 [this, page_idx] (mirror::Object* obj) { in InitNonMovingSpaceFirstObjects()
1017 first_objs_non_moving_space_[page_idx].Assign(obj); in InitNonMovingSpaceFirstObjects()
1024 page_idx++; in InitNonMovingSpaceFirstObjects()
1026 non_moving_first_objs_count_ = page_idx; in InitNonMovingSpaceFirstObjects()
2215 bool MarkCompact::DoPageCompactionWithStateChange(size_t page_idx, in DoPageCompactionWithStateChange() argument
2229 if (kMode == kFallbackMode || moving_pages_status_[page_idx].compare_exchange_strong( in DoPageCompactionWithStateChange()
2237 moving_pages_status_[page_idx].store(static_cast<uint8_t>(PageState::kProcessedAndMapped), in DoPageCompactionWithStateChange()
2248 moving_pages_status_[page_idx].store(store_val, std::memory_order_release); in DoPageCompactionWithStateChange()
2256 if (!moving_pages_status_[page_idx].compare_exchange_strong( in DoPageCompactionWithStateChange()
3614 size_t page_idx = DivideByPageSize(fault_page - bump_pointer_space_->Begin()); in ConcurrentlyProcessMovingPage() local
3615 DCHECK_LT(page_idx, moving_first_objs_count_ + black_page_count_); in ConcurrentlyProcessMovingPage()
3616 mirror::Object* first_obj = first_objs_moving_space_[page_idx].AsMirrorPtr(); in ConcurrentlyProcessMovingPage()
3623 size_t end_idx = page_idx + DivideByPageSize(end - fault_page); in ConcurrentlyProcessMovingPage()
3625 for (size_t idx = page_idx; idx < end_idx; idx++, length += gPageSize) { in ConcurrentlyProcessMovingPage()
3635 for (size_t len = 0, idx = page_idx; len < length; idx++, len += gPageSize) { in ConcurrentlyProcessMovingPage()
3643 uint32_t raw_state = moving_pages_status_[page_idx].load( in ConcurrentlyProcessMovingPage()
3658 raw_state = moving_pages_status_[page_idx].load(std::memory_order_acquire); in ConcurrentlyProcessMovingPage()
3673 moving_pages_status_[page_idx].compare_exchange_strong( in ConcurrentlyProcessMovingPage()
3679 buf = shadow_to_space_map_.Begin() + page_idx * gPageSize; in ConcurrentlyProcessMovingPage()
3693 first_obj, pre_compact_offset_moving_space_[page_idx], buf, kMode == kCopyMode); in ConcurrentlyProcessMovingPage()
3696 DCHECK_GT(pre_compact_offset_moving_space_[page_idx], 0u); in ConcurrentlyProcessMovingPage()
3698 uint32_t first_chunk_size = black_alloc_pages_first_chunk_size_[page_idx]; in ConcurrentlyProcessMovingPage()
3700 if (page_idx + 1 < moving_first_objs_count_ + black_page_count_) { in ConcurrentlyProcessMovingPage()
3701 next_page_first_obj = first_objs_moving_space_[page_idx + 1].AsMirrorPtr(); in ConcurrentlyProcessMovingPage()
3717 moving_pages_status_[page_idx].store(static_cast<uint8_t>(PageState::kProcessedAndMapping), in ConcurrentlyProcessMovingPage()
3722 moving_pages_status_[page_idx].store(static_cast<uint8_t>(PageState::kProcessedAndMapped), in ConcurrentlyProcessMovingPage()
3736 if (MapMovingSpacePages(page_idx, in ConcurrentlyProcessMovingPage()
3742 raw_state = moving_pages_status_[page_idx].load(std::memory_order_acquire); in ConcurrentlyProcessMovingPage()
3870 size_t page_idx = DivideByPageSize(fault_page - space_data->begin_); in ConcurrentlyProcessLinearAllocPage() local
3873 PageState state = state_arr[page_idx].load(use_uffd_sigbus_ ? std::memory_order_acquire : in ConcurrentlyProcessLinearAllocPage()
3881 if (state_arr[page_idx].compare_exchange_strong( in ConcurrentlyProcessLinearAllocPage()
3895 state_arr[page_idx].store(PageState::kProcessed, std::memory_order_release); in ConcurrentlyProcessLinearAllocPage()
3908 state_arr[page_idx].store(PageState::kProcessedAndMapped, in ConcurrentlyProcessLinearAllocPage()
3923 fault_page, state_arr, page_idx, space_data->page_status_map_.Size()); in ConcurrentlyProcessLinearAllocPage()
3933 state_arr + page_idx, in ConcurrentlyProcessLinearAllocPage()
3948 state = state_arr[page_idx].load(std::memory_order_acquire); in ConcurrentlyProcessLinearAllocPage()
3970 fault_page, state_arr, page_idx, space_data->page_status_map_.Size()); in ConcurrentlyProcessLinearAllocPage()
3997 size_t page_idx = DivideByPageSize(unmapped_range_start - space_data->begin_); in ProcessLinearAlloc() local
4000 state_arr + page_idx, in ProcessLinearAlloc()
4074 size_t page_idx = DivideByPageSize(page_begin - space_data->begin_); in ProcessLinearAlloc() local
4075 DCHECK_LT(page_idx, space_data->page_status_map_.Size()); in ProcessLinearAlloc()
4080 if (state_arr[page_idx].compare_exchange_strong( in ProcessLinearAlloc()
4096 state_arr[page_idx].store(PageState::kProcessed, std::memory_order_release); in ProcessLinearAlloc()
4102 state_arr[page_idx].store(PageState::kProcessedAndMapped, std::memory_order_release); in ProcessLinearAlloc()
4104 } else if (!state_arr[page_idx].compare_exchange_strong( in ProcessLinearAlloc()
4112 page_begin, state_arr, page_idx, space_data->page_status_map_.Size()); in ProcessLinearAlloc()