/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); 37 return art_portable_jni_method_start(self); 40 static void PopLocalReferences(uint32_t saved_local_ref_cookie, Thread* self) { argument 41 JNIEnvExt* env = self->GetJniEnv(); 46 extern "C" void art_portable_jni_method_end(uint32_t saved_local_ref_cookie, Thread* self) [all...] |
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...] |
H A D | portable_thread_entrypoints.cc | 27 explicit ShadowFrameCopyVisitor(Thread* self) : StackVisitor(self, NULL), prev_frame_(NULL), argument 76 extern "C" void art_portable_test_suspend_from_code(Thread* self) 78 CheckSuspend(self); 81 ShadowFrameCopyVisitor visitor(self); 83 self->SetDeoptimizationShadowFrame(visitor.GetShadowFrameCopy()); 84 self->SetDeoptimizationReturnValue(JValue()); 85 self->SetException(ThrowLocation(), reinterpret_cast<mirror::Throwable*>(-1));
|
/art/runtime/entrypoints/interpreter/ |
H A D | interpreter_entrypoints.cc | 28 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh, argument 40 method->Invoke(self, arg_array.GetArray(), arg_array.GetNumBytes(), result, mh.GetShorty()[0]); 42 method->Invoke(self, shadow_frame->GetVRegArgs(arg_offset),
|
/art/compiler/utils/ |
H A D | dedupe_set_test.cc | 39 Thread* self = Thread::Current(); local 49 array1 = deduplicator.Add(self, test1); 60 array2 = deduplicator.Add(self, test1); 72 array3 = deduplicator.Add(self, test1);
|
H A D | dedupe_set.h | 54 Key* Add(Thread* self, const Key& key) { argument 57 MutexLock lock(self, lock_);
|
/art/runtime/ |
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 52 SetCountLocked(Thread* self, int count) argument [all...] |
H A D | sirt_ref.h | 29 SirtRef(Thread* self, T* object) : self_(self), sirt_(object) { argument
|
H A D | thread_pool_test.cc | 30 void Run(Thread* self) { argument 32 LOG(INFO) << "Running: " << *self; 61 Thread* self = Thread::Current(); local 66 thread_pool.AddTask(self, new CountTask(&count)); 68 thread_pool.StartWorkers(self); 70 thread_pool.Wait(self, true, false); 76 Thread* self = Thread::Current(); local 81 thread_pool.AddTask(self, new CountTask(&count)); 87 thread_pool.StartWorkers(self); 89 thread_pool.StopWorkers(self); 110 Run(Thread* self) argument 131 Thread* self = Thread::Current(); local [all...] |
H A D | barrier_test.cc | 37 void Run(Thread* self) { argument 38 LOG(INFO) << "Before barrier 1 " << *self; 40 barrier_->Wait(self); 42 LOG(INFO) << "Before barrier 2 " << *self; 43 barrier_->Wait(self); 45 LOG(INFO) << "After barrier 2 " << *self; 68 Thread* self = Thread::Current(); local 75 thread_pool.AddTask(self, new CheckWaitTask(&barrier, &count1, &count2, &count3)); 77 thread_pool.StartWorkers(self); 78 barrier.Increment(self, num_thread 104 Run(Thread* self) argument 123 Thread* self = Thread::Current(); local [all...] |
H A D | class_linker-inl.h | 97 inline mirror::ObjectArray<T>* ClassLinker::AllocObjectArray(Thread* self, size_t length) { argument 98 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length); 101 inline mirror::ObjectArray<mirror::Class>* ClassLinker::AllocClassArray(Thread* self, argument 103 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length); 106 inline mirror::ObjectArray<mirror::String>* ClassLinker::AllocStringArray(Thread* self, argument 108 return mirror::ObjectArray<mirror::String>::Alloc(self, GetClassRoot(kJavaLangStringArrayClass), 112 inline mirror::ObjectArray<mirror::ArtMethod>* ClassLinker::AllocArtMethodArray(Thread* self, argument 114 return mirror::ObjectArray<mirror::ArtMethod>::Alloc(self, 118 inline mirror::IfTable* ClassLinker::AllocIfTable(Thread* self, size_t ifcount) { argument 120 mirror::IfTable::Alloc(self, GetClassRoo 123 AllocArtFieldArray(Thread* self, size_t length) argument [all...] |
H A D | jni_internal.h | 97 jweak AddWeakGlobalReference(Thread* self, mirror::Object* obj) 99 void DeleteWeakGlobalRef(Thread* self, jweak obj) 102 mirror::Object* DecodeWeakGlobal(Thread* self, IndirectRef ref); 144 JNIEnvExt(Thread* self, JavaVMExt* vm); 162 return Offset(OFFSETOF_MEMBER(JNIEnvExt, self)); 165 Thread* const self; member in struct:art::JNIEnvExt
|
/art/runtime/entrypoints/jni/ |
H A D | jni_entrypoints.cc | 29 Thread* self = Thread::Current(); local 30 Locks::mutator_lock_->AssertNotHeld(self); // We come here as Native. 31 ScopedObjectAccess soa(self); 33 mirror::ArtMethod* method = self->GetCurrentMethod(NULL); 40 DCHECK(self->IsExceptionPending()); 44 method->RegisterNative(self, native_code); 58 extern "C" const void* artWorkAroundAppJniBugs(Thread* self, intptr_t* sp) 60 DCHECK(Thread::Current() == self); 72 mirror::ArtMethod* jni_method = self->GetCurrentMethod(NULL); 118 jni_method->RegisterNative(self, cod [all...] |
/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 self->TransitionFromRunnableToSuspended(kNative); 40 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) { argument 41 self->DecodeJObject(to_lock)->MonitorEnter(self); 42 return JniMethodStart(self); 45 static void PopLocalReferences(uint32_t saved_local_ref_cookie, Thread* self) { argument 46 JNIEnvExt* env = self->GetJniEnv(); 49 self 52 JniMethodEnd(uint32_t saved_local_ref_cookie, Thread* self) argument 58 JniMethodEndSynchronized(uint32_t saved_local_ref_cookie, jobject locked, Thread* self) argument 65 JniMethodEndWithReference(jobject result, uint32_t saved_local_ref_cookie, Thread* self) argument 80 JniMethodEndWithReferenceSynchronized(jobject result, uint32_t saved_local_ref_cookie, jobject locked, Thread* self) argument [all...] |
/art/runtime/gc/collector/ |
H A D | sticky_mark_sweep.cc | 62 void StickyMarkSweep::MarkThreadRoots(Thread* self) { argument 63 MarkRootsCheckpoint(self);
|
H A D | garbage_collector.cc | 83 Thread* self = Thread::Current(); local 85 ReaderMutexLock mu(self, *Locks::mutator_lock_); 104 ReaderMutexLock mu(self, *Locks::mutator_lock_);
|
/art/runtime/gc/space/ |
H A D | dlmalloc_space-inl.h | 26 inline mirror::Object* DlMallocSpace::AllocNonvirtual(Thread* self, size_t num_bytes, argument 30 MutexLock mu(self, lock_);
|
/art/runtime/mirror/ |
H A D | stack_trace_element.cc | 40 StackTraceElement* StackTraceElement::Alloc(Thread* self, argument 46 down_cast<StackTraceElement*>(GetStackTraceElement()->AllocObject(self));
|
H A D | object.cc | 40 Object* Object::Clone(Thread* self) { argument 48 SirtRef<Object> copy(self, heap->AllocObject(self, c, num_bytes));
|
H A D | object_array-inl.h | 32 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, Class* object_array_class, int32_t length) { argument 33 Array* array = Array::Alloc(self, object_array_class, length, sizeof(Object*)); 136 inline ObjectArray<T>* ObjectArray<T>::CopyOf(Thread* self, int32_t new_length) { argument 137 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length);
|
H A D | array.cc | 35 Array* Array::Alloc(Thread* self, Class* array_class, int32_t component_count, argument 48 self->ThrowOutOfMemoryError(StringPrintf("%s of length %d would overflow", 55 Array* array = down_cast<Array*>(heap->AllocObject(self, array_class, size)); 63 Array* Array::Alloc(Thread* self, Class* array_class, int32_t component_count) { argument 65 return Alloc(self, array_class, component_count, array_class->GetComponentSize()); 76 static Array* RecursiveCreateMultiArray(Thread* self, Class* array_class, int current_dimension, 80 SirtRef<Array> new_array(self, Array::Alloc(self, array_class, array_length)); 82 CHECK(self->IsExceptionPending()); 88 Array* sub_array = RecursiveCreateMultiArray(self, array_clas 100 CreateMultiArray(Thread* self, Class* element_class, IntArray* dimensions) argument 146 Alloc(Thread* self, size_t length) argument [all...] |
/art/compiler/dex/ |
H A D | arena_allocator.cc | 92 Thread* self = Thread::Current(); local 95 MutexLock lock(self, lock_); 109 Thread* self = Thread::Current(); local 111 MutexLock lock(self, lock_);
|
/art/runtime/base/ |
H A D | mutex-inl.h | 71 static inline uint64_t SafeGetTid(const Thread* self) { argument 72 if (self != NULL) { 73 return static_cast<uint64_t>(self->GetTid()); 91 inline void BaseMutex::RegisterAsLocked(Thread* self) { argument 92 if (UNLIKELY(self == NULL)) { 100 BaseMutex* held_mutex = self->GetHeldMutex(static_cast<LockLevel>(i)); 117 self->SetHeldMutex(level_, this); 121 inline void BaseMutex::RegisterAsUnlocked(Thread* self) { argument 122 if (UNLIKELY(self == NULL)) { 128 CHECK(self 134 SharedLock(Thread* self) argument 162 SharedUnlock(Thread* self) argument [all...] |
/art/runtime/jdwp/ |
H A D | object_registry.cc | 83 Thread* self = Thread::Current(); local 84 MutexLock mu(self, lock_); 89 Thread* self = Thread::Current(); local 90 MutexLock mu(self, lock_); 94 JNIEnv* env = self->GetJniEnv(); 110 Thread* self = Thread::Current(); local 111 MutexLock mu(self, lock_); 117 return self->DecodeJObject(entry.jni_reference); 121 Thread* self = Thread::Current(); local 122 MutexLock mu(self, lock 130 Thread* self = Thread::Current(); local 140 Thread* self = Thread::Current(); local 151 Thread* self = Thread::Current(); local 162 Thread* self = Thread::Current(); local 172 Thread* self = Thread::Current(); local 189 Thread* self = Thread::Current(); local [all...] |