Home | History | Annotate | Download | only in runtime

Lines Matching defs:self

344   MutexLock mu(soa.Self(), *Locks::thread_suspend_count_lock_);
398 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
603 Thread* const self = Thread::Current();
606 ReaderMutexLock mu(self, *Locks::breakpoint_lock_);
611 MutexLock mu(self, *Locks::deoptimization_lock_);
628 ScopedObjectAccess soa(self);
651 Thread* self = Thread::Current();
654 gc::ScopedGCCriticalSection gcs(self,
658 ThreadState old_state = self->SetStateUnsafe(kRunnable);
665 MutexLock mu(self, *Locks::deoptimization_lock_);
679 CHECK_EQ(self->SetStateUnsafe(old_state), kRunnable);
683 ScopedObjectAccess soa(self);
798 Thread* self = Thread::Current();
799 CHECK_EQ(self->GetState(), kRunnable);
803 ScopedThreadSuspension sts(self, kSuspended);
1266 Thread* self = Thread::Current();
1267 mirror::String* new_string = mirror::String::AllocFromModifiedUtf8(self, str.c_str());
1269 DCHECK(self->IsExceptionPending());
1270 self->ClearException();
1286 Thread* self = Thread::Current();
1292 new_object = mirror::String::Alloc<true>(self, 0, allocator_type, visitor);
1294 new_object = c->AllocObject(self);
1297 DCHECK(self->IsExceptionPending());
1298 self->ClearException();
1318 Thread* self = Thread::Current();
1320 mirror::Array* new_array = mirror::Array::Alloc<true>(self, c, length,
1324 DCHECK(self->IsExceptionPending());
1325 self->ClearException();
1546 Thread* self = Thread::Current();
1547 StackHandleScope<1> hs(self);
1556 gRegistry->AddRefType(mirror::Class::GetDirectInterface(self, c, i)));
1984 ScopedAssertNoThreadSuspension ants(soa.Self(), "Debugger: GetThreadGroup");
2034 ScopedAssertNoThreadSuspension ants(soa.Self(), "Debugger: GetThreadGroupName");
2053 ScopedAssertNoThreadSuspension ants(soa.Self(), "Debugger: GetThreadGroupParent");
2201 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
2213 thread->Interrupt(soa.Self());
2373 Thread* self = Thread::Current();
2374 ScopedLocalRef<jobject> peer(self->GetJniEnv(), nullptr);
2376 ScopedObjectAccess soa(self);
2404 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
2413 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
2834 Thread* const self = Thread::Current();
2835 StackHandleScope<1> hs(self);
2836 Handle<mirror::Throwable> pending_exception(hs.NewHandle(self->GetException()));
2837 self->ClearException();
2847 self->SetException(pending_exception.Get());
2885 CatchLocationFinder(Thread* self, const Handle<mirror::Throwable>& exception, Context* context)
2887 : StackVisitor(self, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
2889 handle_scope_(self),
2967 Thread* const self = Thread::Current();
2968 StackHandleScope<1> handle_scope(self);
2971 CatchLocationFinder clf(self, h_exception, context.get());
3211 Thread* const self = Thread::Current();
3214 MutexLock mu(self, *Locks::deoptimization_lock_);
3219 CHECK_EQ(self->GetState(), kRunnable);
3220 ScopedThreadSuspension sts(self, kWaitingForDeoptimization);
3222 gc::ScopedGCCriticalSection gcs(self,
3227 const ThreadState old_state = self->SetStateUnsafe(kRunnable);
3229 MutexLock mu(self, *Locks::deoptimization_lock_);
3237 CHECK_EQ(self->SetStateUnsafe(old_state), kRunnable);
3284 static DeoptimizationRequest::Kind GetRequiredDeoptimizationKind(Thread* self,
3296 ReaderMutexLock mu(self, *Locks::breakpoint_lock_);
3330 ReaderMutexLock mu(self, *Locks::breakpoint_lock_);
3340 Thread* const self = Thread::Current();
3346 GetRequiredDeoptimizationKind(self, m, &existing_breakpoint);
3357 WriterMutexLock mu(self, *Locks::breakpoint_lock_);
3543 explicit NeedsDeoptimizationVisitor(Thread* self)
3545 : StackVisitor(self, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
3608 ScopedDebuggerThreadSuspension(Thread* self, JDWP::ObjectId thread_id)
3615 ScopedObjectAccessUnchecked soa(self);
3618 if (thread_ == soa.Self()) {
3623 ScopedThreadSuspension sts(self, kWaitingForDebuggerSuspension);
3663 Thread* self = Thread::Current();
3664 ScopedDebuggerThreadSuspension sts(self, thread_id);
3831 Thread* const self = Thread::Current();
3832 CHECK_EQ(self, GetDebugThread()) << "This must be called by the JDWP thread";
3838 ScopedObjectAccessUnchecked soa(self);
3874 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
3922 StackHandleScope<2> hs(soa.Self());
3981 Thread* const self = Thread::Current();
3982 CHECK_NE(self, GetDebugThread()) << "This must be called by the event thread";
3984 ScopedObjectAccess soa(self);
3988 StackHandleScope<1> hs(soa.Self());
3989 Handle<mirror::Throwable> old_exception = hs.NewHandle(soa.Self()->GetException());
3990 soa.Self()->ClearException();
3997 soa.Self()->SetException(old_exception.Get());
4023 soa.Self()->AssertNoPendingException();
4052 StackHandleScope<2> hs(soa.Self());
4054 Handle<mirror::Throwable> exception = hs.NewHandle(soa.Self()->GetException());
4055 soa.Self()->ClearException();
4103 ScopedThreadSuspension sts(soa.Self(), kWaitingForDebuggerSuspension);
4187 Thread* self = Thread::Current();
4188 JNIEnv* env = self->GetJniEnv();
4269 Thread* self = Thread::Current();
4270 if (self->GetState() != kRunnable) {
4271 LOG(ERROR) << "DDM broadcast in thread state " << self->GetState();
4275 JNIEnv* env = self->GetJniEnv();
4314 StackHandleScope<1> hs(soa.Self());
4336 Thread* self = Thread::Current();
4338 MutexLock mu(self, *Locks::thread_list_lock_);
4342 ScopedObjectAccess soa(self);
4746 Thread* self = Thread::Current();
4747 Locks::mutator_lock_->AssertSharedHeld(self);
4757 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4766 ScopedThreadSuspension sts(self, kSuspended);
4768 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4771 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4776 heap->IncrementDisableMovingGC(self);
4778 ScopedThreadSuspension sts(self, kSuspended);
4780 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4785 heap->DecrementDisableMovingGC(self);
4791 ReaderMutexLock mu(self, *Locks::heap_bitmap_lock_);
4807 MutexLock mu(soa.Self(), *Locks::alloc_tracker_lock_);
4933 Thread* self = Thread::Current();
4936 MutexLock mu(self, *Locks::alloc_tracker_lock_);
5045 JNIEnv* env = self->GetJniEnv();