/art/runtime/ |
D | scoped_thread_state_change-inl.h | 34 : self_(self), thread_state_(new_thread_state), expected_has_no_thread_(false) { in ScopedThreadStateChange() 35 if (UNLIKELY(self_ == nullptr)) { in ScopedThreadStateChange() 39 CHECK(runtime == nullptr || !runtime->IsStarted() || runtime->IsShuttingDown(self_)); in ScopedThreadStateChange() 47 self_->TransitionFromSuspendedToRunnable(); in ScopedThreadStateChange() 49 self_->TransitionFromRunnableToSuspended(new_thread_state); in ScopedThreadStateChange() 52 self_->SetState(new_thread_state); in ScopedThreadStateChange() 59 if (UNLIKELY(self_ == nullptr)) { in ~ScopedThreadStateChange() 64 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadStateChange() 66 self_->TransitionFromRunnableToSuspended(old_thread_state_); in ~ScopedThreadStateChange() 69 self_->SetState(old_thread_state_); in ~ScopedThreadStateChange() [all …]
|
D | object_lock.cc | 26 ObjectLock<T>::ObjectLock(Thread* self, Handle<T> object) : self_(self), obj_(object) { in ObjectLock() 28 obj_->MonitorEnter(self_); in ObjectLock() 33 obj_->MonitorExit(self_); in ~ObjectLock() 38 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting); in WaitIgnoringInterrupts() 43 obj_->Notify(self_); in Notify() 48 obj_->NotifyAll(self_); in NotifyAll() 52 ObjectTryLock<T>::ObjectTryLock(Thread* self, Handle<T> object) : self_(self), obj_(object) { in ObjectTryLock() 54 acquired_ = obj_->MonitorTryEnter(self_) != nullptr; in ObjectTryLock() 60 obj_->MonitorExit(self_); in ~ObjectTryLock()
|
D | reflective_handle_scope-inl.h | 58 self_ = self; in PushScope() 59 link_ = self_->GetTopReflectiveHandleScope(); in PushScope() 60 self_->PushReflectiveHandleScope(this); in PushScope() 64 auto* prev = self_->PopReflectiveHandleScope(); in PopScope()
|
D | scoped_thread_state_change.h | 50 return self_; in Self() 57 Thread* const self_ = nullptr; variable 74 return self_; in Self() 117 : self_(nullptr), env_(nullptr), vm_(reinterpret_cast<JavaVMExt*>(vm)) {} in ScopedObjectAccessAlreadyRunnable() 126 Thread* const self_; variable 205 Thread* const self_;
|
D | quick_exception_handler.cc | 47 : self_(self), in QuickExceptionHandler() 148 instrumentation::InstrumentationStackPopper popper(self_); in FindCatch() 152 StackHandleScope<1> hs(self_); in FindCatch() 162 self_->DumpStack(LOG_STREAM(INFO) << "Delivering exception: " << exception_ref->PrettyTypeOf() in FindCatch() 167 CatchBlockStackVisitor visitor(self_, context_, in FindCatch() 189 DCHECK(!self_->IsExceptionPending()); in FindCatch() 201 self_->SetException(exception_ref.Get()); in FindCatch() 243 self_->DumpStack(LOG_STREAM(INFO) << "Setting catch phis: "); in SetCatchEnvironmentForOptimizedHandler() 554 self_->SetException(Thread::GetDeoptimizationException()); in PrepareForLongJumpToInvokeStubOrInterpreterBridge() 560 reinterpret_cast<uint8_t*>(self_) + offset); in PrepareForLongJumpToInvokeStubOrInterpreterBridge() [all …]
|
D | object_lock.h | 42 Thread* const self_; 60 Thread* const self_;
|
D | handle_scope-inl.h | 50 self_(self) { in StackHandleScope() 52 self_->PushHandleScope(this); in StackHandleScope() 57 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~StackHandleScope() 60 Locks::mutator_lock_->AssertSharedHeld(self_); in ~StackHandleScope() 214 self_(self), in VariableSizedHandleScope() 217 self_->PushHandleScope(this); in VariableSizedHandleScope() 221 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~VariableSizedHandleScope()
|
D | hidden_api_test.cc | 45 self_ = Thread::Current(); in SetUp() 46 self_->TransitionFromSuspendedToRunnable(); in SetUp() 103 Thread* self_; member in art::HiddenApiTest 122 ScopedObjectAccess soa(self_); in TEST_F() 189 ScopedObjectAccess soa(self_); in TEST_F() 244 ScopedObjectAccess soa(self_); in TEST_F() 263 ScopedObjectAccess soa(self_); in TEST_F() 282 ScopedObjectAccess soa(self_); in TEST_F() 298 ScopedObjectAccess soa(self_); in TEST_F() 313 ScopedObjectAccess soa(self_); in TEST_F() [all …]
|
D | reflective_handle_scope.cc | 27 os << "[BaseReflectiveHandleScope self_=" << *self_ << ", link_=" << link_ << "]"; in Describe()
|
D | thread.h | 1911 self_ = Thread::Current(); in ACQUIRE() 1912 old_cause_ = self_->StartAssertNoThreadSuspension(cause); in ACQUIRE() 1922 self_->EndAssertNoThreadSuspension(old_cause_); in ~ScopedAssertNoThreadSuspension() 1929 Thread* self_; 1938 self_ = Thread::Current(); in ScopedAllowThreadSuspension() 1939 old_cause_ = self_->EndAssertNoThreadSuspension(); in ScopedAllowThreadSuspension() 1946 CHECK(self_->StartAssertNoThreadSuspension(old_cause_) == nullptr); in ~ScopedAllowThreadSuspension() 1953 Thread* self_; 1961 : self_(self), type_(type) { in ScopedStackedShadowFramePusher() 1962 self_->PushStackedShadowFrame(sf, type); in ScopedStackedShadowFramePusher() [all …]
|
D | reflective_handle_scope.h | 71 return self_; in GetThread() 77 ALWAYS_INLINE BaseReflectiveHandleScope() : self_(nullptr), link_(nullptr) {} in BaseReflectiveHandleScope() 83 Thread* self_; variable
|
D | handle_scope.h | 227 return self_; in Self() 233 Thread* const self_; 268 Thread* const self_; variable
|
D | quick_exception_handler.h | 139 Thread* const self_;
|
/art/runtime/gc/ |
D | scoped_gc_critical_section.cc | 28 Runtime::Current()->GetHeap()->StartGC(self_, cause, type); in Enter() 29 if (self_ != nullptr) { in Enter() 30 return self_->StartAssertNoThreadSuspension(section_name_); in Enter() 40 if (self_ != nullptr) { in Exit() 41 self_->EndAssertNoThreadSuspension(old_cause); in Exit() 47 Runtime::Current()->GetHeap()->FinishGC(self_, collector::kGcTypeNone); in Exit() 64 CollectorType type) : self_(self) { in ScopedInterruptibleGCCriticalSection() 66 Runtime::Current()->GetHeap()->StartGC(self_, cause, type); in ScopedInterruptibleGCCriticalSection() 70 Runtime::Current()->GetHeap()->FinishGC(self_, collector::kGcTypeNone); in ~ScopedInterruptibleGCCriticalSection()
|
D | scoped_gc_critical_section.h | 34 : self_(self), section_name_(name) {} in GCCriticalSection() 44 Thread* const self_; 71 Thread* const self_;
|
/art/runtime/entrypoints/quick/ |
D | callee_save_frame.h | 42 REQUIRES_SHARED(Locks::mutator_lock_) : self_(self), exit_check_(exit_check) { in REQUIRES_SHARED() 56 Locks::mutator_lock_->AssertSharedHeld(self_); in TestsOnEntry() 57 self_->VerifyStack(); in TestsOnEntry() 61 Locks::mutator_lock_->AssertSharedHeld(self_); in TestsOnExit() 62 self_->VerifyStack(); in TestsOnExit() 65 Thread* const self_; variable
|
/art/runtime/jni/ |
D | jni_env_ext.cc | 77 : self_(self_in), in JNIEnvExt() 191 locked_objects_.push_back(std::make_pair(GetJavaCallFrame(self_), obj)); in RecordMonitorEnter() 233 uintptr_t current_frame = GetJavaCallFrame(self_); in CheckMonitorRelease() 241 ObjPtr<mirror::Object> mirror_obj = self_->DecodeJObject(obj); in CheckMonitorRelease() 243 if (self_->DecodeJObject(pair.second) == mirror_obj) { in CheckMonitorRelease() 244 std::string monitor_descr = ComputeMonitorDescription(self_, pair.second); in CheckMonitorRelease() 258 RemoveMonitors(self_, current_frame, &monitors_, &locked_objects_); in CheckMonitorRelease() 268 uintptr_t current_frame = GetJavaCallFrame(self_); in CheckNoHeldMonitors() 271 std::string monitor_descr = ComputeMonitorDescription(self_, pair.second); in CheckNoHeldMonitors() 277 RemoveMonitors(self_, current_frame, &monitors_, &locked_objects_); in CheckNoHeldMonitors() [all …]
|
D | jni_env_ext.h | 101 Thread* GetSelf() const { return self_; } in GetSelf() 172 Thread* const self_; variable
|
/art/openjdkjvmti/ |
D | ti_redefine.cc | 541 GetMirrorClass()->MonitorEnter(driver_->self_); in ClassRedefinition() 546 GetMirrorClass()->MonitorExit(driver_->self_); in ~ClassRedefinition() 736 return driver_->self_->DecodeJObject(klass_)->AsClass(); in GetMirrorClass() 745 art::StackHandleScope<2> hs(driver_->self_); in CreateNewDexCache() 749 art::GetClassRoot<art::mirror::DexCache>(cl)->AllocObject(driver_->self_)))); in CreateNewDexCache() 751 driver_->self_->AssertPendingOOMException(); in CreateNewDexCache() 757 driver_->self_->AssertPendingOOMException(); in CreateNewDexCache() 760 art::WriterMutexLock mu(driver_->self_, *art::Locks::dex_lock_); in CreateNewDexCache() 761 art::mirror::DexCache::InitializeDexCache(driver_->self_, in CreateNewDexCache() 784 driver_->self_, in AllocateOrGetOriginalDexFile() [all …]
|
D | deopt_manager.cc | 335 : self_(self), in ScopedDeoptimizationContext() 337 critical_section_(self_, "JVMTI Deoptimizing methods"), in ScopedDeoptimizationContext() 339 deopt_->WaitForDeoptimizationToFinishLocked(self_); in ScopedDeoptimizationContext() 344 deopt_->deoptimization_status_lock_.Unlock(self_); in ScopedDeoptimizationContext() 359 art::MutexLock lk(self_, deopt_->deoptimization_status_lock_); in RELEASE() 361 deopt_->deoptimization_condition_.Broadcast(self_); in RELEASE() 365 art::Thread* self_; member in openjdkjvmti::ScopedDeoptimizationContext
|
D | ti_thread.cc | 69 ScopedNoUserCodeSuspension::ScopedNoUserCodeSuspension(art::Thread* self) : self_(self) { in ScopedNoUserCodeSuspension() 74 art::Locks::user_code_suspension_lock_->AssertNotHeld(self_); in ScopedNoUserCodeSuspension() 75 ThreadUtil::SuspendCheck(self_); in ScopedNoUserCodeSuspension() 77 art::Locks::user_code_suspension_lock_->ExclusiveLock(self_); in ScopedNoUserCodeSuspension() 78 if (ThreadUtil::WouldSuspendForUserCodeLocked(self_)) { in ScopedNoUserCodeSuspension() 79 art::Locks::user_code_suspension_lock_->ExclusiveUnlock(self_); in ScopedNoUserCodeSuspension() 83 art::Locks::user_code_suspension_lock_->AssertHeld(self_); in ScopedNoUserCodeSuspension() 90 art::Locks::user_code_suspension_lock_->ExclusiveUnlock(self_); in ~ScopedNoUserCodeSuspension()
|
/art/runtime/base/ |
D | mutex.h | 490 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock() 491 mu_.ExclusiveLock(self_); in MutexLock() 495 mu_.ExclusiveUnlock(self_); in RELEASE() 499 Thread* const self_; 513 Thread* const self_; 523 self_(self), mu_(mu) { in WriterMutexLock() 524 mu_.ExclusiveLock(self_); in WriterMutexLock() 528 mu_.ExclusiveUnlock(self_); in UNLOCK_FUNCTION() 532 Thread* const self_;
|
D | mutex-inl.h | 304 : self_(self), mu_(mu) { in ReaderMutexLock() 305 mu_.SharedLock(self_); in ReaderMutexLock() 309 mu_.SharedUnlock(self_); in ~ReaderMutexLock()
|
/art/runtime/gc/collector/ |
D | semi_space.cc | 64 WriterMutexLock mu(self_, *Locks::heap_bitmap_lock_); in BindBitmaps() 88 self_(nullptr), in SemiSpace() 134 self_ = Thread::Current(); in InitializePhase() 154 CHECK(Locks::mutator_lock_->IsExclusiveHeld(self_)); in MarkingPhase() 156 Locks::mutator_lock_->AssertExclusiveHeld(self_); in MarkingPhase() 159 ThreadState old_state = self_->SetStateUnsafe(kRunnable); in MarkingPhase() 165 CHECK_EQ(self_->SetStateUnsafe(old_state), kRunnable); in MarkingPhase() 173 Locks::mutator_lock_->AssertExclusiveHeld(self_); in MarkingPhase() 186 heap_->RevokeAllThreadLocalAllocationStacks(self_); in MarkingPhase() 190 WriterMutexLock mu(self_, *Locks::heap_bitmap_lock_); in MarkingPhase() [all …]
|
/art/runtime/native/ |
D | dalvik_system_ZygoteHooks.cc | 64 explicit ClassSet(Thread* const self) : self_(self) { in ClassSet() 65 self_->GetJniEnv()->PushFrame(kClassSetCapacity); in ClassSet() 69 self_->GetJniEnv()->PopFrame(); in ~ClassSet() 73 class_set_.insert(self_->GetJniEnv()->AddLocalReference<jclass>(klass)); in AddClass() 81 Thread* const self_; member in art::ClassSet
|