Lines Matching defs:thread
43 #include "thread-inl.h"
79 // If true, revoke the rosalloc thread-local buffers at the
85 WriterMutexLock mu(Thread::Current(), *Locks::heap_bitmap_lock_);
131 ReaderMutexLock mu(Thread::Current(), *Locks::heap_bitmap_lock_);
141 Thread* self = Thread::Current();
171 void MarkSweep::ProcessReferences(Thread* self) {
180 Thread* self = Thread::Current();
195 // Need to revoke all the thread local allocation stacks since we just swapped the allocation
214 Thread* self = Thread::Current();
241 void MarkSweep::RevokeAllThreadLocalAllocationStacks(Thread* self) {
251 Thread* self = Thread::Current();
284 Thread* self = Thread::Current();
325 // Rare case, no need to have Thread::Current be a parameter.
341 MutexLock mu(Thread::Current(), mark_stack_lock_);
423 MutexLock mu(Thread::Current(), mark_stack_lock_);
497 void MarkSweep::MarkRoots(Thread* self) {
531 Locks::mutator_lock_->AssertSharedHeld(Thread::Current());
532 Locks::heap_bitmap_lock_->AssertExclusiveHeld(Thread::Current());
609 // No thread safety analysis since multiple threads will use this visitor.
632 // Thread local mark stack for this task.
639 // Mark stack overflow, give 1/2 the stack to the thread pool as a new work task.
643 thread_pool_->AddTask(Thread::Current(), task);
655 virtual void Run(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_)
710 virtual void Run(Thread* self) NO_THREAD_SAFETY_ANALYSIS {
736 // The parallel version with only one thread is faster for card scanning, TODO: fix.
738 Thread* self = Thread::Current();
779 // Add the new task to the thread pool.
840 virtual void Run(Thread* self) NO_THREAD_SAFETY_ANALYSIS {
857 auto* self = Thread::Current();
919 Locks::mutator_lock_->AssertExclusiveHeld(Thread::Current());
930 void MarkSweep::SweepSystemWeaks(Thread* self) {
965 virtual void Run(Thread* thread) OVERRIDE NO_THREAD_SAFETY_ANALYSIS {
966 ATRACE_BEGIN("Marking thread roots");
967 // Note: self is not necessarily equal to thread since thread may be suspended.
968 Thread* self = Thread::Current();
969 CHECK(thread == self || thread->IsSuspended() || thread->GetState() == kWaitingPerformingGc)
970 << thread->GetState() << " thread " << thread << " self " << self;
971 thread->VisitRoots(MarkSweep::MarkRootParallelCallback, mark_sweep_);
975 mark_sweep_->GetHeap()->RevokeRosAllocThreadLocalBuffers(thread);
986 void MarkSweep::MarkRootsCheckpoint(Thread* self,
1008 Thread* self = Thread::Current();
1151 Locks::mutator_lock_->AssertSharedHeld(Thread::Current());
1152 Locks::heap_bitmap_lock_->AssertExclusiveHeld(Thread::Current());
1174 Thread* self = Thread::Current();
1269 WriterMutexLock mu(Thread::Current(), *Locks::heap_bitmap_lock_);
1275 // If concurrent, rosalloc thread-local buffers are revoked at the
1276 // thread checkpoint. Bump pointer space thread-local buffers must