Home
last modified time | relevance | path

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

12

/art/runtime/
Dscoped_thread_state_change-inl.h33 : 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 …]
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()
Dhidden_api_test.cc33 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 …]
Djni_env_ext.cc75 : 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 …]
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.cc44 : 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 …]
Dhandle_scope-inl.h47 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()
Dobject_lock.h42 Thread* const self_;
60 Thread* const self_;
Dthread.h1784 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 …]
Djni_env_ext.h98 Thread* GetSelf() const { return self_; } in GetSelf()
162 Thread* const self_; variable
Dhandle_scope.h268 return self_; in Self()
274 Thread* const self_;
312 Thread* const self_; variable
Dquick_exception_handler.h142 Thread* const self_;
Dmonitor.cc398 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/
Dscoped_gc_critical_section.cc30 : 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()
Dscoped_gc_critical_section.h40 Thread* const self_;
/art/runtime/entrypoints/quick/
Dcallee_save_frame.h43 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/
Dti_redefine.cc330 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 …]
Ddeopt_manager.cc275 : 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
Dti_redefine.h219 art::Thread* self_; variable
232 self_(self), in Redefiner()
/art/runtime/gc/collector/
Dsemi_space.cc65 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 …]
Dsemi_space.h222 Thread* self_; variable
/art/runtime/base/
Dmutex.h512 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_;
Dmutex-inl.h285 : self_(self), mu_(mu) { in ReaderMutexLock()
286 mu_.SharedLock(self_); in ReaderMutexLock()
290 mu_.SharedUnlock(self_); in ~ReaderMutexLock()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc94 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/
Dmethod_verifier.cc562 : 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 …]

12