Home
last modified time | relevance | path

Searched refs:self_ (Results 1 – 25 of 41) sorted by relevance

12

/art/runtime/
Dscoped_thread_state_change-inl.h34 : 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 …]
Dobject_lock.cc26 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()
Dscoped_thread_state_change.h50 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_;
Dquick_exception_handler.cc46 : 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 …]
Dhidden_api_test.cc40 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 …]
Dhandle_scope-inl.h48 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()
Dobject_lock.h42 Thread* const self_;
60 Thread* const self_;
Dthread.h1817 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 …]
Dhandle_scope.h226 return self_; in Self()
232 Thread* const self_;
267 Thread* const self_; variable
Dquick_exception_handler.h143 Thread* const self_;
Dinstrumentation.cc101 : self_(self), in InstrumentationStackPopper()
106 std::deque<instrumentation::InstrumentationStackFrame>* stack = self_->GetInstrumentationStack(); in ~InstrumentationStackPopper()
114 std::deque<instrumentation::InstrumentationStackFrame>* stack = self_->GetInstrumentationStack(); in PopFramesTo()
117 DCHECK(!self_->IsExceptionPending()); in PopFramesTo()
126 self_->SetException(exception.Get()); in PopFramesTo()
138 instrumentation_->MethodUnwindEvent(self_, frame.this_object_, method, dex_pc); in PopFramesTo()
139 new_exception_thrown = self_->GetException() != exception.Get(); in PopFramesTo()
142 exception.Assign(self_->GetException()); in PopFramesTo()
143 self_->ClearException(); in PopFramesTo()
Dmonitor.cc402 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/
Dscoped_gc_critical_section.cc28 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()
Dscoped_gc_critical_section.h34 : self_(self), section_name_(name) {} in GCCriticalSection()
44 Thread* const self_;
/art/runtime/entrypoints/quick/
Dcallee_save_frame.h44 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/
Djni_env_ext.cc76 : 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 …]
Djni_env_ext.h98 Thread* GetSelf() const { return self_; } in GetSelf()
162 Thread* const self_; variable
/art/openjdkjvmti/
Dti_redefine.cc385 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 …]
Ddeopt_manager.cc335 : 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
Dti_thread.cc69 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()
Dti_redefine.h210 art::Thread* self_; variable
223 self_(self), in Redefiner()
/art/runtime/base/
Dmutex.h462 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_;
Dmutex-inl.h305 : self_(self), mu_(mu) { in ReaderMutexLock()
306 mu_.SharedLock(self_); in ReaderMutexLock()
310 mu_.SharedUnlock(self_); in ~ReaderMutexLock()
/art/runtime/gc/collector/
Dsemi_space.cc66 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/
Ddalvik_system_ZygoteHooks.cc64 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

12