/art/runtime/entrypoints/jni/ |
H A D | jni_entrypoints.cc | 29 Thread* self = Thread::Current(); local 31 extern "C" void* artFindNativeMethod(Thread* self) { 32 DCHECK_EQ(self, Thread::Current()); 34 Locks::mutator_lock_->AssertNotHeld(self); // We come here as Native. 35 ScopedObjectAccess soa(self); 37 mirror::ArtMethod* method = self->GetCurrentMethod(NULL); 44 DCHECK(self->IsExceptionPending()); 48 method->RegisterNative(self, native_code, false);
|
/art/runtime/entrypoints/portable/ |
H A D | portable_fillarray_entrypoints.cc | 39 Thread* self = Thread::Current(); local 40 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); 41 self->ThrowNewExceptionF(throw_location, "Ljava/lang/ArrayIndexOutOfBoundsException;",
|
H A D | portable_jni_entrypoints.cc | 25 extern "C" uint32_t art_portable_jni_method_start(Thread* self) 27 JNIEnvExt* env = self->GetJniEnv(); 30 self->TransitionFromRunnableToSuspended(kNative); 34 extern "C" uint32_t art_portable_jni_method_start_synchronized(jobject to_lock, Thread* self) 36 self->DecodeJObject(to_lock)->MonitorEnter(self); variable 37 return art_portable_jni_method_start(self); 40 static void PopLocalReferences(uint32_t saved_local_ref_cookie, Thread* self) 42 JNIEnvExt* env = self->GetJniEnv(); 47 extern "C" void art_portable_jni_method_end(uint32_t saved_local_ref_cookie, Thread* self) [all...] |
H A D | portable_invoke_entrypoints.cc | 26 mirror::ArtMethod* caller_method, Thread* self) { 31 self->AssertThreadSuspensionIsAllowable(); 33 self); 35 CHECK(self->IsExceptionPending()); 39 DCHECK(!self->IsExceptionPending()); 25 FindMethodHelper(uint32_t method_idx, mirror::Object* this_object, mirror::ArtMethod* caller_method, Thread* self) argument
|
H A D | portable_throw_entrypoints.cc | 42 Thread* self = Thread::Current(); local 43 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); 53 Thread* self = Thread::Current(); local 54 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); 58 self->SetException(throw_location, exception); 62 extern "C" void* art_portable_get_and_clear_exception(Thread* self) 64 DCHECK(self->IsExceptionPending()); 66 mirror::Throwable* exception = self->GetException(NULL); 67 self->ClearException(); 74 Thread* self local [all...] |
/art/compiler/dex/quick/ |
H A D | dex_file_to_method_inliner_map.cc | 41 Thread* self = Thread::Current(); local 43 ReaderMutexLock mu(self, lock_); 58 WriterMutexLock mu(self, lock_); 66 locked_inliner->lock_.ExclusiveLock(self); // Acquire inliner's lock_ before releasing lock_. 69 locked_inliner->lock_.ExclusiveUnlock(self);
|
/art/runtime/entrypoints/interpreter/ |
H A D | interpreter_entrypoints.cc | 28 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh, argument 36 self->PushShadowFrame(shadow_frame); 37 StackHandleScope<1> hs(self); 40 self->PopShadowFrame(); 41 DCHECK(self->IsExceptionPending()); 44 self->PopShadowFrame(); 52 InvokeWithShadowFrame(self, shadow_frame, arg_offset, mh, result); 54 method->Invoke(self, shadow_frame->GetVRegArgs(arg_offset),
|
/art/runtime/gc/allocator/ |
H A D | rosalloc-inl.h | 27 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated) { argument 29 return AllocLargeObject(self, size, bytes_allocated); 33 m = AllocFromRun(self, size, bytes_allocated); 35 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated);
|
/art/runtime/ |
H A D | handle_scope-inl.h | 28 inline StackHandleScope<kNumReferences>::StackHandleScope(Thread* self, mirror::Object* fill_value) argument 29 : HandleScope(kNumReferences), self_(self), pos_(0) {
|
H A D | object_lock.cc | 25 ObjectLock<T>::ObjectLock(Thread* self, Handle<T> object) : self_(self), obj_(object) { argument
|
H A D | barrier.cc | 30 void Barrier::Pass(Thread* self) { argument 31 MutexLock mu(self, lock_); 32 SetCountLocked(self, count_ - 1); 35 void Barrier::Wait(Thread* self) { argument 36 Increment(self, -1); 39 void Barrier::Init(Thread* self, int count) { argument 40 MutexLock mu(self, lock_); 41 SetCountLocked(self, count); 44 void Barrier::Increment(Thread* self, int delta) { argument 45 MutexLock mu(self, lock 60 Increment(Thread* self, int delta, uint32_t timeout_ms) argument 79 SetCountLocked(Thread* self, int count) argument [all...] |
H A D | monitor_pool_test.cc | 39 static void VerifyMonitor(Monitor* mon, Thread* self) { argument 43 EXPECT_EQ(MonitorPool::ComputeMonitorId(mon, self), mon->GetMonitorId()); 58 Thread* self = Thread::Current(); local 59 ScopedObjectAccess soa(self); 74 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, static_cast<int32_t>(i)); 77 VerifyMonitor(mon, self); 85 VerifyMonitor(mon, self); 87 MonitorPool::ReleaseMonitor(self, mon); 97 Monitor* mon = MonitorPool::CreateMonitor(self, sel [all...] |
H A D | monitor_pool.cc | 91 Monitor* MonitorPool::CreateMonitorInPool(Thread* self, Thread* owner, mirror::Object* obj, 95 MutexLock mu(self, *Locks::allocated_monitor_ids_lock_); 110 Monitor* monitor = new(mon_uninitialized) Monitor(self, owner, obj, hash_code, id); 115 void MonitorPool::ReleaseMonitorToPool(Thread* self, Monitor* monitor) { argument 117 MutexLock mu(self, *Locks::allocated_monitor_ids_lock_); 134 void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) { argument 136 ReleaseMonitorToPool(self, mon);
|
H A D | thread_pool_test.cc | 31 void Run(Thread* self) { argument 33 LOG(INFO) << "Running: " << *self; 62 Thread* self = Thread::Current(); local 67 thread_pool.AddTask(self, new CountTask(&count)); 69 thread_pool.StartWorkers(self); 71 thread_pool.Wait(self, true, false); 77 Thread* self = Thread::Current(); local 82 thread_pool.AddTask(self, new CountTask(&count)); 88 thread_pool.StartWorkers(self); 90 thread_pool.StopWorkers(self); 112 Run(Thread* self) argument 133 Thread* self = Thread::Current(); local [all...] |
/art/compiler/utils/ |
H A D | dedupe_set_test.cc | 40 Thread* self = Thread::Current(); local 52 array1 = deduplicator.Add(self, test1); 64 array2 = deduplicator.Add(self, test1); 76 array3 = deduplicator.Add(self, test1);
|
/art/runtime/gc/space/ |
H A D | dlmalloc_space-inl.h | 28 inline mirror::Object* DlMallocSpace::AllocNonvirtual(Thread* self, size_t num_bytes, argument 33 MutexLock mu(self, lock_); 34 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size); 52 inline mirror::Object* DlMallocSpace::AllocWithoutGrowthLocked(Thread* /*self*/, size_t num_bytes,
|
H A D | bump_pointer_space-inl.h | 39 inline mirror::Object* BumpPointerSpace::AllocThreadUnsafe(Thread* self, size_t num_bytes, argument 42 Locks::mutator_lock_->AssertExclusiveHeld(self);
|
H A D | rosalloc_space-inl.h | 50 inline mirror::Object* RosAllocSpace::AllocCommon(Thread* self, size_t num_bytes, argument 54 Locks::mutator_lock_->AssertExclusiveHeld(self); 57 rosalloc_->Alloc<kThreadSafe>(self, num_bytes, &rosalloc_size));
|
H A D | rosalloc_space.h | 49 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 51 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 53 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size); 55 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, 58 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size); 63 size_t Free(Thread* self, mirror::Object* ptr) OVERRIDE 65 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) OVERRIDE 68 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, argument 71 return AllocCommon(self, num_bytes, bytes_allocated, usable_size); 73 mirror::Object* AllocNonvirtualThreadUnsafe(Thread* self, size_ argument [all...] |
/art/runtime/mirror/ |
H A D | string-inl.h | 62 Thread* self = Thread::Current(); local 63 ThrowLocation throw_location = self->GetCurrentLocationForThrow(); 64 self->ThrowNewExceptionF(throw_location, "Ljava/lang/StringIndexOutOfBoundsException;",
|
H A D | array.cc | 43 static Array* RecursiveCreateMultiArray(Thread* self, 48 StackHandleScope<1> hs(self); 51 Array::Alloc<true>(self, array_class.Get(), array_length, array_class->GetComponentSize(), 54 CHECK(self->IsExceptionPending()); 60 StackHandleScope<1> hs(self); 62 Array* sub_array = RecursiveCreateMultiArray(self, h_component_type, 65 CHECK(self->IsExceptionPending()); 75 Array* Array::CreateMultiArray(Thread* self, Handle<Class> element_class, argument 96 StackHandleScope<1> hs(self); 98 hs.NewHandle(class_linker->FindArrayClass(self, [all...] |
H A D | stack_trace_element.cc | 42 StackTraceElement* StackTraceElement::Alloc(Thread* self, Handle<String> declaring_class, argument 46 down_cast<StackTraceElement*>(GetStackTraceElement()->AllocObject(self));
|
/art/runtime/entrypoints/quick/ |
H A D | quick_jni_entrypoints.cc | 31 extern uint32_t JniMethodStart(Thread* self) { argument 32 JNIEnvExt* env = self->GetJniEnv(); 36 mirror::ArtMethod* native_method = self->GetManagedStack()->GetTopQuickFrame()->AsMirrorPtr(); 39 self->TransitionFromRunnableToSuspended(kNative); 44 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) { argument 45 self->DecodeJObject(to_lock)->MonitorEnter(self); 46 return JniMethodStart(self); 50 static void GoToRunnable(Thread* self) NO_THREAD_SAFETY_ANALYSIS { 51 mirror::ArtMethod* native_method = self 59 CheckSuspend(self); variable 71 JniMethodEnd(uint32_t saved_local_ref_cookie, Thread* self) argument 77 JniMethodEndSynchronized(uint32_t saved_local_ref_cookie, jobject locked, Thread* self) argument 84 JniMethodEndWithReference(jobject result, uint32_t saved_local_ref_cookie, Thread* self) argument 100 JniMethodEndWithReferenceSynchronized(jobject result, uint32_t saved_local_ref_cookie, jobject locked, Thread* self) argument [all...] |
/art/compiler/dex/ |
H A D | verification_results.cc | 42 Thread* self = Thread::Current(); local 44 WriterMutexLock mu(self, verified_methods_lock_);
|
/art/runtime/arch/arm64/ |
H A D | fault_handler_arm64.cc | 46 Thread* self = Thread::Current(); local 47 CHECK(self != nullptr); // This will cause a SIGABRT if self is nullptr. 49 sc->regs[0] = reinterpret_cast<uintptr_t>(*self->GetNestedSignalState());
|