/art/compiler/utils/ |
D | dedupe_set_test.cc | 55 Thread* self = Thread::Current(); in TEST() local 66 array1 = deduplicator.Add(self, test1); in TEST() 75 array2 = deduplicator.Add(self, test2); in TEST() 84 array3 = deduplicator.Add(self, test3); in TEST()
|
/art/runtime/mirror/ |
D | method_handles_lookup.h | 38 static ObjPtr<mirror::MethodHandlesLookup> Create(Thread* const self, Handle<Class> lookup_class) 42 static ObjPtr<mirror::MethodHandlesLookup> GetDefault(Thread* const self) 46 ObjPtr<mirror::MethodHandle> FindConstructor(Thread* const self,
|
D | array-alloc-inl.h | 119 inline ObjPtr<Array> Array::Alloc(Thread* self, in Alloc() argument 136 self->ThrowOutOfMemoryError(android::base::StringPrintf("%s of length %d would overflow", in Alloc() 148 self, array_class, size, allocator_type, visitor)); in Alloc() 155 self, array_class, size, allocator_type, visitor)); in Alloc() 170 inline ObjPtr<PrimitiveArray<T>> PrimitiveArray<T>::AllocateAndFill(Thread* self, in AllocateAndFill() argument 173 StackHandleScope<1> hs(self); in AllocateAndFill() 174 Handle<PrimitiveArray<T>> arr(hs.NewHandle(PrimitiveArray<T>::Alloc(self, length))); in AllocateAndFill()
|
D | string.cc | 80 ObjPtr<String> String::DoReplace(Thread* self, Handle<String> src, uint16_t old_c, uint16_t new_c) { in DoReplace() argument 92 ObjPtr<String> string = Alloc(self, length_with_flag, allocator_type, visitor); in DoReplace() 122 ObjPtr<String> String::AllocFromStrings(Thread* self, in AllocFromStrings() argument 133 ObjPtr<String> new_string = Alloc(self, length_with_flag, allocator_type, visitor); in AllocFromStrings() 161 ObjPtr<String> String::AllocFromUtf16(Thread* self, in AllocFromUtf16() argument 170 ObjPtr<String> string = Alloc(self, length_with_flag, allocator_type, visitor); in AllocFromUtf16() 185 ObjPtr<String> String::AllocFromModifiedUtf8(Thread* self, const char* utf) { in AllocFromModifiedUtf8() argument 189 return AllocFromModifiedUtf8(self, char_count, utf, byte_count); in AllocFromModifiedUtf8() 192 ObjPtr<String> String::AllocFromModifiedUtf8(Thread* self, in AllocFromModifiedUtf8() argument 195 return AllocFromModifiedUtf8(self, utf16_length, utf8_data_in, strlen(utf8_data_in)); in AllocFromModifiedUtf8() [all …]
|
D | emulated_stack_frame.h | 40 Thread* self, 49 Thread* self, 55 void GetReturnValue(Thread* self, JValue* value) REQUIRES_SHARED(Locks::mutator_lock_); 58 void SetReturnValue(Thread* self, const JValue& value) REQUIRES_SHARED(Locks::mutator_lock_);
|
D | method_handle_impl.cc | 45 ObjPtr<mirror::MethodHandleImpl> MethodHandleImpl::Create(Thread* const self, in Create() argument 50 StackHandleScope<1> hs(self); in Create() 52 GetClassRoot<MethodHandleImpl>()->AllocObject(self)))); in Create()
|
/art/runtime/ |
D | thread-inl.h | 68 Thread* self = Thread::Current(); in CheckEmptyCheckpointFromWeakRefAccess() local 69 DCHECK_EQ(self, this); in CheckEmptyCheckpointFromWeakRefAccess() 76 BaseMutex* held_mutex = self->GetHeldMutex(static_cast<LockLevel>(i)); in CheckEmptyCheckpointFromWeakRefAccess() 345 Thread* self = Thread::Current(); in RevokeThreadLocalAllocationStack() local 346 DCHECK(this == self || IsSuspended() || GetState() == kWaitingPerformingGc) in RevokeThreadLocalAllocationStack() 347 << GetState() << " thread " << this << " self " << self; in RevokeThreadLocalAllocationStack() 359 inline bool Thread::ModifySuspendCount(Thread* self, in ModifySuspendCount() argument 363 if (delta > 0 && ((kUseReadBarrier && this != self) || suspend_barrier != nullptr)) { in ModifySuspendCount() 367 if (LIKELY(ModifySuspendCountInternal(self, delta, suspend_barrier, reason))) { in ModifySuspendCount() 380 Locks::thread_suspend_count_lock_->ExclusiveUnlock(self); in ModifySuspendCount() [all …]
|
D | monitor-inl.h | 33 void Monitor::CheckLockOwnerRequest(Thread* self) { in CheckLockOwnerRequest() argument 34 DCHECK(self != nullptr); in CheckLockOwnerRequest() 36 if (request_thread == self) { in CheckLockOwnerRequest() 37 SetLockingMethod(self); in CheckLockOwnerRequest()
|
D | instrumentation_test.cc | 137 void ExceptionHandled(Thread* self ATTRIBUTE_UNUSED, in ExceptionHandled() 269 void DeoptimizeMethod(Thread* self, ArtMethod* method, bool enable_deoptimization) in DeoptimizeMethod() argument 273 ScopedThreadSuspension sts(self, kSuspended); in DeoptimizeMethod() 274 gc::ScopedGCCriticalSection gcs(self, in DeoptimizeMethod() 284 void UndeoptimizeMethod(Thread* self, ArtMethod* method, in UndeoptimizeMethod() argument 289 ScopedThreadSuspension sts(self, kSuspended); in UndeoptimizeMethod() 290 gc::ScopedGCCriticalSection gcs(self, in UndeoptimizeMethod() 300 void DeoptimizeEverything(Thread* self, const char* key, bool enable_deoptimization) in DeoptimizeEverything() argument 304 ScopedThreadSuspension sts(self, kSuspended); in DeoptimizeEverything() 305 gc::ScopedGCCriticalSection gcs(self, in DeoptimizeEverything() [all …]
|
D | monitor_android.cc | 33 void Monitor::LogContentionEvent(Thread* self, in LogContentionEvent() argument 63 self->GetThreadName(thread_name); in LogContentionEvent() 73 ArtMethod* m = self->GetCurrentMethod(&pc); in LogContentionEvent()
|
/art/runtime/jit/ |
D | profiling_info_test.cc | 49 Thread* self = Thread::Current(); in GetVirtualMethods() local 50 ScopedObjectAccess soa(self); in GetVirtualMethods() 51 StackHandleScope<1> hs(self); in GetVirtualMethods() 53 hs.NewHandle(self->DecodeJObject(class_loader)->AsClassLoader())); in GetVirtualMethods() 54 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in GetVirtualMethods() 202 Thread* self = Thread::Current(); in TEST_F() local 205 ScopedObjectAccess soa(self); in TEST_F() 222 ScopedObjectAccess soa(self); in TEST_F() 243 ScopedObjectAccess soa(self); in TEST_F() 260 Thread* self = Thread::Current(); in TEST_F() local [all …]
|
D | profile_saver.cc | 115 Thread* self = Thread::Current(); in NotifyStartupCompleted() local 116 MutexLock mu(self, *Locks::profiler_lock_); in NotifyStartupCompleted() 120 MutexLock mu2(self, instance_->wait_lock_); in NotifyStartupCompleted() 121 instance_->period_condition_.Signal(self); in NotifyStartupCompleted() 125 Thread* self = Thread::Current(); in Run() local 129 Locks::profiler_lock_->ExclusiveUnlock(self); in Run() 137 MutexLock mu(self, wait_lock_); in Run() 144 period_condition_.TimedWait(self, NsToMs(end_time - current_time), 0); in Run() 159 while (!ShuttingDown(self)) { in Run() 164 MutexLock mu(self, wait_lock_); in Run() [all …]
|
/art/openjdkjvmti/ |
D | ti_class_definition.cc | 118 jvmtiError ArtClassDefinition::InitCommon(art::Thread* self, jclass klass) { in InitCommon() argument 119 art::ScopedObjectAccess soa(self); in InitCommon() 242 art::Thread* self = art::Thread::Current(); in InitWithDex() local 270 const art::DexFile& cur_dex = self->DecodeJObject(klass_)->AsClass()->GetDexFile(); in InitWithDex() 294 const art::DexFile& cur_dex = self->DecodeJObject(klass_)->AsClass()->GetDexFile(); in InitWithDex() 306 jvmtiError ArtClassDefinition::Init(art::Thread* self, jclass klass) { in Init() argument 307 jvmtiError res = InitCommon(self, klass); in Init() 311 art::ScopedObjectAccess soa(self); in Init() 312 art::StackHandleScope<1> hs(self); in Init() 313 art::Handle<art::mirror::Class> m_klass(hs.NewHandle(self->DecodeJObject(klass)->AsClass())); in Init() [all …]
|
D | ti_class.cc | 89 static std::unique_ptr<const art::DexFile> MakeSingleDexFile(art::Thread* self, in MakeSingleDexFile() argument 101 self->ThrowOutOfMemoryError(StringPrintf( in MakeSingleDexFile() 192 art::Thread* self = art::Thread::Current(); in ClassPreDefine() local 198 event_handler, self, &def); in ClassPreDefine() 209 event_handler, self, &def); in ClassPreDefine() 212 event_handler, self, &def); in ClassPreDefine() 216 art::StackHandleScope<2> hs(self); in ClassPreDefine() 220 hs.NewHandle(art::mirror::Class::EnsureExtDataPresent(klass, self)); in ClassPreDefine() 227 self->AssertPendingOOMException(); in ClassPreDefine() 242 self, in ClassPreDefine() [all …]
|
D | ti_thread.h | 62 explicit ScopedNoUserCodeSuspension(art::Thread* self) 152 static void SuspendCheck(art::Thread* self) 157 static bool WouldSuspendForUserCodeLocked(art::Thread* self) 163 static bool WouldSuspendForUserCode(art::Thread* self) 182 static jvmtiError SuspendSelf(art::Thread* self) 184 static jvmtiError SuspendOther(art::Thread* self, jthread target_jthread)
|
D | ti_heap.cc | 404 static void VisitStatic(art::Thread* self, art::ObjPtr<art::mirror::Class> klass, T& visitor) in VisitStatic() 407 rv.Visit(self, klass, visitor); in VisitStatic() 410 void Visit(art::Thread* self, art::ObjPtr<art::mirror::Class> klass, T& visitor) in Visit() 415 Visit(self, klass->GetSuperClass(), visitor); in Visit() 419 art::mirror::Class::GetDirectInterface(self, klass, i); in Visit() 421 VisitInterface(self, inf_klass, visitor); in Visit() 425 void VisitInterface(art::Thread* self, art::ObjPtr<art::mirror::Class> inf_klass, T& visitor) in VisitInterface() 440 art::mirror::Class::GetDirectInterface(self, inf_klass, i); in VisitInterface() 442 VisitInterface(self, super_inf_klass, visitor); in VisitInterface() 695 art::Thread* self = art::Thread::Current(); in IterateOverInstancesOfClass() local [all …]
|
D | ti_ddms.cc | 63 art::Thread* self = art::Thread::Current(); in HandleChunk() local 64 art::ScopedThreadStateChange stcs(self, art::ThreadState::kNative); in HandleChunk() 68 if (!art::Dbg::DdmHandleChunk(self->GetJniEnv(), in HandleChunk()
|
/art/runtime/verifier/ |
D | method_verifier_test.cc | 40 Thread* self = Thread::Current(); in VerifyClass() local 41 ObjPtr<mirror::Class> klass = class_linker_->FindSystemClass(self, descriptor.c_str()); in VerifyClass() 46 self, klass, nullptr, true, HardFailLogMode::kLogWarning, /* api_level= */ 0u, &error_msg); in VerifyClass()
|
/art/runtime/gc/ |
D | heap.h | 235 mirror::Object* AllocObject(Thread* self, in AllocObject() argument 245 return AllocObjectWithAllocator<kInstrumented>(self, in AllocObject() 253 mirror::Object* AllocNonMovableObject(Thread* self, in AllocNonMovableObject() argument 263 return AllocObjectWithAllocator<kInstrumented>(self, in AllocNonMovableObject() 271 ALWAYS_INLINE mirror::Object* AllocObjectWithAllocator(Thread* self, 365 void IncrementDisableMovingGC(Thread* self) REQUIRES(!*gc_complete_lock_); 366 void DecrementDisableMovingGC(Thread* self) REQUIRES(!*gc_complete_lock_); 369 void IncrementDisableThreadFlip(Thread* self) REQUIRES(!*thread_flip_lock_); 370 void DecrementDisableThreadFlip(Thread* self) REQUIRES(!*thread_flip_lock_); 371 void ThreadFlipBegin(Thread* self) REQUIRES(!*thread_flip_lock_); [all …]
|
D | system_weak_test.cc | 87 Thread* self = Thread::Current(); in Get() local 88 MutexLock mu(self, allow_disallow_lock_); in Get() 89 Wait(self); in Get() 97 Thread* self = Thread::Current(); in Set() local 98 MutexLock mu(self, allow_disallow_lock_); in Set() 99 Wait(self); in Set()
|
/art/dex2oat/linker/ |
D | image_test.cc | 118 Thread* self = Thread::Current(); in TEST_F() local 119 ScopedObjectAccess soa(self); in TEST_F() 124 class_linker_->LookupClass(self, "LIface;", /*class_loader=*/ nullptr); in TEST_F() 134 class_linker_->LookupClass(self, "LImpl;", /*class_loader=*/ nullptr); in TEST_F() 145 class_linker_->LookupClass(self, "Ljava/lang/Iterable;", /*class_loader=*/ nullptr); in TEST_F() 157 class_linker_->LookupClass(self, "LIterableBase;", /*class_loader=*/ nullptr); in TEST_F()
|
/art/dex2oat/driver/ |
D | compiler_driver_test.cc | 237 Thread* self = Thread::Current(); in CheckCompiledMethods() local 238 ScopedObjectAccess soa(self); in CheckCompiledMethods() 239 StackHandleScope<1> hs(self); in CheckCompiledMethods() 242 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in CheckCompiledMethods() 266 Thread* self = Thread::Current(); in TEST_F() local 269 ScopedObjectAccess soa(self); in TEST_F() 298 Thread* self = Thread::Current(); in CheckVerifiedClass() local 299 ScopedObjectAccess soa(self); in CheckVerifiedClass() 300 StackHandleScope<1> hs(self); in CheckVerifiedClass() 303 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in CheckVerifiedClass() [all …]
|
D | compiler_driver.cc | 349 Thread* self, const CompilerDriver& driver, Handle<mirror::ClassLoader> class_loader, in GetDexToDexCompilationLevel() argument 362 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationLevel() 364 CHECK(self->IsExceptionPending()); in GetDexToDexCompilationLevel() 365 self->ClearException(); in GetDexToDexCompilationLevel() 391 Thread* self, in GetDexToDexCompilationLevel() argument 396 ScopedObjectAccess soa(self); in GetDexToDexCompilationLevel() 400 return GetDexToDexCompilationLevel(self, driver, class_loader, dex_file, class_def); in GetDexToDexCompilationLevel() 418 Thread* self, in CompileMethodHarness() argument 435 compiled_method = compile_fn(self, in CompileMethodHarness() 459 if (self->IsExceptionPending()) { in CompileMethodHarness() [all …]
|
/art/runtime/gc/space/ |
D | dlmalloc_space-inl.h | 28 inline mirror::Object* DlMallocSpace::AllocNonvirtual(Thread* self, size_t num_bytes, in AllocNonvirtual() argument 34 MutexLock mu(self, lock_); in AllocNonvirtual() 35 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
|
D | dlmalloc_space.cc | 167 mirror::Object* DlMallocSpace::AllocWithGrowth(Thread* self, size_t num_bytes, in AllocWithGrowth() argument 172 MutexLock mu(self, lock_); in AllocWithGrowth() 177 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth() 226 size_t DlMallocSpace::Free(Thread* self, mirror::Object* ptr) { in Free() argument 227 MutexLock mu(self, lock_); in Free() 240 size_t DlMallocSpace::FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument 256 MutexLock mu(self, lock_); in FreeList() 277 MutexLock mu(self, lock_); in FreeList() 364 Thread* const self = Thread::Current(); in LogFragmentationAllocFailure() local 369 Locks::mutator_lock_->AssertSharedHeld(self); in LogFragmentationAllocFailure() [all …]
|