Lines Matching refs:self

148   Thread* self = Thread::Current();  in RunPhases()  local
150 Locks::mutator_lock_->AssertNotHeld(self); in RunPhases()
154 ReaderMutexLock mu(self, *Locks::mutator_lock_); in RunPhases()
171 ReaderMutexLock mu(self, *Locks::mutator_lock_); in RunPhases()
178 void MarkSweep::ProcessReferences(Thread* self) { in ProcessReferences() argument
179 WriterMutexLock mu(self, *Locks::heap_bitmap_lock_); in ProcessReferences()
189 Thread* self = Thread::Current(); in PausePhase() local
190 Locks::mutator_lock_->AssertExclusiveHeld(self); in PausePhase()
193 WriterMutexLock mu(self, *Locks::heap_bitmap_lock_); in PausePhase()
201 WriterMutexLock mu(self, *Locks::heap_bitmap_lock_); in PausePhase()
206 RevokeAllThreadLocalAllocationStacks(self); in PausePhase()
223 Thread* self = Thread::Current(); in PreCleanCards() local
224 CHECK(!Locks::mutator_lock_->IsExclusiveHeld(self)); in PreCleanCards()
239 MarkRootsCheckpoint(self, false); in PreCleanCards()
250 void MarkSweep::RevokeAllThreadLocalAllocationStacks(Thread* self) { in RevokeAllThreadLocalAllocationStacks() argument
253 Locks::mutator_lock_->AssertExclusiveHeld(self); in RevokeAllThreadLocalAllocationStacks()
254 heap_->RevokeAllThreadLocalAllocationStacks(self); in RevokeAllThreadLocalAllocationStacks()
260 Thread* self = Thread::Current(); in MarkingPhase() local
288 WriterMutexLock mu(self, *Locks::heap_bitmap_lock_); in MarkingPhase()
289 MarkRoots(self); in MarkingPhase()
342 Thread* const self = Thread::Current(); in ReclaimPhase() local
344 ProcessReferences(self); in ReclaimPhase()
345 SweepSystemWeaks(self); in ReclaimPhase()
352 WriterMutexLock mu(self, *Locks::heap_bitmap_lock_); in ReclaimPhase()
630 void MarkSweep::MarkRoots(Thread* self) { in MarkRoots() argument
632 if (Locks::mutator_lock_->IsExclusiveHeld(self)) { in MarkRoots()
635 RevokeAllThreadLocalAllocationStacks(self); in MarkRoots()
637 MarkRootsCheckpoint(self, kRevokeRosAllocThreadLocalBuffersAtCheckpoint); in MarkRoots()
796 void Run(Thread* self ATTRIBUTE_UNUSED) override in Run()
858 void Run(Thread* self) override NO_THREAD_SAFETY_ANALYSIS { in Run() argument
867 MarkStackTask::Run(self); in Run()
886 Thread* self = Thread::Current(); in ScanGrayObjects() local
942 thread_pool->AddTask(self, task); in ScanGrayObjects()
951 thread_pool->StartWorkers(self); in ScanGrayObjects()
952 thread_pool->Wait(self, true, true); in ScanGrayObjects()
953 thread_pool->StopWorkers(self); in ScanGrayObjects()
1016 void Run(Thread* self) override NO_THREAD_SAFETY_ANALYSIS { in Run() argument
1020 MarkStackTask::Run(self); in Run()
1033 auto* self = Thread::Current(); in RecursiveMark() local
1066 thread_pool->AddTask(self, task); in RecursiveMark()
1069 thread_pool->StartWorkers(self); in RecursiveMark()
1070 thread_pool->Wait(self, true, true); in RecursiveMark()
1071 thread_pool->StopWorkers(self); in RecursiveMark()
1101 void MarkSweep::SweepSystemWeaks(Thread* self) { in SweepSystemWeaks() argument
1103 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_); in SweepSystemWeaks()
1165 Thread* const self = Thread::Current(); in Run() local
1166 CHECK(thread == self || thread->IsSuspended() || thread->GetState() == kWaitingPerformingGc) in Run()
1167 << thread->GetState() << " thread " << thread << " self " << self; in Run()
1175 mark_sweep_->GetBarrier().Pass(self); in Run()
1183 void MarkSweep::MarkRootsCheckpoint(Thread* self, in MarkRootsCheckpoint() argument
1197 Locks::heap_bitmap_lock_->ExclusiveUnlock(self); in MarkRootsCheckpoint()
1198 Locks::mutator_lock_->SharedUnlock(self); in MarkRootsCheckpoint()
1200 ScopedThreadStateChange tsc(self, kWaitingForCheckPointsToRun); in MarkRootsCheckpoint()
1201 gc_barrier_->Increment(self, barrier_count); in MarkRootsCheckpoint()
1203 Locks::mutator_lock_->SharedLock(self); in MarkRootsCheckpoint()
1204 Locks::heap_bitmap_lock_->ExclusiveLock(self); in MarkRootsCheckpoint()
1209 Thread* self = Thread::Current(); in SweepArray() local
1258 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer); in SweepArray()
1270 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer); in SweepArray()
1293 freed_los.bytes += large_object_space->Free(self, obj); in SweepArray()
1393 Thread* self = Thread::Current(); in ProcessMarkStackParallel() local
1401 thread_pool->AddTask(self, new MarkStackTask<false>(thread_pool, this, delta, it)); in ProcessMarkStackParallel()
1405 thread_pool->StartWorkers(self); in ProcessMarkStackParallel()
1406 thread_pool->Wait(self, true, true); in ProcessMarkStackParallel()
1407 thread_pool->StopWorkers(self); in ProcessMarkStackParallel()
1495 Thread* const self = Thread::Current(); in FinishPhase() local
1496 ReaderMutexLock mu(self, *Locks::mutator_lock_); in FinishPhase()
1497 WriterMutexLock mu2(self, *Locks::heap_bitmap_lock_); in FinishPhase()