/art/runtime/ |
D | scoped_thread_state_change-inl.h | 33 : self_(self), thread_state_(new_thread_state), expected_has_no_thread_(false) { in ScopedThreadStateChange() 34 if (UNLIKELY(self_ == nullptr)) { in ScopedThreadStateChange() 38 CHECK(runtime == nullptr || !runtime->IsStarted() || runtime->IsShuttingDown(self_)); in ScopedThreadStateChange() 46 self_->TransitionFromSuspendedToRunnable(); in ScopedThreadStateChange() 48 self_->TransitionFromRunnableToSuspended(new_thread_state); in ScopedThreadStateChange() 51 self_->SetState(new_thread_state); in ScopedThreadStateChange() 58 if (UNLIKELY(self_ == nullptr)) { in ~ScopedThreadStateChange() 67 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadStateChange() 69 self_->TransitionFromRunnableToSuspended(old_thread_state_); in ~ScopedThreadStateChange() 72 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 | hidden_api_test.cc | 33 self_ = Thread::Current(); in SetUp() 34 self_->TransitionFromSuspendedToRunnable(); in SetUp() 72 Thread* self_; member in art::HiddenApiTest 146 ScopedObjectAccess soa(self_); in TEST_F() 165 ScopedObjectAccess soa(self_); in TEST_F() 184 ScopedObjectAccess soa(self_); in TEST_F() 200 ScopedObjectAccess soa(self_); in TEST_F() 215 ScopedObjectAccess soa(self_); in TEST_F() 228 ScopedObjectAccess soa(self_); in TEST_F() 239 ScopedObjectAccess soa(self_); in TEST_F() [all …]
|
D | jni_env_ext.cc | 75 : self_(self_in), in JNIEnvExt() 190 locked_objects_.push_back(std::make_pair(GetJavaCallFrame(self_), obj)); in RecordMonitorEnter() 232 uintptr_t current_frame = GetJavaCallFrame(self_); in CheckMonitorRelease() 240 ObjPtr<mirror::Object> mirror_obj = self_->DecodeJObject(obj); in CheckMonitorRelease() 242 if (self_->DecodeJObject(pair.second) == mirror_obj) { in CheckMonitorRelease() 243 std::string monitor_descr = ComputeMonitorDescription(self_, pair.second); in CheckMonitorRelease() 257 RemoveMonitors(self_, current_frame, &monitors_, &locked_objects_); in CheckMonitorRelease() 267 uintptr_t current_frame = GetJavaCallFrame(self_); in CheckNoHeldMonitors() 270 std::string monitor_descr = ComputeMonitorDescription(self_, pair.second); in CheckNoHeldMonitors() 276 RemoveMonitors(self_, current_frame, &monitors_, &locked_objects_); in CheckNoHeldMonitors() [all …]
|
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 | 44 : self_(self), in QuickExceptionHandler() 146 StackHandleScope<1> hs(self_); in FindCatch() 151 self_->DumpStack(LOG_STREAM(INFO) << "Delivering exception: " << exception_ref->PrettyTypeOf() in FindCatch() 156 CatchBlockStackVisitor visitor(self_, context_, &exception_ref, this); in FindCatch() 171 DCHECK(!self_->IsExceptionPending()); in FindCatch() 174 self_->SetException(exception_ref.Get()); in FindCatch() 222 self_->DumpStack(LOG_STREAM(INFO) << "Setting catch phis: "); in SetCatchEnvironmentForOptimizedHandler() 516 self_->SetException(Thread::GetDeoptimizationException()); in PrepareForLongJumpToInvokeStubOrInterpreterBridge() 522 reinterpret_cast<uint8_t*>(self_) + offset); in PrepareForLongJumpToInvokeStubOrInterpreterBridge() 529 self_->DumpStack(LOG_STREAM(INFO) << "Deoptimizing: "); in DeoptimizeStack() [all …]
|
D | handle_scope-inl.h | 47 self_(self) { in StackHandleScope() 49 self_->PushHandleScope(this); in StackHandleScope() 54 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~StackHandleScope() 57 Locks::mutator_lock_->AssertSharedHeld(self_); in ~StackHandleScope() 201 self_(self) { in VariableSizedHandleScope() 203 self_->PushHandleScope(this); in VariableSizedHandleScope() 207 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~VariableSizedHandleScope()
|
D | object_lock.h | 42 Thread* const self_; 60 Thread* const self_;
|
D | thread.h | 1784 self_ = Thread::Current(); in ACQUIRE() 1785 old_cause_ = self_->StartAssertNoThreadSuspension(cause); in ACQUIRE() 1795 self_->EndAssertNoThreadSuspension(old_cause_); in ~ScopedAssertNoThreadSuspension() 1802 Thread* self_; 1810 : self_(self), type_(type) { in ScopedStackedShadowFramePusher() 1811 self_->PushStackedShadowFrame(sf, type); in ScopedStackedShadowFramePusher() 1814 self_->PopStackedShadowFrame(type_); in ~ScopedStackedShadowFramePusher() 1818 Thread* const self_; 1827 explicit ScopedDebugDisallowReadBarriers(Thread* self) : self_(self) { in ScopedDebugDisallowReadBarriers() 1828 self_->ModifyDebugDisallowReadBarrier(1); in ScopedDebugDisallowReadBarriers() [all …]
|
D | jni_env_ext.h | 98 Thread* GetSelf() const { return self_; } in GetSelf() 162 Thread* const self_; variable
|
D | handle_scope.h | 268 return self_; in Self() 274 Thread* const self_; 312 Thread* const self_; variable
|
D | quick_exception_handler.h | 142 Thread* const self_;
|
D | monitor.cc | 398 ScopedAssertNotHeld(Thread* self, Mutex& mu) : self_(self), mu_(mu) { in ScopedAssertNotHeld() 399 mu_.AssertNotHeld(self_); in ScopedAssertNotHeld() 403 mu_.AssertNotHeld(self_); in ~ScopedAssertNotHeld() 407 Thread* const self_; member in art::ScopedAssertNotHeld 1570 MonitorDeflateVisitor() : self_(Thread::Current()), deflate_count_(0) {} in MonitorDeflateVisitor() 1574 if (Monitor::Deflate(self_, object)) { in IsMarked() 1583 Thread* const self_; member in art::MonitorDeflateVisitor 1589 Locks::mutator_lock_->AssertExclusiveHeld(visitor.self_); in DeflateMonitors()
|
/art/runtime/gc/ |
D | scoped_gc_critical_section.cc | 30 : self_(self) { in ScopedGCCriticalSection() 37 if (self_ != nullptr) { in ~ScopedGCCriticalSection() 38 self_->EndAssertNoThreadSuspension(old_cause_); in ~ScopedGCCriticalSection() 40 Runtime::Current()->GetHeap()->FinishGC(self_, collector::kGcTypeNone); in ~ScopedGCCriticalSection()
|
D | scoped_gc_critical_section.h | 40 Thread* const self_;
|
/art/runtime/entrypoints/quick/ |
D | callee_save_frame.h | 43 REQUIRES_SHARED(Locks::mutator_lock_) : self_(self), exit_check_(exit_check) { in REQUIRES_SHARED() 57 Locks::mutator_lock_->AssertSharedHeld(self_); in TestsOnEntry() 58 self_->VerifyStack(); in TestsOnEntry() 62 Locks::mutator_lock_->AssertSharedHeld(self_); in TestsOnExit() 63 self_->VerifyStack(); in TestsOnExit() 66 Thread* const self_; variable
|
/art/openjdkjvmti/ |
D | ti_redefine.cc | 330 GetMirrorClass()->MonitorEnter(driver_->self_); in ClassRedefinition() 335 GetMirrorClass()->MonitorExit(driver_->self_); in ~ClassRedefinition() 475 return driver_->self_->DecodeJObject(klass_)->AsClass(); in GetMirrorClass() 484 art::StackHandleScope<2> hs(driver_->self_); in CreateNewDexCache() 488 cl->GetClassRoot(art::ClassLinker::kJavaLangDexCache)->AllocObject(driver_->self_)))); in CreateNewDexCache() 490 driver_->self_->AssertPendingOOMException(); in CreateNewDexCache() 496 driver_->self_->AssertPendingOOMException(); in CreateNewDexCache() 499 art::WriterMutexLock mu(driver_->self_, *art::Locks::dex_lock_); in CreateNewDexCache() 500 art::mirror::DexCache::InitializeDexCache(driver_->self_, in CreateNewDexCache() 523 driver_->self_, in AllocateOrGetOriginalDexFile() [all …]
|
D | deopt_manager.cc | 275 : self_(self), deopt_(deopt), uninterruptible_cause_(nullptr) { in ScopedDeoptimizationContext() 276 deopt_->WaitForDeoptimizationToFinishLocked(self_); in ScopedDeoptimizationContext() 281 deopt_->deoptimization_status_lock_.Unlock(self_); in ScopedDeoptimizationContext() 284 uninterruptible_cause_ = self_->StartAssertNoThreadSuspension("JVMTI deoptimizing methods"); in ScopedDeoptimizationContext() 291 self_->EndAssertNoThreadSuspension(uninterruptible_cause_); in RELEASE() 295 art::MutexLock lk(self_, deopt_->deoptimization_status_lock_); in RELEASE() 297 deopt_->deoptimization_condition_.Broadcast(self_); in RELEASE() 301 art::Thread* self_; member in openjdkjvmti::ScopedDeoptimizationContext
|
D | ti_redefine.h | 219 art::Thread* self_; variable 232 self_(self), in Redefiner()
|
/art/runtime/gc/collector/ |
D | semi_space.cc | 65 WriterMutexLock mu(self_, *Locks::heap_bitmap_lock_); in BindBitmaps() 100 self_(nullptr), in SemiSpace() 154 self_ = Thread::Current(); in InitializePhase() 177 CHECK(Locks::mutator_lock_->IsExclusiveHeld(self_)); in MarkingPhase() 179 Locks::mutator_lock_->AssertExclusiveHeld(self_); in MarkingPhase() 182 ThreadState old_state = self_->SetStateUnsafe(kRunnable); in MarkingPhase() 188 CHECK_EQ(self_->SetStateUnsafe(old_state), kRunnable); in MarkingPhase() 215 Locks::mutator_lock_->AssertExclusiveHeld(self_); in MarkingPhase() 239 heap_->RevokeAllThreadLocalAllocationStacks(self_); in MarkingPhase() 243 WriterMutexLock mu(self_, *Locks::heap_bitmap_lock_); in MarkingPhase() [all …]
|
D | semi_space.h | 222 Thread* self_; variable
|
/art/runtime/base/ |
D | mutex.h | 512 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock() 513 mu_.ExclusiveLock(self_); in MutexLock() 517 mu_.ExclusiveUnlock(self_); in RELEASE() 521 Thread* const self_; 537 Thread* const self_; 547 self_(self), mu_(mu) { in WriterMutexLock() 548 mu_.ExclusiveLock(self_); in WriterMutexLock() 552 mu_.ExclusiveUnlock(self_); in UNLOCK_FUNCTION() 556 Thread* const self_;
|
D | mutex-inl.h | 285 : self_(self), mu_(mu) { in ReaderMutexLock() 286 mu_.SharedLock(self_); in ReaderMutexLock() 290 mu_.SharedUnlock(self_); in ~ReaderMutexLock()
|
/art/runtime/native/ |
D | dalvik_system_ZygoteHooks.cc | 94 explicit ClassSet(Thread* const self) : self_(self) { in ClassSet() 95 self_->GetJniEnv()->PushFrame(kClassSetCapacity); in ClassSet() 99 self_->GetJniEnv()->PopFrame(); in ~ClassSet() 103 class_set_.insert(self_->GetJniEnv()->AddLocalReference<jclass>(klass.Ptr())); in AddClass() 111 Thread* const self_; member in art::ClassSet
|
/art/runtime/verifier/ |
D | method_verifier.cc | 562 : self_(self), in MethodVerifier() 1008 DCHECK(self_->IsExceptionPending()); in ScanTryCatchBlocks() 1009 self_->ClearException(); in ScanTryCatchBlocks() 1815 self_->AllowThreadSuspension(); in CodeFlowVerifyMethod() 2896 DCHECK(!can_load_classes_ || self_->IsExceptionPending()); in CodeFlowVerifyInstruction() 2897 self_->ClearException(); in CodeFlowVerifyInstruction() 2941 DCHECK(!can_load_classes_ || self_->IsExceptionPending()); in CodeFlowVerifyInstruction() 2942 self_->ClearException(); in CodeFlowVerifyInstruction() 3539 DCHECK(self_->IsExceptionPending()); in CodeFlowVerifyInstruction() 3540 self_->ClearException(); in CodeFlowVerifyInstruction() [all …]
|