/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() 68 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadStateChange() 70 self_->TransitionFromRunnableToSuspended(old_thread_state_); in ~ScopedThreadStateChange() 73 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 | scoped_thread_state_change.h | 50 return self_; in Self() 57 Thread* const self_ = nullptr; variable 72 return self_; in Self() 115 : self_(nullptr), env_(nullptr), vm_(reinterpret_cast<JavaVMExt*>(vm)) {} in ScopedObjectAccessAlreadyRunnable() 124 Thread* const self_; variable 203 Thread* const self_;
|
D | quick_exception_handler.cc | 46 : self_(self), in QuickExceptionHandler() 193 instrumentation::InstrumentationStackPopper popper(self_); in FindCatch() 197 StackHandleScope<1> hs(self_); in FindCatch() 207 self_->DumpStack(LOG_STREAM(INFO) << "Delivering exception: " << exception_ref->PrettyTypeOf() in FindCatch() 212 CatchBlockStackVisitor visitor(self_, context_, in FindCatch() 224 GetInstrumentationFramesToPop(self_, handler_frame_depth_); in FindCatch() 240 DCHECK(!self_->IsExceptionPending()); in FindCatch() 251 self_->SetException(exception_ref.Get()); in FindCatch() 293 self_->DumpStack(LOG_STREAM(INFO) << "Setting catch phis: "); in SetCatchEnvironmentForOptimizedHandler() 567 self_->SetException(Thread::GetDeoptimizationException()); in PrepareForLongJumpToInvokeStubOrInterpreterBridge() [all …]
|
D | hidden_api_test.cc | 40 self_ = Thread::Current(); in SetUp() 41 self_->TransitionFromSuspendedToRunnable(); in SetUp() 88 Thread* self_; member in art::HiddenApiTest 107 ScopedObjectAccess soa(self_); in TEST_F() 162 ScopedObjectAccess soa(self_); in TEST_F() 181 ScopedObjectAccess soa(self_); in TEST_F() 200 ScopedObjectAccess soa(self_); in TEST_F() 216 ScopedObjectAccess soa(self_); in TEST_F() 231 ScopedObjectAccess soa(self_); in TEST_F() 244 ScopedObjectAccess soa(self_); in TEST_F() [all …]
|
D | object_lock.h | 42 Thread* const self_; 60 Thread* const self_;
|
D | handle_scope-inl.h | 48 self_(self) { in StackHandleScope() 50 self_->PushHandleScope(this); in StackHandleScope() 55 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~StackHandleScope() 58 Locks::mutator_lock_->AssertSharedHeld(self_); in ~StackHandleScope() 211 self_(self) { in VariableSizedHandleScope() 213 self_->PushHandleScope(this); in VariableSizedHandleScope() 217 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~VariableSizedHandleScope()
|
D | thread.h | 1817 self_ = Thread::Current(); in ACQUIRE() 1818 old_cause_ = self_->StartAssertNoThreadSuspension(cause); in ACQUIRE() 1828 self_->EndAssertNoThreadSuspension(old_cause_); in ~ScopedAssertNoThreadSuspension() 1835 Thread* self_; 1843 : self_(self), type_(type) { in ScopedStackedShadowFramePusher() 1844 self_->PushStackedShadowFrame(sf, type); in ScopedStackedShadowFramePusher() 1847 self_->PopStackedShadowFrame(type_); in ~ScopedStackedShadowFramePusher() 1851 Thread* const self_; 1860 explicit ScopedDebugDisallowReadBarriers(Thread* self) : self_(self) { in ScopedDebugDisallowReadBarriers() 1861 self_->ModifyDebugDisallowReadBarrier(1); in ScopedDebugDisallowReadBarriers() [all …]
|
D | handle_scope.h | 226 return self_; in Self() 232 Thread* const self_; 267 Thread* const self_; variable
|
D | quick_exception_handler.h | 143 Thread* const self_;
|
D | monitor.cc | 402 ScopedAssertNotHeld(Thread* self, Mutex& mu) : self_(self), mu_(mu) { in ScopedAssertNotHeld() 403 mu_.AssertNotHeld(self_); in ScopedAssertNotHeld() 407 mu_.AssertNotHeld(self_); in ~ScopedAssertNotHeld() 411 Thread* const self_; member in art::ScopedAssertNotHeld 1640 MonitorDeflateVisitor() : self_(Thread::Current()), deflate_count_(0) {} in MonitorDeflateVisitor() 1644 if (Monitor::Deflate(self_, object)) { in IsMarked() 1653 Thread* const self_; member in art::MonitorDeflateVisitor 1659 Locks::mutator_lock_->AssertExclusiveHeld(visitor.self_); in DeflateMonitors()
|
/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()
|
D | scoped_gc_critical_section.h | 34 : self_(self), section_name_(name) {} in GCCriticalSection() 44 Thread* const self_;
|
/art/runtime/entrypoints/quick/ |
D | callee_save_frame.h | 44 REQUIRES_SHARED(Locks::mutator_lock_) : self_(self), exit_check_(exit_check) { in REQUIRES_SHARED() 58 Locks::mutator_lock_->AssertSharedHeld(self_); in TestsOnEntry() 59 self_->VerifyStack(); in TestsOnEntry() 63 Locks::mutator_lock_->AssertSharedHeld(self_); in TestsOnExit() 64 self_->VerifyStack(); in TestsOnExit() 67 Thread* const self_; variable
|
/art/runtime/jni/ |
D | jni_env_ext.cc | 76 : 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 | 98 Thread* GetSelf() const { return self_; } in GetSelf() 162 Thread* const self_; variable
|
/art/openjdkjvmti/ |
D | ti_redefine.cc | 385 GetMirrorClass()->MonitorEnter(driver_->self_); in ClassRedefinition() 390 GetMirrorClass()->MonitorExit(driver_->self_); in ~ClassRedefinition() 518 return driver_->self_->DecodeJObject(klass_)->AsClass(); in GetMirrorClass() 527 art::StackHandleScope<2> hs(driver_->self_); in CreateNewDexCache() 531 art::GetClassRoot<art::mirror::DexCache>(cl)->AllocObject(driver_->self_)))); in CreateNewDexCache() 533 driver_->self_->AssertPendingOOMException(); in CreateNewDexCache() 539 driver_->self_->AssertPendingOOMException(); in CreateNewDexCache() 542 art::WriterMutexLock mu(driver_->self_, *art::Locks::dex_lock_); in CreateNewDexCache() 543 art::mirror::DexCache::InitializeDexCache(driver_->self_, in CreateNewDexCache() 566 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_redefine.h | 210 art::Thread* self_; variable 223 self_(self), in Redefiner()
|
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 | 462 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock() 463 mu_.ExclusiveLock(self_); in MutexLock() 467 mu_.ExclusiveUnlock(self_); in RELEASE() 471 Thread* const self_; 485 Thread* const self_; 495 self_(self), mu_(mu) { in WriterMutexLock() 496 mu_.ExclusiveLock(self_); in WriterMutexLock() 500 mu_.ExclusiveUnlock(self_); in UNLOCK_FUNCTION() 504 Thread* const self_;
|
D | mutex-inl.h | 305 : self_(self), mu_(mu) { in ReaderMutexLock() 306 mu_.SharedLock(self_); in ReaderMutexLock() 310 mu_.SharedUnlock(self_); in ~ReaderMutexLock()
|
/art/runtime/gc/collector/ |
D | semi_space.cc | 66 WriterMutexLock mu(self_, *Locks::heap_bitmap_lock_); in BindBitmaps() 101 self_(nullptr), in SemiSpace() 155 self_ = Thread::Current(); in InitializePhase() 178 CHECK(Locks::mutator_lock_->IsExclusiveHeld(self_)); in MarkingPhase() 180 Locks::mutator_lock_->AssertExclusiveHeld(self_); in MarkingPhase() 183 ThreadState old_state = self_->SetStateUnsafe(kRunnable); in MarkingPhase() 189 CHECK_EQ(self_->SetStateUnsafe(old_state), kRunnable); in MarkingPhase() 216 Locks::mutator_lock_->AssertExclusiveHeld(self_); in MarkingPhase() 240 heap_->RevokeAllThreadLocalAllocationStacks(self_); in MarkingPhase() 244 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
|
/art/runtime/jit/ |
D | jit.cc | 920 : self_(self), was_runtime_thread_(self_->IsRuntimeThread()) { in ScopedSetRuntimeThread() 921 self_->SetIsRuntimeThread(true); in ScopedSetRuntimeThread() 925 self_->SetIsRuntimeThread(was_runtime_thread_); in ~ScopedSetRuntimeThread() 929 Thread* self_; member in art::jit::ScopedSetRuntimeThread
|