/art/adbconnection/ |
D | adbconnection.cc | 174 art::Thread* self = art::Thread::Current(); in ~AdbConnectionState() local 175 if (self != nullptr) { in ~AdbConnectionState() 176 art::ScopedObjectAccess soa(self); in ~AdbConnectionState() 205 art::Thread* self = art::Thread::Attach(kAdbConnectionThreadName, in CallbackFunction() local 208 CHECK(self != nullptr) << "threads_being_born_ should have ensured thread could be attached."; in CallbackFunction() 212 art::ScopedObjectAccess soa(self); in CallbackFunction() 213 self->SetThreadName(kAdbConnectionThreadName); in CallbackFunction() 217 JNIEnv* env = self->GetJniEnv(); in CallbackFunction() 223 art::MutexLock mu(self, *art::Locks::runtime_shutdown_lock_); in CallbackFunction() 226 data->this_->RunPollLoop(self); in CallbackFunction() [all …]
|
/art/runtime/entrypoints/ |
D | entrypoint_utils.h | 56 Thread* self, 65 Thread* self, 74 Thread* self, 96 Thread* self, 105 Thread* self, 134 Thread* self, 143 Thread* self) 163 Thread* self, 178 void CheckReferenceResult(Handle<mirror::Object> o, Thread* self) 207 CallerAndOuterMethod GetCalleeSaveMethodCallerAndOuterMethod(Thread* self, CalleeSaveType type) [all …]
|
/art/openjdkjvmti/ |
D | deopt_manager.h | 82 void DumpDeoptInfo(art::Thread* self, std::ostream& stream); 141 void WaitForDeoptimizationToFinish(art::Thread* self) 144 void WaitForDeoptimizationToFinishLocked(art::Thread* self) 147 void AddDeoptimizeAllMethodsLocked(art::Thread* self) 151 void RemoveDeoptimizeAllMethodsLocked(art::Thread* self) 155 void PerformGlobalDeoptimization(art::Thread* self) 159 void PerformGlobalUndeoptimization(art::Thread* self) 163 void PerformLimitedDeoptimization(art::Thread* self, art::ArtMethod* method) 167 void PerformLimitedUndeoptimization(art::Thread* self, art::ArtMethod* method)
|
D | ti_object.cc | 87 art::Thread* self = art::Thread::Current(); in GetObjectMonitorUsage() local 88 ThreadUtil::SuspendCheck(self); in GetObjectMonitorUsage() 89 art::JNIEnvExt* jni = self->GetJniEnv(); in GetObjectMonitorUsage() 93 art::ScopedObjectAccess soa(self); // Now we know we have the shared lock. in GetObjectMonitorUsage() 94 art::ScopedThreadSuspension sts(self, art::kNative); in GetObjectMonitorUsage() 96 art::ObjPtr<art::mirror::Object> target(self->DecodeJObject(obj)); in GetObjectMonitorUsage() 110 art::MutexLock tll(self, *art::Locks::thread_list_lock_); in GetObjectMonitorUsage()
|
D | ti_class_loader.h | 60 static bool AddToClassLoader(art::Thread* self, 69 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader) 75 static inline void VisitDexFileObjects(art::Thread* self, 84 art::Thread* self, 94 art::Thread* self, art::Handle<art::mirror::ClassLoader> loader)
|
D | ti_class_loader-inl.h | 47 inline void ClassLoaderHelper::VisitDexFileObjects(art::Thread* self, in VisitDexFileObjects() argument 50 art::StackHandleScope<1> hs(self); in VisitDexFileObjects() 55 hs.NewHandle(GetDexElementList(self, loader))); in VisitDexFileObjects()
|
/art/runtime/ |
D | runtime.cc | 318 Thread* self = Thread::Current(); in ~Runtime() local 319 const bool attach_shutdown_thread = self == nullptr; in ~Runtime() 337 self = Thread::Current(); in ~Runtime() 396 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in ~Runtime() 399 shutdown_cond_->Wait(self); in ~Runtime() 404 CHECK(self != nullptr); in ~Runtime() 407 self->ClearException(); in ~Runtime() 408 self->GetJniEnv()->CallStaticVoidMethod(WellKnownClasses::java_lang_Daemons, in ~Runtime() 418 ScopedObjectAccess soa(self); in ~Runtime() 424 self = nullptr; in ~Runtime() [all …]
|
D | aot_class_linker.cc | 46 bool AotClassLinker::InitializeClass(Thread* self, in InitializeClass() argument 55 return ClassLinker::InitializeClass(self, klass, can_init_statics, can_init_parents); in InitializeClass() 64 runtime->AbortTransactionAndThrowAbortError(self, "Can't initialize " + klass->PrettyTypeOf() in InitializeClass() 73 runtime->AbortTransactionAndThrowAbortError(self, "Can't resolve " in InitializeClass() 82 runtime->AbortTransactionAndThrowAbortError(self, "Can't resolve " in InitializeClass() 91 bool success = ClassLinker::InitializeClass(self, klass, can_init_statics, can_init_parents); in InitializeClass() 100 DCHECK(self->IsExceptionPending()); in InitializeClass() 106 verifier::FailureKind AotClassLinker::PerformClassVerification(Thread* self, in PerformClassVerification() argument 128 return ClassLinker::PerformClassVerification(self, klass, log_level, error_msg); in PerformClassVerification()
|
D | debugger.cc | 208 Thread* self = Thread::Current(); in DdmHandleChunk() local 209 ScopedObjectAccess soa(self); in DdmHandleChunk() 211 << self->GetException()->Dump(); in DdmHandleChunk() 212 self->ClearException(); in DdmHandleChunk() 256 Thread* self = Thread::Current(); in DdmHandleChunk() local 257 ScopedObjectAccess soa(self); in DdmHandleChunk() 259 type) << std::endl << self->GetException()->Dump(); in DdmHandleChunk() 260 self->ClearException(); in DdmHandleChunk() 270 Thread* self = Thread::Current(); in DdmBroadcast() local 271 if (self->GetState() != kRunnable) { in DdmBroadcast() [all …]
|
D | oat_file_manager.cc | 224 Thread* const self = Thread::Current(); in OpenDexFilesFromOat() local 225 Locks::mutator_lock_->AssertNotHeld(self); in OpenDexFilesFromOat() 273 ScopedObjectAccess soa(self); in OpenDexFilesFromOat() 274 StackHandleScope<1> hs(self); in OpenDexFilesFromOat() 283 ScopedThreadSuspension sts(self, kSuspended); in OpenDexFilesFromOat() 284 gc::ScopedGCCriticalSection gcs(self, in OpenDexFilesFromOat() 311 ScopedThreadSuspension sts(self, kSuspended); in OpenDexFilesFromOat() 312 gc::ScopedGCCriticalSection gcs(self, in OpenDexFilesFromOat() 386 ScopedObjectAccess soa(self); in OpenDexFilesFromOat() 387 self->DumpJavaStack(out); in OpenDexFilesFromOat() [all …]
|
D | thread.cc | 128 extern "C" NO_RETURN void artDeoptimize(Thread* self); 593 Thread* self = reinterpret_cast<Thread*>(arg); in CreateCallback() local 596 LOG(ERROR) << "Thread attaching to non-existent runtime: " << *self; in CreateCallback() 610 CHECK(self->Init(runtime->GetThreadList(), runtime->GetJavaVM(), self->tlsPtr_.tmp_jni_env)); in CreateCallback() 611 self->tlsPtr_.tmp_jni_env = nullptr; in CreateCallback() 615 ScopedObjectAccess soa(self); in CreateCallback() 616 self->InitStringEntryPoints(); in CreateCallback() 619 CHECK(self->tlsPtr_.jpeer != nullptr); in CreateCallback() 620 self->tlsPtr_.opeer = soa.Decode<mirror::Object>(self->tlsPtr_.jpeer).Ptr(); in CreateCallback() 622 self->DeleteJPeer(self->GetJniEnv()); in CreateCallback() [all …]
|
/art/runtime/verifier/ |
D | class_verifier.h | 59 static FailureKind ReverifyClass(Thread* self, 66 static FailureKind VerifyClass(Thread* self, 74 static FailureKind VerifyClass(Thread* self, 93 static FailureKind CommonVerifyClass(Thread* self, 103 static FailureKind VerifyClass(Thread* self,
|
/art/runtime/mirror/ |
D | string.h | 116 static ObjPtr<String> DoReplace(Thread* self, Handle<String> src, uint16_t old_c, uint16_t new_c) 122 ALWAYS_INLINE static ObjPtr<String> AllocFromByteArray(Thread* self, 131 ALWAYS_INLINE static ObjPtr<String> AllocFromCharArray(Thread* self, 139 ALWAYS_INLINE static ObjPtr<String> AllocFromString(Thread* self, 147 ALWAYS_INLINE static ObjPtr<String> AllocEmptyString(Thread* self, 151 static ObjPtr<String> AllocFromStrings(Thread* self, 156 static ObjPtr<String> AllocFromUtf16(Thread* self, 161 static ObjPtr<String> AllocFromModifiedUtf8(Thread* self, const char* utf) 164 static ObjPtr<String> AllocFromModifiedUtf8(Thread* self, 170 static ObjPtr<String> AllocFromModifiedUtf8(Thread* self, [all …]
|
D | string-alloc-inl.h | 159 inline ObjPtr<String> String::Alloc(Thread* self, in Alloc() argument 186 self->ThrowOutOfMemoryError( in Alloc() 195 heap->AllocObjectWithAllocator<kIsInstrumented>(self, in Alloc() 203 inline ObjPtr<String> String::AllocEmptyString(Thread* self, gc::AllocatorType allocator_type) { in AllocEmptyString() argument 206 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocEmptyString() 210 inline ObjPtr<String> String::AllocFromByteArray(Thread* self, in AllocFromByteArray() argument 222 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromByteArray() 226 inline ObjPtr<String> String::AllocFromCharArray(Thread* self, in AllocFromCharArray() argument 237 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromCharArray() 241 inline ObjPtr<String> String::AllocFromString(Thread* self, in AllocFromString() argument [all …]
|
/art/runtime/gc/space/ |
D | dlmalloc_space.h | 56 mirror::Object* AllocWithGrowth(Thread* self, 62 mirror::Object* Alloc(Thread* self, in Alloc() argument 67 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc() 75 size_t Free(Thread* self, mirror::Object* ptr) override 79 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override 96 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, 168 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | memory_tool_malloc_space-inl.h | 93 Thread* self, in AllocWithGrowth() argument 101 void* obj_with_rdz = S::AllocWithGrowth(self, in AllocWithGrowth() 129 Thread* self, in Alloc() argument 137 void* obj_with_rdz = S::Alloc(self, in Alloc() 165 Thread* self, in AllocThreadUnsafe() argument 173 void* obj_with_rdz = S::AllocThreadUnsafe(self, in AllocThreadUnsafe() 224 kUseObjSizeForUsable>::Free(Thread* self, mirror::Object* ptr) { in Free() argument 241 return S::Free(self, reinterpret_cast<mirror::Object*>(obj_with_rdz)); in Free() 252 Thread* self, size_t num_ptrs, mirror::Object** ptrs) { in FreeList() argument 261 freed += Free(self, ptrs[i]); in FreeList()
|
D | large_object_space.h | 69 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override; 108 virtual bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const = 0; 112 virtual void SetAllLargeObjectsAsZygoteObjects(Thread* self, bool set_mark_bit) = 0; 158 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 161 size_t Free(Thread* self, mirror::Object* ptr) override REQUIRES(!lock_); 176 bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const override REQUIRES(!lock_); 177 void SetAllLargeObjectsAsZygoteObjects(Thread* self, bool set_mark_bit) override 194 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 197 size_t Free(Thread* self, mirror::Object* obj) override REQUIRES(!lock_); 220 bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const override; [all …]
|
/art/runtime/jit/ |
D | jit_code_cache.h | 198 Thread* self, 213 ProfilingInfo* NotifyCompilerUse(ArtMethod* method, Thread* self) 217 void DoneCompiling(ArtMethod* method, Thread* self, CompilationKind compilation_kind) 221 void DoneCompilerUse(ArtMethod* method, Thread* self) 243 bool Reserve(Thread* self, 261 bool Commit(Thread* self, 278 void Free(Thread* self, JitMemoryRegion* region, const uint8_t* code, const uint8_t* data) 286 void GarbageCollectCache(Thread* self) 309 void RemoveMethodsIn(Thread* self, const LinearAlloc& alloc) 319 ProfilingInfo* AddProfilingInfo(Thread* self, [all …]
|
/art/test/136-daemon-jni-shutdown/ |
D | daemon_jni_shutdown.cc | 58 Thread* const self = Thread::Current(); in Java_Main_destroyJavaVMAndExit() local 59 self->SetTopOfStack(nullptr); in Java_Main_destroyJavaVMAndExit() 60 self->SetTopOfShadowStack(nullptr); in Java_Main_destroyJavaVMAndExit()
|
/art/runtime/interpreter/ |
D | lock_count_data.h | 43 void AddMonitor(Thread* self, mirror::Object* obj) REQUIRES_SHARED(Locks::mutator_lock_); 48 void RemoveMonitorOrThrow(Thread* self, 54 bool CheckAllMonitorsReleasedOrThrow(Thread* self) REQUIRES_SHARED(Locks::mutator_lock_);
|
/art/runtime/entrypoints/quick/ |
D | quick_string_builder_append_entrypoints.cc | 26 Thread* self) { in artStringBuilderAppend() argument 27 return StringBuilderAppend::AppendF(format, args, self).Ptr(); in artStringBuilderAppend()
|
D | quick_fillarray_entrypoints.cc | 29 Thread* self) in artHandleFillArrayDataFromCode() argument 31 ScopedQuickEntrypointChecks sqec(self); in artHandleFillArrayDataFromCode()
|
/art/runtime/gc/ |
D | system_weak.h | 77 void Wait(Thread* self) in Wait() argument 82 (kUseReadBarrier && !self->GetWeakRefAccessEnabled()))) { in Wait() 85 self->CheckEmptyCheckpointFromWeakRefAccess(&allow_disallow_lock_); in Wait() 86 new_weak_condition_.WaitHoldingLocks(self); in Wait()
|
/art/runtime/gc/allocator/ |
D | rosalloc.cc | 130 void* RosAlloc::AllocPages(Thread* self, size_t num_pages, uint8_t page_map_type) { in AllocPages() argument 131 lock_.AssertHeld(self); in AllocPages() 310 size_t RosAlloc::FreePages(Thread* self, void* ptr, bool already_zero) { in FreePages() argument 311 lock_.AssertHeld(self); in FreePages() 462 void* RosAlloc::AllocLargeObject(Thread* self, size_t size, size_t* bytes_allocated, in AllocLargeObject() argument 470 MutexLock mu(self, lock_); in AllocLargeObject() 471 r = AllocPages(self, num_pages, kPageMapLargeObject); in AllocLargeObject() 499 size_t RosAlloc::FreeInternal(Thread* self, void* ptr) { in FreeInternal() argument 505 MutexLock mu(self, lock_); in FreeInternal() 514 return FreePages(self, ptr, false); in FreeInternal() [all …]
|
/art/tools/cpp-define-generator/ |
D | make_header_test.py | 45 def test_convert(self): argument 46 self.assertEqual(test_output.strip(), make_header.convert(test_input))
|