Home | History | Annotate | Download | only in runtime

Lines Matching defs:self

129   Thread* self = Thread::Current();
131 vm->DeleteWeakGlobalRef(self, p.second);
437 MutexLock mu(soa.Self(), *Locks::thread_suspend_count_lock_);
491 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
693 Thread* self = Thread::Current();
694 ThreadState old_state = self->SetStateUnsafe(kRunnable);
701 CHECK_EQ(self->SetStateUnsafe(old_state), kRunnable);
717 Thread* self = Thread::Current();
718 ThreadState old_state = self->SetStateUnsafe(kRunnable);
740 CHECK_EQ(self->SetStateUnsafe(old_state), kRunnable);
744 ScopedObjectAccess soa(self);
859 Thread* self = Thread::Current();
860 CHECK_EQ(self->GetState(), kRunnable);
861 self->TransitionFromRunnableToSuspended(kSuspended);
867 self->TransitionFromSuspendedToRunnable();
1330 Thread* self = Thread::Current();
1331 mirror::String* new_string = mirror::String::AllocFromModifiedUtf8(self, str.c_str());
1333 DCHECK(self->IsExceptionPending());
1334 self->ClearException();
1350 Thread* self = Thread::Current();
1351 mirror::Object* new_object = c->AllocObject(self);
1353 DCHECK(self->IsExceptionPending());
1354 self->ClearException();
1374 Thread* self = Thread::Current();
1376 mirror::Array* new_array = mirror::Array::Alloc<true>(self, c, length,
1380 DCHECK(self->IsExceptionPending());
1381 self->ClearException();
1608 Thread* self = Thread::Current();
1609 StackHandleScope<1> hs(self);
1618 gRegistry->AddRefType(mirror::Class::GetDirectInterface(self, c, i)));
2047 ScopedAssertNoThreadSuspension ants(soa.Self(), "Debugger: GetThreadGroup");
2098 ScopedAssertNoThreadSuspension ants(soa.Self(), "Debugger: GetThreadGroupName");
2117 ScopedAssertNoThreadSuspension ants(soa.Self(), "Debugger: GetThreadGroupParent");
2264 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
2276 thread->Interrupt(soa.Self());
2436 Thread* self = Thread::Current();
2437 ScopedLocalRef<jobject> peer(self->GetJniEnv(), nullptr);
2439 ScopedObjectAccess soa(self);
2467 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
2476 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
2886 Thread* const self = Thread::Current();
2887 StackHandleScope<1> hs(self);
2888 Handle<mirror::Throwable> pending_exception(hs.NewHandle(self->GetException()));
2889 self->ClearException();
2899 self->SetException(pending_exception.Get());
2937 CatchLocationFinder(Thread* self, const Handle<mirror::Throwable>& exception, Context* context)
2939 : StackVisitor(self, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
2940 self_(self),
2942 handle_scope_(self),
3021 Thread* const self = Thread::Current();
3022 StackHandleScope<1> handle_scope(self);
3025 CatchLocationFinder clf(self, h_exception, context.get());
3265 Thread* const self = Thread::Current();
3268 MutexLock mu(self, *Locks::deoptimization_lock_);
3273 CHECK_EQ(self->GetState(), kRunnable);
3274 self->TransitionFromRunnableToSuspended(kWaitingForDeoptimization);
3278 const ThreadState old_state = self->SetStateUnsafe(kRunnable);
3280 MutexLock mu(self, *Locks::deoptimization_lock_);
3288 CHECK_EQ(self->SetStateUnsafe(old_state), kRunnable);
3290 self->TransitionFromSuspendedToRunnable();
3293 static bool IsMethodPossiblyInlined(Thread* self, ArtMethod* m)
3302 self->AssertThreadSuspensionIsAllowable();
3303 StackHandleScope<2> hs(self);
3307 verifier::MethodVerifier verifier(self, dex_cache->GetDexFile(), dex_cache, class_loader,
3358 static DeoptimizationRequest::Kind GetRequiredDeoptimizationKind(Thread* self,
3370 ReaderMutexLock mu(self, *Locks::breakpoint_lock_);
3380 bool need_full_deoptimization = IsMethodPossiblyInlined(self, m);
3412 ReaderMutexLock mu(self, *Locks::breakpoint_lock_);
3422 Thread* const self = Thread::Current();
3428 GetRequiredDeoptimizationKind(self, m, &existing_breakpoint);
3439 WriterMutexLock mu(self, *Locks::breakpoint_lock_);
3621 ScopedThreadSuspension(Thread* self, JDWP::ObjectId thread_id)
3628 ScopedObjectAccessUnchecked soa(self);
3631 if (thread_ == soa.Self()) {
3634 soa.Self()->TransitionFromRunnableToSuspended(kWaitingForDebuggerSuspension);
3640 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kWaitingForDebuggerSuspension);
3675 Thread* self = Thread::Current();
3676 ScopedThreadSuspension sts(self, thread_id);
3844 Thread* const self = Thread::Current();
3845 CHECK_EQ(self, GetDebugThread()) << "This must be called by the JDWP thread";
3850 ScopedObjectAccessUnchecked soa(self);
3884 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
3929 StackHandleScope<2> hs(soa.Self());
3987 Thread* const self = Thread::Current();
3988 CHECK_NE(self, GetDebugThread()) << "This must be called by the event thread";
3990 ScopedObjectAccess soa(self);
3994 StackHandleScope<1> hs(soa.Self());
3995 Self()->GetException());
3996 soa.Self()->ClearException();
4003 soa.Self()->SetException(old_exception.Get());
4029 soa.Self()->AssertNoPendingException();
4058 StackHandleScope<2> hs(soa.Self());
4060 Handle<mirror::Throwable> exception = hs.NewHandle(soa.Self()->GetException());
4061 soa.Self()->ClearException();
4107 soa.Self()->TransitionFromRunnableToSuspended(kWaitingForDebuggerSuspension);
4110 soa.Self()->TransitionFromSuspendedToRunnable();
4192 Thread* self = Thread::Current();
4193 JNIEnv* env = self->GetJniEnv();
4274 Thread* self = Thread::Current();
4275 if (self->GetState() != kRunnable) {
4276 LOG(ERROR) << "DDM broadcast in thread state " << self->GetState();
4280 JNIEnv* env = self->GetJniEnv();
4319 StackHandleScope<1> hs(soa.Self());
4341 Thread* self = Thread::Current();
4343 MutexLock mu(self, *Locks::thread_list_lock_);
4347 ScopedObjectAccess soa(self);
4751 Thread* self = Thread::Current();
4752 Locks::mutator_lock_->AssertSharedHeld(self);
4767 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4776 self->TransitionFromRunnableToSuspended(kSuspended);
4780 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4784 self->TransitionFromSuspendedToRunnable();
4786 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4791 heap->IncrementDisableMovingGC(self);
4792 self->TransitionFromRunnableToSuspended(kSuspended);
4795 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4800 self->TransitionFromSuspendedToRunnable();
4801 heap->DecrementDisableMovingGC(self);
4807 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4842 Thread* self = Thread::Current();
4845 MutexLock mu(self, *Locks::alloc_tracker_lock_);
4861 ScopedObjectAccess soa(self); // For type_cache_.Clear();
4862 MutexLock mu(self, *Locks::alloc_tracker_lock_);
4912 void Dbg::RecordAllocation(Thread* self, mirror::Class* type, size_t byte_count) {
4913 MutexLock mu(self, *Locks::alloc_tracker_lock_);
4928 record->SetThinLockId(self->GetThreadId());
4931 AllocRecordStackVisitor visitor(self, record);
4954 MutexLock mu(soa.Self(), *Locks::alloc_tracker_lock_);
5085 Thread* self = Thread::Current();
5088 MutexLock mu(self, *Locks::alloc_tracker_lock_);
5186 JNIEnv* env = self->GetJniEnv();