/art/runtime/base/ |
D | mutex_test.cc | 32 mu.AssertNotHeld(Thread::Current()); in AssertDepth() 34 mu.AssertHeld(Thread::Current()); in AssertDepth() 42 mu.Lock(Thread::Current()); in TEST_F() 44 mu.Unlock(Thread::Current()); in TEST_F() 52 ASSERT_TRUE(mu.TryLock(Thread::Current())); in TryLockUnlockTest() 54 mu.Unlock(Thread::Current()); in TryLockUnlockTest() 66 mu.Lock(Thread::Current()); in RecursiveLockUnlockTest() 68 mu.Lock(Thread::Current()); in RecursiveLockUnlockTest() 70 mu.Unlock(Thread::Current()); in RecursiveLockUnlockTest() 72 mu.Unlock(Thread::Current()); in RecursiveLockUnlockTest() [all …]
|
/art/runtime/ |
D | intern_table.cc | 38 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in Size() 43 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in StrongSize() 48 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in WeakSize() 57 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in VisitRoots() 94 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in SwapPostZygoteWithPreZygote() 100 Runtime* runtime = Runtime::Current(); in InsertStrong() 112 Runtime* runtime = Runtime::Current(); in InsertWeak() 125 Runtime* runtime = Runtime::Current(); in RemoveWeak() 134 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertStrongFromTransaction() 138 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertWeakFromTransaction() [all …]
|
D | signal_catcher.cc | 74 Thread* self = Thread::Current(); in SignalCatcher() 90 MutexLock mu(Thread::Current(), lock_); in SetHaltFlag() 95 MutexLock mu(Thread::Current(), lock_); in ShouldHalt() 105 ScopedThreadStateChange tsc(Thread::Current(), kWaitingForSignalCatcherOutput); in Output() 126 Runtime* runtime = Runtime::Current(); in HandleSigQuit() 133 Thread* self = Thread::Current(); in HandleSigQuit() 171 Runtime::Current()->GetHeap()->CollectGarbage(false); in HandleSigUsr1() 188 Runtime::Current()->DumpLockHolders(LOG(INFO)); in WaitForSignal() 198 Runtime* runtime = Runtime::Current(); in Run() 202 Thread* self = Thread::Current(); in Run()
|
D | field_helper.cc | 30 return Runtime::Current()->GetClassLinker()->FindSystemClass(Thread::Current(), in GetType() 37 type = Runtime::Current()->GetClassLinker()->ResolveType(field_id.type_idx_, field_.Get()); in GetType() 38 CHECK(type != nullptr || Thread::Current()->IsExceptionPending()); in GetType()
|
D | transaction_test.cc | 30 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 37 Runtime::Current()->EnterTransactionMode(&transaction); in TEST_F() 41 Runtime::Current()->ExitTransactionMode(); in TEST_F() 49 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 63 Runtime::Current()->EnterTransactionMode(&transaction); in TEST_F() 67 Runtime::Current()->ExitTransactionMode(); in TEST_F() 77 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 86 Runtime::Current()->EnterTransactionMode(&transaction); in TEST_F() 93 Runtime::Current()->GetHeap()->GetCurrentAllocator()))); in TEST_F() 96 Runtime::Current()->ExitTransactionMode(); in TEST_F() [all …]
|
D | thread_list.cc | 57 Thread* self = Thread::Current(); in ~ThreadList() 62 Runtime::Current()->DetachCurrentThread(); in ~ThreadList() 89 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in DumpNativeStacks() 99 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in DumpForSigQuit() 124 Thread* self = Thread::Current(); in DumpUnattachedThreads() 158 << "self: <<" << *Thread::Current(); in AssertThreadsAreSuspended() 167 Runtime* runtime = Runtime::Current(); in UnsafeLogFatalForThreadSuspendAllTimeout() 199 Thread* self = Thread::Current(); in RunCheckpoint() 277 Thread* self = Thread::Current(); in RunCheckpointOnRunnableThreads() 305 Thread* self = Thread::Current(); in SuspendAll() [all …]
|
D | runtime.cc | 165 Thread* self = Thread::Current(); in ~Runtime() 222 if (Runtime::Current() == NULL) { in Dump() 226 Thread* self = Thread::Current(); in Dump() 257 Runtime* runtime = Runtime::Current(); in DumpAllThreads() 281 MutexLock mu(Thread::Current(), *Locks::abort_lock_); in Abort() 292 if (Runtime::Current() != NULL && Runtime::Current()->abort_ != NULL) { in Abort() 294 Runtime::Current()->abort_(); in Abort() 321 ScopedThreadStateChange tsc(Thread::Current(), kNative); in CallExitHook() 349 if (Runtime::Current()->UseCompileTimeClassPath()) { in CreateSystemClassLoader() 353 ScopedObjectAccess soa(Thread::Current()); in CreateSystemClassLoader() [all …]
|
/art/runtime/native/ |
D | java_lang_Runtime.cc | 33 if (Runtime::Current()->IsExplicitGcDisabled()) { in Runtime_gc() 37 Runtime::Current()->GetHeap()->CollectGarbage(false); in Runtime_gc() 42 Runtime::Current()->CallExitHook(status); in Runtime_nativeExit() 73 JavaVMExt* vm = Runtime::Current()->GetJavaVM(); in Runtime_nativeLoad() 86 return Runtime::Current()->GetHeap()->GetMaxMemory(); in Runtime_maxMemory() 90 return Runtime::Current()->GetHeap()->GetTotalMemory(); in Runtime_totalMemory() 94 return Runtime::Current()->GetHeap()->GetFreeMemory(); in Runtime_freeMemory()
|
D | dalvik_system_ZygoteHooks.cc | 62 Runtime* runtime = Runtime::Current(); in EnableDebugFeatures() 68 Thread::Current()->GetJniEnv()->SetCheckJniEnabled(true); in EnableDebugFeatures() 88 Runtime* runtime = Runtime::Current(); in EnableDebugFeatures() 102 Runtime* runtime = Runtime::Current(); in ZygoteHooks_nativePreFork() 108 Thread* self = Thread::Current(); in ZygoteHooks_nativePreFork() 126 Runtime::Current()->DidForkFromZygote(env, action, isa_string.c_str()); in ZygoteHooks_nativePostForkChild() 128 Runtime::Current()->DidForkFromZygote(env, Runtime::NativeBridgeAction::kUnload, nullptr); in ZygoteHooks_nativePostForkChild()
|
D | dalvik_system_VMRuntime.cc | 46 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization() 50 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization() 71 Runtime* runtime = Runtime::Current(); in VMRuntime_newNonMovableArray() 95 Runtime* runtime = Runtime::Current(); in VMRuntime_newUnpaddedArray() 118 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf() 126 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit() 134 return toStringArray(env, Runtime::Current()->GetProperties()); in VMRuntime_properties() 147 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetBootClassPathString())); in VMRuntime_bootClassPath() 151 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetClassPathString())); in VMRuntime_classPath() 163 InstructionSet isa = Runtime::Current()->GetInstructionSet(); in VMRuntime_vmInstructionSet() [all …]
|
/art/runtime/gc/space/ |
D | bump_pointer_space.cc | 78 MutexLock mu(Thread::Current(), block_lock_); in Clear() 96 MutexLock mu(Thread::Current(), block_lock_); in RevokeThreadLocalBuffers() 101 Thread* self = Thread::Current(); in RevokeAllThreadLocalBuffers() 105 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in RevokeAllThreadLocalBuffers() 113 MutexLock mu(Thread::Current(), block_lock_); in AssertThreadLocalBuffersAreRevoked() 120 Thread* self = Thread::Current(); in AssertAllThreadLocalBuffersAreRevoked() 124 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in AssertAllThreadLocalBuffersAreRevoked() 158 MutexLock mu(Thread::Current(), block_lock_); in Walk() 211 Thread* self = Thread::Current(); in GetBytesAllocated() 214 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in GetBytesAllocated() [all …]
|
D | dlmalloc_space.cc | 67 if (Runtime::Current()->RunningOnValgrind()) { in CreateFromMemMap() 218 Heap* heap = Runtime::Current()->GetHeap(); in art_heap_morecore() 238 MutexLock mu(Thread::Current(), lock_); in Trim() 249 MutexLock mu(Thread::Current(), lock_); in Walk() 255 MutexLock mu(Thread::Current(), lock_); in GetFootprint() 260 MutexLock mu(Thread::Current(), lock_); in GetFootprintLimit() 265 MutexLock mu(Thread::Current(), lock_); in SetFootprintLimit() 278 MutexLock mu(Thread::Current(), lock_); in GetBytesAllocated() 285 MutexLock mu(Thread::Current(), lock_); in GetObjectsAllocated() 303 lock_.AssertHeld(Thread::Current()); in CheckMoreCoreForPrecondition() [all …]
|
/art/compiler/optimizing/ |
D | ssa_phi_elimination.cc | 24 HBasicBlock* block = it.Current(); in Run() 26 HPhi* phi = it.Current()->AsPhi(); in Run() 32 HUseListNode<HInstruction>* current = it.Current(); in Run() 48 HInstruction* input = it.Current(); in Run() 59 HBasicBlock* block = it.Current(); in Run() 75 HBasicBlock* block = it.Current(); in Run() 77 worklist_.Add(it.Current()->AsPhi()); in Run() 114 HUseListNode<HInstruction>* current = it.Current(); in Run()
|
/art/test/118-noimage-dex2oat/ |
D | noimage-dex2oat.cc | 28 ScopedObjectAccess soa(Thread::Current()); in hasOat() 32 Runtime::Current()->GetClassLinker()->FindOpenedOatDexFileForDexFile(dex_file); in hasOat() 38 return Runtime::Current()->GetHeap()->HasImageSpace(); in Java_Main_hasImage() 42 return Runtime::Current()->IsImageDex2OatEnabled(); in Java_Main_isImageDex2OatEnabled()
|
/art/runtime/entrypoints/quick/ |
D | quick_instrumentation_entrypoints.cc | 34 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in artInstrumentationMethodEntryFromCode() 41 DCHECK((result != Runtime::Current()->GetClassLinker()->GetQuickToInterpreterBridgeTrampoline()) in artInstrumentationMethodEntryFromCode() 42 || !Runtime::Current()->GetHeap()->HasImageSpace()); in artInstrumentationMethodEntryFromCode() 60 Runtime* runtime = Runtime::Current(); in artInstrumentationMethodExitFromCode() 68 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in artInstrumentationMethodExitFromCode()
|
/art/compiler/driver/ |
D | compiler_driver_test.cc | 44 Runtime::Current()->GetCompileTimeClassPath(class_loader), in CompileAll() 54 Thread::Current()->TransitionFromSuspendedToRunnable(); in EnsureCompiled() 57 env_ = Thread::Current()->GetJniEnv(); in EnsureCompiled() 70 = Runtime::Current()->GetCompileTimeClassPath(class_loader); in MakeAllExecutable() 79 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in MakeDexFileExecutable() 83 ScopedObjectAccess soa(Thread::Current()); in MakeDexFileExecutable() 108 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 157 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 180 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 181 Thread::Current()->ClearException(); in TEST_F()
|
D | compiler_driver.cc | 150 #define STATS_LOCK() MutexLock mu(Thread::Current(), stats_lock_) 385 CHECK(!Runtime::Current()->IsStarted()); in CompilerDriver() 409 return dedupe_code_.Add(Thread::Current(), code); in DeduplicateCode() 413 return dedupe_mapping_table_.Add(Thread::Current(), code); in DeduplicateMappingTable() 417 return dedupe_vmap_table_.Add(Thread::Current(), code); in DeduplicateVMapTable() 421 return dedupe_gc_map_.Add(Thread::Current(), code); in DeduplicateGCMap() 425 return dedupe_cfi_info_.Add(Thread::Current(), cfi_info); in DeduplicateCFIInfo() 429 Thread* self = Thread::Current(); in ~CompilerDriver() 509 DCHECK(!Runtime::Current()->IsStarted()); in CompileAll() 523 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in GetDexToDexCompilationlevel() [all …]
|
/art/runtime/entrypoints/portable/ |
D | portable_field_entrypoints.cc | 37 field = FindFieldFromCode<StaticPrimitiveWrite, true>(field_idx, referrer, Thread::Current(), in art_portable_set32_static_from_code() 57 field = FindFieldFromCode<StaticPrimitiveWrite, true>(field_idx, referrer, Thread::Current(), in art_portable_set64_static_from_code() 78 field = FindFieldFromCode<StaticObjectWrite, true>(field_idx, referrer, Thread::Current(), in art_portable_set_obj_static_from_code() 95 field = FindFieldFromCode<StaticPrimitiveRead, true>(field_idx, referrer, Thread::Current(), in art_portable_get32_static_from_code() 110 field = FindFieldFromCode<StaticPrimitiveRead, true>(field_idx, referrer, Thread::Current(), in art_portable_get64_static_from_code() 126 field = FindFieldFromCode<StaticObjectRead, true>(field_idx, referrer, Thread::Current(), in art_portable_get_obj_static_from_code() 144 field = FindFieldFromCode<InstancePrimitiveWrite, true>(field_idx, referrer, Thread::Current(), in art_portable_set32_instance_from_code() 164 field = FindFieldFromCode<InstancePrimitiveWrite, true>(field_idx, referrer, Thread::Current(), in art_portable_set64_instance_from_code() 186 field = FindFieldFromCode<InstanceObjectWrite, true>(field_idx, referrer, Thread::Current(), in art_portable_set_obj_instance_from_code() 204 field = FindFieldFromCode<InstancePrimitiveRead, true>(field_idx, referrer, Thread::Current(), in art_portable_get32_instance_from_code() [all …]
|
D | portable_throw_entrypoints.cc | 42 Thread* self = Thread::Current(); in art_portable_throw_null_pointer_exception_from_code() 48 ThrowStackOverflowError(Thread::Current()); in art_portable_throw_stack_overflow_from_code() 53 Thread* self = Thread::Current(); in art_portable_throw_exception_from_code() 74 Thread* self = Thread::Current(); // TODO: make an argument. in art_portable_find_catch_block_from_code() 116 Runtime::Current()->GetInstrumentation()->ExceptionCaughtEvent( in art_portable_find_catch_block_from_code()
|
/art/compiler/dex/ |
D | verification_results.cc | 42 Thread* self = Thread::Current(); in ~VerificationResults() 64 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ProcessVerifiedMethod() 82 ReaderMutexLock mu(Thread::Current(), verified_methods_lock_); in GetVerifiedMethod() 88 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in RemoveVerifiedMethod() 98 WriterMutexLock mu(Thread::Current(), rejected_classes_lock_); in AddRejectedClass() 105 ReaderMutexLock mu(Thread::Current(), rejected_classes_lock_); in IsClassRejected()
|
/art/runtime/jdwp/ |
D | object_registry.cc | 52 Thread* const self = Thread::Current(); in InternalAdd() 108 Thread* self = Thread::Current(); in Clear() 128 Thread* self = Thread::Current(); in InternalGet() 142 Thread* self = Thread::Current(); in GetJObject() 151 Thread* self = Thread::Current(); in DisableCollection() 159 Thread* self = Thread::Current(); in EnableCollection() 168 Thread* self = Thread::Current(); in Demote() 179 Thread* self = Thread::Current(); in Promote() 189 Thread* self = Thread::Current(); in IsCollected() 203 Thread* self = Thread::Current(); in DisposeObject()
|
/art/test/116-nodex2oat/ |
D | nodex2oat.cc | 28 ScopedObjectAccess soa(Thread::Current()); in hasOat() 32 Runtime::Current()->GetClassLinker()->FindOpenedOatDexFileForDexFile(dex_file); in hasOat() 42 return Runtime::Current()->IsDex2OatEnabled(); in Java_Main_isDex2OatEnabled()
|
/art/runtime/mirror/ |
D | object_test.cc | 60 Thread* self = Thread::Current(); in AssertString() 117 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 128 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 165 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 170 Runtime::Current()->GetHeap()->GetCurrentAllocator()))); in TEST_F() 176 Runtime::Current()->GetHeap()->GetCurrentAllocator())); in TEST_F() 182 Runtime::Current()->GetHeap()->GetCurrentAllocator())); in TEST_F() 188 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 193 Runtime::Current()->GetHeap()->GetCurrentAllocator(), true))); in TEST_F() 199 Runtime::Current()->GetHeap()->GetCurrentAllocator(), true)); in TEST_F() [all …]
|
D | art_method-inl.h | 192 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in AssertPcIsWithinQuickCode() 205 DCHECK(!Runtime::Current()->IsStarted()); in GetQuickOatCodeOffset() 212 DCHECK(!Runtime::Current()->IsStarted()); in GetPortableOatCodeOffset() 218 DCHECK(!Runtime::Current()->IsStarted()); in SetQuickOatCodeOffset() 224 DCHECK(!Runtime::Current()->IsStarted()); in SetPortableOatCodeOffset() 233 Runtime* runtime = Runtime::Current(); in GetQuickOatEntryPoint() 315 Runtime* runtime = Runtime::Current(); in IsCalleeSaveMethod() 327 bool result = this == Runtime::Current()->GetResolutionMethod(); in IsResolutionMethod() 334 bool result = this == Runtime::Current()->GetImtConflictMethod(); in IsImtConflictMethod() 342 bool result = this == Runtime::Current()->GetImtUnimplementedMethod(); in IsImtUnimplementedMethod() [all …]
|
/art/runtime/gc/ |
D | reference_queue.cc | 51 if (Runtime::Current()->IsActiveTransaction()) { in EnqueuePendingReference() 57 if (Runtime::Current()->IsActiveTransaction()) { in EnqueuePendingReference() 76 if (Runtime::Current()->IsActiveTransaction()) { in DequeuePendingReference() 83 if (Runtime::Current()->IsActiveTransaction()) { in DequeuePendingReference() 113 if (Runtime::Current()->IsActiveTransaction()) { in ClearWhiteReferences() 137 if (Runtime::Current()->IsActiveTransaction()) { in EnqueueFinalizerReferences()
|