Home
last modified time | relevance | path

Searched refs:Current (Results 1 – 25 of 254) sorted by relevance

1234567891011

/art/runtime/base/
Dmutex_test.cc32 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/
Dintern_table.cc39 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in Size()
44 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in StrongSize()
49 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in WeakSize()
58 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in VisitRoots()
95 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in SwapPostZygoteWithPreZygote()
101 Runtime* runtime = Runtime::Current(); in InsertStrong()
113 Runtime* runtime = Runtime::Current(); in InsertWeak()
126 Runtime* runtime = Runtime::Current(); in RemoveWeak()
135 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertStrongFromTransaction()
139 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertWeakFromTransaction()
[all …]
Dsignal_catcher.cc77 Thread* self = Thread::Current(); in SignalCatcher()
93 MutexLock mu(Thread::Current(), lock_); in SetHaltFlag()
98 MutexLock mu(Thread::Current(), lock_); in ShouldHalt()
108 ScopedThreadStateChange tsc(Thread::Current(), kWaitingForSignalCatcherOutput); in Output()
129 Runtime* runtime = Runtime::Current(); in HandleSigQuit()
158 Runtime::Current()->GetHeap()->CollectGarbage(false); in HandleSigUsr1()
175 Runtime::Current()->DumpLockHolders(LOG(INFO)); in WaitForSignal()
185 Runtime* runtime = Runtime::Current(); in Run()
189 Thread* self = Thread::Current(); in Run()
Dart_field.cc39 if (kIsDebugBuild && Runtime::Current()->IsAotCompiler() && in SetOffset()
40 Runtime::Current()->IsCompilingBootImage()) { in SetOffset()
76 return Runtime::Current()->GetClassLinker()->FindSystemClass(Thread::Current(), descriptor); in ProxyFindSystemClass()
80 return Runtime::Current()->GetClassLinker()->ResolveType(type_idx, this); in ResolveGetType()
86 return Runtime::Current()->GetClassLinker()->ResolveString( in ResolveGetStringName()
Djava_vm_ext.cc71 Thread* self = Thread::Current(); in ~SharedLibrary()
91 Thread* self = Thread::Current(); in CheckOnLoadResult()
116 Thread* self = Thread::Current(); in SetResult()
218 ScopedObjectAccessUnchecked soa(Thread::Current()); in FindNativeMethod()
277 if (vm == nullptr || Thread::Current() == nullptr) { in DetachCurrentThread()
297 Thread* thread = Thread::Current(); in GetEnv()
313 Thread* self = Thread::Current(); in AttachCurrentThreadInternal()
346 *p_env = Thread::Current()->GetJniEnv(); in AttachCurrentThreadInternal()
388 Thread* self = Thread::Current(); in JniAbort()
514 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in SetCheckJniEnabled()
[all …]
Dinstrumentation_test.cc139 ScopedObjectAccess soa(Thread::Current()); in CheckConfigureStubs()
140 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in CheckConfigureStubs()
143 Runtime* runtime = Runtime::Current(); in CheckConfigureStubs()
152 return Runtime::Current()->GetInstrumentation()->GetCurrentInstrumentationLevel(); in GetCurrentInstrumentationLevel()
156 ScopedObjectAccess soa(Thread::Current()); in GetInstrumentationUserCount()
157 return Runtime::Current()->GetInstrumentation()->requested_instrumentation_levels_.size(); in GetInstrumentationUserCount()
161 ScopedObjectAccess soa(Thread::Current()); in TestEvent()
162 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TestEvent()
166 Runtime* runtime = Runtime::Current(); in TestEvent()
186 Runtime* runtime = Runtime::Current(); in TestEvent()
[all …]
Dread_barrier-inl.h61 gc::Heap* heap = Runtime::Current()->GetHeap(); in Barrier()
87 if (Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()->IsMarking()) { in BarrierForRoot()
101 if (Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot()
127 if (Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()->IsMarking()) { in BarrierForRoot()
141 if (Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot()
158 gc::Heap* heap = Runtime::Current()->GetHeap(); in IsDuringStartup()
181 Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()-> in AssertToSpaceInvariant()
187 return Runtime::Current()->GetHeap()->ConcurrentCopyingCollector()->Mark(obj); in Mark()
Dtransaction_test.cc32 ScopedObjectAccess soa(Thread::Current()); in testTransactionAbort()
72 Runtime::Current()->EnterTransactionMode(&transaction); in testTransactionAbort()
74 Runtime::Current()->ExitTransactionMode(); in testTransactionAbort()
93 ScopedObjectAccess soa(Thread::Current()); in TEST_F()
100 Runtime::Current()->EnterTransactionMode(&transaction); in TEST_F()
104 Runtime::Current()->ExitTransactionMode(); in TEST_F()
113 ScopedObjectAccess soa(Thread::Current()); in TEST_F()
127 Runtime::Current()->EnterTransactionMode(&transaction); in TEST_F()
131 Runtime::Current()->ExitTransactionMode(); in TEST_F()
142 ScopedObjectAccess soa(Thread::Current()); in TEST_F()
[all …]
Dthread-inl.h37 inline Thread* Thread::Current() { in Current() function
49 DCHECK_EQ(Thread::Current(), this); in AllowThreadSuspension()
56 DCHECK_EQ(Thread::Current(), this); in CheckSuspend()
72 if (kIsDebugBuild && this != Thread::Current()) { in SetState()
76 << Thread::Current() << ") changing state to " << new_state; in SetState()
112 DCHECK_EQ(this, Thread::Current()); in TransitionFromRunnableToSuspended()
193 if (Runtime::Current()->GetHeap()->IsObjectValidationEnabled()) { in VerifyStack()
228 DCHECK(Thread::Current() == this) << "Should be called by self"; in SetThreadLocalAllocationStack()
241 Thread* self = Thread::Current(); in RevokeThreadLocalAllocationStack()
Dthread_list.cc65 Thread* self = Thread::Current(); in ~ThreadList()
70 Runtime::Current()->DetachCurrentThread(); in ~ThreadList()
96 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in DumpNativeStacks()
106 ScopedObjectAccess soa(Thread::Current()); in DumpForSigQuit()
137 Thread* self = Thread::Current(); in DumpUnattachedThreads()
168 Thread* self = Thread::Current(); in Run()
186 Thread* self = Thread::Current(); in WaitForThreadsToRunThroughCheckpoint()
205 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in Dump()
222 << "self: <<" << *Thread::Current(); in AssertThreadsAreSuspended()
230 Runtime* runtime = Runtime::Current(); in UnsafeLogFatalForThreadSuspendAllTimeout()
[all …]
/art/runtime/native/
Djava_lang_Runtime.cc42 if (Runtime::Current()->IsExplicitGcDisabled()) { in Runtime_gc()
46 Runtime::Current()->GetHeap()->CollectGarbage(false); in Runtime_gc()
51 Runtime::Current()->CallExitHook(status); in Runtime_nativeExit()
81 JavaVMExt* vm = Runtime::Current()->GetJavaVM(); in Runtime_nativeLoad()
94 return Runtime::Current()->GetHeap()->GetMaxMemory(); in Runtime_maxMemory()
98 return Runtime::Current()->GetHeap()->GetTotalMemory(); in Runtime_totalMemory()
102 return Runtime::Current()->GetHeap()->GetFreeMemory(); in Runtime_freeMemory()
Ddalvik_system_VMRuntime.cc56 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization()
60 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization()
81 Runtime* runtime = Runtime::Current(); in VMRuntime_newNonMovableArray()
106 Runtime* runtime = Runtime::Current(); in VMRuntime_newUnpaddedArray()
129 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf()
137 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit()
141 Runtime::Current()->GetHeap()->ClampGrowthLimit(); in VMRuntime_clampGrowthLimit()
149 return toStringArray(env, Runtime::Current()->GetProperties()); in VMRuntime_properties()
162 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetBootClassPathString())); in VMRuntime_bootClassPath()
166 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetClassPathString())); in VMRuntime_classPath()
[all …]
/art/compiler/optimizing/
Dssa_phi_elimination.cc29 HBasicBlock* block = it.Current(); in MarkDeadPhis()
31 HPhi* phi = inst_it.Current()->AsPhi(); in MarkDeadPhis()
35 HUseListNode<HInstruction*>* current = use_it.Current(); in MarkDeadPhis()
50 HInstruction* input = it.Current(); in MarkDeadPhis()
64 HBasicBlock* block = it.Current(); in EliminateDeadPhis()
76 HInstruction* user = use_it.Current()->GetUser(); in EliminateDeadPhis()
88 HUseListNode<HEnvironment*>* user_node = use_it.Current(); in EliminateDeadPhis()
103 HBasicBlock* block = it.Current(); in Run()
105 worklist_.Add(inst_it.Current()->AsPhi()); in Run()
145 HUseListNode<HInstruction*>* current = it.Current(); in Run()
Dreference_type_propagation.cc31 VisitBasicBlock(it.Current()); in Run()
42 HInstruction* instr = it.Current(); in VisitBasicBlock()
52 VisitPhi(it.Current()->AsPhi()); in VisitBasicBlock()
95 HInstruction* user = it.Current()->GetUser(); in BoundTypeForIfNotNull()
101 user->ReplaceInput(bound_type, it.Current()->GetIndex()); in BoundTypeForIfNotNull()
150 HInstruction* user = it.Current()->GetUser(); in BoundTypeForIfInstanceOf()
161 ScopedObjectAccess soa(Thread::Current()); in BoundTypeForIfInstanceOf()
173 user->ReplaceInput(bound_type, it.Current()->GetIndex()); in BoundTypeForIfInstanceOf()
179 ScopedObjectAccess soa(Thread::Current()); in VisitNewInstance()
190 ScopedObjectAccess soa(Thread::Current()); in VisitLoadClass()
[all …]
Ddead_code_elimination.cc52 set->SetBit(it.Current()->GetHeader()->GetBlockId()); in MarkLoopHeadersContaining()
76 HBasicBlock* block = it.Current(); in RemoveDeadBlocks()
100 HBasicBlock* block = it.Current(); in RemoveDeadBlocks()
120 HBasicBlock* block = b.Current(); in RemoveDeadInstructions()
126 DCHECK(i.Current()->IsControlFlow()); in RemoveDeadInstructions()
128 HInstruction* inst = i.Current(); in RemoveDeadInstructions()
/art/runtime/gc/space/
Dbump_pointer_space.cc79 MutexLock mu(Thread::Current(), block_lock_); in Clear()
97 MutexLock mu(Thread::Current(), block_lock_); in RevokeThreadLocalBuffers()
103 Thread* self = Thread::Current(); in RevokeAllThreadLocalBuffers()
107 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in RevokeAllThreadLocalBuffers()
116 MutexLock mu(Thread::Current(), block_lock_); in AssertThreadLocalBuffersAreRevoked()
123 Thread* self = Thread::Current(); in AssertAllThreadLocalBuffersAreRevoked()
127 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in AssertAllThreadLocalBuffersAreRevoked()
161 MutexLock mu(Thread::Current(), block_lock_); in Walk()
216 Thread* self = Thread::Current(); in GetBytesAllocated()
219 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in GetBytesAllocated()
[all …]
Dregion_space.cc84 MutexLock mu(Thread::Current(), region_lock_); in FromSpaceSize()
96 MutexLock mu(Thread::Current(), region_lock_); in UnevacFromSpaceSize()
108 MutexLock mu(Thread::Current(), region_lock_); in ToSpaceSize()
154 MutexLock mu(Thread::Current(), region_lock_); in SetFromSpace()
206 MutexLock mu(Thread::Current(), region_lock_); in ClearFromSpace()
221 MutexLock mu(Thread::Current(), region_lock_); in AssertAllRegionLiveBytesZeroOrCleared()
233 MutexLock mu(Thread::Current(), region_lock_); in LogFragmentationAllocFailure()
271 MutexLock mu(Thread::Current(), region_lock_); in Clear()
291 MutexLock mu(Thread::Current(), region_lock_); in FreeLarge()
313 MutexLock mu(Thread::Current(), region_lock_); in DumpRegions()
[all …]
Ddlmalloc_space.cc65 if (Runtime::Current()->RunningOnValgrind()) { in CreateFromMemMap()
155 if (Runtime::Current()->RunningOnValgrind()) { in CreateInstance()
223 MutexLock mu(Thread::Current(), lock_); in Trim()
234 MutexLock mu(Thread::Current(), lock_); in Walk()
240 MutexLock mu(Thread::Current(), lock_); in GetFootprint()
245 MutexLock mu(Thread::Current(), lock_); in GetFootprintLimit()
250 MutexLock mu(Thread::Current(), lock_); in SetFootprintLimit()
263 MutexLock mu(Thread::Current(), lock_); in GetBytesAllocated()
270 MutexLock mu(Thread::Current(), lock_); in GetObjectsAllocated()
288 lock_.AssertHeld(Thread::Current()); in CheckMoreCoreForPrecondition()
[all …]
/art/compiler/dex/
Dverification_results.cc41 Thread* self = Thread::Current(); in ~VerificationResults()
58 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ProcessVerifiedMethod()
64 if (!Runtime::Current()->UseJit()) { in ProcessVerifiedMethod()
81 ReaderMutexLock mu(Thread::Current(), verified_methods_lock_); in GetVerifiedMethod()
87 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in RemoveVerifiedMethod()
97 WriterMutexLock mu(Thread::Current(), rejected_classes_lock_); in AddRejectedClass()
104 ReaderMutexLock mu(Thread::Current(), rejected_classes_lock_); in IsClassRejected()
/art/runtime/mirror/
Ddex_cache-inl.h43 DCHECK_EQ(Runtime::Current()->GetClassLinker()->GetImagePointerSize(), ptr_size); in GetResolvedField()
52 DCHECK_EQ(Runtime::Current()->GetClassLinker()->GetImagePointerSize(), ptr_size); in SetResolvedField()
57 DCHECK_EQ(Runtime::Current()->GetClassLinker()->GetImagePointerSize(), ptr_size); in GetResolvedMethod()
61 DCHECK_EQ(method, Runtime::Current()->GetResolutionMethod()); in GetResolvedMethod()
68 DCHECK_EQ(Runtime::Current()->GetClassLinker()->GetImagePointerSize(), ptr_size); in SetResolvedMethod()
/art/compiler/driver/
Dcompiler_driver_test.cc54 Thread::Current()->TransitionFromSuspendedToRunnable(); in EnsureCompiled()
57 env_ = Thread::Current()->GetJniEnv(); in EnsureCompiled()
78 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in MakeDexFileExecutable()
82 ScopedObjectAccess soa(Thread::Current()); in MakeDexFileExecutable()
108 ScopedObjectAccess soa(Thread::Current()); in TEST_F()
124 auto* cl = Runtime::Current()->GetClassLinker(); in TEST_F()
152 ScopedObjectAccess soa(Thread::Current()); in TEST_F()
178 ScopedObjectAccess soa(Thread::Current()); in TEST_F()
179 Thread::Current()->ClearException(); in TEST_F()
195 Thread* self = Thread::Current(); in TEST_F()
[all …]
/art/test/118-noimage-dex2oat/
Dnoimage-dex2oat.cc28 ScopedObjectAccess soa(Thread::Current()); in hasOat()
37 return Runtime::Current()->GetHeap()->HasImageSpace(); in Java_Main_hasImage()
41 return Runtime::Current()->IsImageDex2OatEnabled(); in Java_Main_isImageDex2OatEnabled()
/art/runtime/jdwp/
Dobject_registry.cc50 Thread* const self = Thread::Current(); in Add()
79 Thread* const self = Thread::Current(); in InternalAdd()
138 Thread* const self = Thread::Current(); in Clear()
171 Thread* self = Thread::Current(); in InternalGet()
187 Thread* self = Thread::Current(); in GetJObject()
196 Thread* self = Thread::Current(); in DisableCollection()
204 Thread* self = Thread::Current(); in EnableCollection()
213 Thread* self = Thread::Current(); in Demote()
224 Thread* self = Thread::Current(); in Promote()
234 Thread* self = Thread::Current(); in IsCollected()
[all …]
/art/runtime/gc/
Dreference_queue_test.cc29 Thread* self = Thread::Current(); in TEST_F()
37 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/WeakReference;", in TEST_F()
60 Thread* self = Thread::Current(); in TEST_F()
67 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/WeakReference;", in TEST_F()
71 Runtime::Current()->GetClassLinker()->FindClass(self, "Ljava/lang/ref/FinalizerReference;", in TEST_F()
/art/runtime/arch/mips/
Dquick_entrypoints_mips.S85 sw $sp, THREAD_TOP_QUICK_FRAME_OFFSET(rSELF) # Place sp in Thread::Current()->top_quick_frame.
133 sw $sp, THREAD_TOP_QUICK_FRAME_OFFSET(rSELF) # Place sp in Thread::Current()->top_quick_frame.
225 sw $sp, THREAD_TOP_QUICK_FRAME_OFFSET(rSELF) # Place sp in Thread::Current()->top_quick_frame.
242 sw $sp, THREAD_TOP_QUICK_FRAME_OFFSET(rSELF) # Place sp in Thread::Current()->top_quick_frame.
286 move $a0, rSELF # pass Thread::Current
290 lw $t0, THREAD_EXCEPTION_OFFSET(rSELF) # load Thread::Current()->exception_
389 move $a1, rSELF # pass Thread::Current
400 move $a0, rSELF # pass Thread::Current
411 move $a0, rSELF # pass Thread::Current
422 move $a2, rSELF # pass Thread::Current
[all …]

1234567891011