Lines Matching refs:thread_count
859 size_t thread_count = GetThreadCount(paused); in ScanGrayObjects() local
861 if (kParallelCardScan && thread_count > 1) { in ScanGrayObjects()
872 const size_t mark_stack_tasks = GetHeap()->GetContinuousSpaces().size() * thread_count; in ScanGrayObjects()
890 const size_t card_delta = RoundUp(address_range / thread_count + 1, in ScanGrayObjects()
926 thread_pool->SetMaxActiveWorkers(thread_count - 1); in ScanGrayObjects()
1011 size_t thread_count = GetThreadCount(false); in RecursiveMark() local
1012 const bool parallel = kParallelRecursiveMark && thread_count > 1; in RecursiveMark()
1030 const size_t n = thread_count * 2; in RecursiveMark()
1044 thread_pool->SetMaxActiveWorkers(thread_count - 1); in RecursiveMark()
1369 void MarkSweep::ProcessMarkStackParallel(size_t thread_count) { in ProcessMarkStackParallel() argument
1372 const size_t chunk_size = std::min(mark_stack_->Size() / thread_count + 1, in ProcessMarkStackParallel()
1381 thread_pool->SetMaxActiveWorkers(thread_count - 1); in ProcessMarkStackParallel()
1394 size_t thread_count = GetThreadCount(paused); in ProcessMarkStack() local
1395 if (kParallelProcessMarkStack && thread_count > 1 && in ProcessMarkStack()
1397 ProcessMarkStackParallel(thread_count); in ProcessMarkStack()