Home
last modified time | relevance | path

Searched refs:self_ (Results 1 – 25 of 49) 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()
64 self_->TransitionFromSuspendedToRunnable(); in ~ScopedThreadStateChange()
66 self_->TransitionFromRunnableToSuspended(old_thread_state_); in ~ScopedThreadStateChange()
69 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()
Dreflective_handle_scope-inl.h58 self_ = self; in PushScope()
59 link_ = self_->GetTopReflectiveHandleScope(); in PushScope()
60 self_->PushReflectiveHandleScope(this); in PushScope()
64 auto* prev = self_->PopReflectiveHandleScope(); in PopScope()
Dscoped_thread_state_change.h50 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_;
Dhandle_scope-inl.h50 self_(self) { in StackHandleScope()
53 Locks::mutator_lock_->AssertSharedHeld(self_); in StackHandleScope()
55 self_->PushHandleScope(this); in StackHandleScope()
61 Locks::mutator_lock_->AssertSharedHeld(self_); in ~StackHandleScope()
63 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~StackHandleScope()
217 self_(self), in VariableSizedHandleScope()
222 Locks::mutator_lock_->AssertSharedHeld(self_); in VariableSizedHandleScope()
224 self_->PushHandleScope(this); in VariableSizedHandleScope()
229 Locks::mutator_lock_->AssertSharedHeld(self_); in ~VariableSizedHandleScope()
231 BaseHandleScope* top_handle_scope = self_->PopHandleScope(); in ~VariableSizedHandleScope()
Dquick_exception_handler.cc49 : self_(self), in QuickExceptionHandler()
150 instrumentation::InstrumentationStackPopper popper(self_); in FindCatch()
154 StackHandleScope<1> hs(self_); in FindCatch()
164 self_->DumpStack(LOG_STREAM(INFO) << "Delivering exception: " << exception_ref->PrettyTypeOf() in FindCatch()
169 CatchBlockStackVisitor visitor(self_, context_, in FindCatch()
191 DCHECK(!self_->IsExceptionPending()); in FindCatch()
203 self_->SetException(exception_ref.Get()); in FindCatch()
245 self_->DumpStack(LOG_STREAM(INFO) << "Setting catch phis: "); in SetCatchEnvironmentForOptimizedHandler()
561 self_->SetException(Thread::GetDeoptimizationException()); in PrepareForLongJumpToInvokeStubOrInterpreterBridge()
567 reinterpret_cast<uint8_t*>(self_) + offset); in PrepareForLongJumpToInvokeStubOrInterpreterBridge()
[all …]
Dobject_lock.h42 Thread* const self_;
60 Thread* const self_;
Dhidden_api_test.cc135 self_ = Thread::Current(); in SetUp()
136 self_->TransitionFromSuspendedToRunnable(); in SetUp()
213 Thread* self_; member in art::HiddenApiTest
232 ScopedObjectAccess soa(self_); in TEST_F()
317 ScopedObjectAccess soa(self_); in TEST_F()
396 ScopedObjectAccess soa(self_); in TEST_F()
415 ScopedObjectAccess soa(self_); in TEST_F()
434 ScopedObjectAccess soa(self_); in TEST_F()
450 ScopedObjectAccess soa(self_); in TEST_F()
465 ScopedObjectAccess soa(self_); in TEST_F()
[all …]
Dthread.h1924 self_ = Thread::Current(); in ACQUIRE()
1925 old_cause_ = self_->StartAssertNoThreadSuspension(cause); in ACQUIRE()
1935 self_->EndAssertNoThreadSuspension(old_cause_); in ~ScopedAssertNoThreadSuspension()
1942 Thread* self_;
1951 self_ = Thread::Current(); in ScopedAllowThreadSuspension()
1952 old_cause_ = self_->EndAssertNoThreadSuspension(); in ScopedAllowThreadSuspension()
1959 CHECK(self_->StartAssertNoThreadSuspension(old_cause_) == nullptr); in ~ScopedAllowThreadSuspension()
1966 Thread* self_;
1974 : self_(self), type_(type) { in ScopedStackedShadowFramePusher()
1975 self_->PushStackedShadowFrame(sf, type); in ScopedStackedShadowFramePusher()
[all …]
Dreflective_handle_scope.cc27 os << "[BaseReflectiveHandleScope self_=" << *self_ << ", link_=" << link_ << "]"; in Describe()
Dreflective_handle_scope.h71 return self_; in GetThread()
77 ALWAYS_INLINE BaseReflectiveHandleScope() : self_(nullptr), link_(nullptr) {} in BaseReflectiveHandleScope()
83 Thread* self_; variable
Dhandle_scope.h230 return self_; in Self()
236 Thread* const self_;
271 Thread* const self_; variable
/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()
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()
Dscoped_gc_critical_section.h34 : self_(self), section_name_(name) {} in GCCriticalSection()
44 Thread* const self_;
71 Thread* const self_;
/art/runtime/entrypoints/quick/
Dcallee_save_frame.h42 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/libdexfile/external/include/art_api/
Ddex_file_support.h111 g_ADexFile_destroy(self_); in ~DexFile()
117 return g_ADexFile_findMethodAtOffset(self_, dex_offset, cb, &callback); in FindMethodAtOffset()
123 return g_ADexFile_forEachMethod(self_, cb, &callback); in ForEachMethod()
127 explicit DexFile(ADexFile* self) : self_(self) {} in DexFile()
129 ADexFile* const self_; variable
/art/runtime/jni/
Djni_env_ext.cc77 : 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.h102 Thread* GetSelf() const { return self_; } in GetSelf()
173 Thread* const self_; variable
/art/openjdkjvmti/
Dti_redefine.cc541 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()
781 driver_->self_, in AllocateOrGetOriginalDexFile()
853 art::MutexLock mu(driver_->self_, *art::Locks::thread_list_lock_); in FindAndAllocateObsoleteMethods()
[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
/art/runtime/gc/collector/
Dsemi_space.cc64 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/base/
Dmutex.h506 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock()
507 mu_.ExclusiveLock(self_); in MutexLock()
511 mu_.ExclusiveUnlock(self_); in RELEASE()
515 Thread* const self_;
529 Thread* const self_;
539 self_(self), mu_(mu) { in WriterMutexLock()
540 mu_.ExclusiveLock(self_); in WriterMutexLock()
544 mu_.ExclusiveUnlock(self_); in UNLOCK_FUNCTION()
548 Thread* const self_;
Dmutex-inl.h304 : self_(self), mu_(mu) { in ReaderMutexLock()
305 mu_.SharedLock(self_); in ReaderMutexLock()
309 mu_.SharedUnlock(self_); in ~ReaderMutexLock()
/art/runtime/jit/
Dprofiling_info.cc112 self_(self), in ScopedProfilingInfoUse()
120 jit_->GetCodeCache()->DoneCompilerUse(method_, self_); in ~ScopedProfilingInfoUse()
/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