/art/test/123-compiler-regressions-mt/src/ |
H A D | Main.java | 59 private volatile int state = 0; field in class:B17689750TestVolatile 63 while (state != 1) { } // Busy loop. 65 state = 2; 70 state = 1; 71 while (state != 2) { } // Busy loop. 80 private int state = 0; field in class:B17689750TestMonitor 88 s = state; 94 state = 2; 102 state = 1; 108 s = state; [all...] |
/art/tools/dexfuzz/src/dexfuzz/ |
H A D | StreamConsumer.java | 37 private State state; field in class:StreamConsumer 58 state = State.WAITING; 172 Log.error("invalid state: StreamConsumer told about work, but not CONSUMING?"); 173 Log.error("state was: " + getCurrentState()); 183 return (expectedState == state); 187 if (state != previousState) { 188 Log.error("StreamConsumer Unexpected state: " + state + ", expected " + previousState); 189 state = State.ERROR; 191 state [all...] |
/art/runtime/base/ |
H A D | mutex_test.cc | 105 RecursiveLockWait* state = reinterpret_cast<RecursiveLockWait*>(arg); local 106 state->mu.Lock(Thread::Current()); 107 state->cv.Signal(Thread::Current()); 108 state->mu.Unlock(Thread::Current()); 118 RecursiveLockWait state; variable 119 state.mu.Lock(Thread::Current()); 120 state.mu.Lock(Thread::Current()); 124 &state); 127 state.cv.Wait(Thread::Current()); 129 state [all...] |
H A D | mutex-inl.h | 157 // Reduce state by 1 and impose lock release load/store ordering. 159 // TODO: the ordering here is non-trivial as state is split across 3 fields, fix by placing 160 // a status bit into the state on contention. 208 int32_t state = state_.LoadRelaxed(); local 209 if (state == 0) { 211 } else if (state > 0) {
|
/art/runtime/jdwp/ |
H A D | jdwp_socket.cc | 41 * JDWP network state. 49 explicit JdwpSocketState(JdwpState* state) : JdwpNetStateBase(state) { argument 64 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe); 69 bool InitSocketTransport(JdwpState* state, const JdwpOptions* options) { argument 75 state->netState = SocketStartup(state, port, false); 79 state->netState = SocketStartup(state, port, true); 80 if (state 114 SocketStartup(JdwpState* state, uint16_t port, bool probe) argument [all...] |
H A D | jdwp_main.cc | 39 JdwpNetStateBase::JdwpNetStateBase(JdwpState* state) argument 40 : state_(state), socket_lock_("JdwpNetStateBase lock", kJdwpSocketLock) { 112 // Resets the state so we're ready to receive a new connection. 246 std::unique_ptr<JdwpState> state(new JdwpState(options)); 249 InitSocketTransport(state.get(), options); 253 InitAdbTransport(state.get(), options); 265 MutexLock thread_start_locker(self, state->thread_start_lock_); 271 CHECK_PTHREAD_CALL(pthread_create, (&state->pthread_, nullptr, StartJdwpThread, state.get()), 277 while (!state 431 JdwpState* state = reinterpret_cast<JdwpState*>(arg); local [all...] |
H A D | jdwp_adb.cc | 57 explicit JdwpAdbState(JdwpState* state) : JdwpNetStateBase(state) { argument 123 bool InitAdbTransport(JdwpState* state, const JdwpOptions*) { argument 125 state->netState = new JdwpAdbState(state); 126 return (state->netState != nullptr);
|
H A D | jdwp_handler.cc | 256 static JdwpError VM_Exit(JdwpState* state, Request* request, ExpandBuf*) 259 state->ExitAfterReplying(exit_status); 524 static JdwpError RT_Signature(JdwpState* state, Request* request, ExpandBuf* pReply) 526 return RT_Signature(state, request, pReply, false); 529 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request* request, ExpandBuf* pReply) 531 return RT_Signature(state, request, pReply, true); 642 static JdwpError CT_InvokeMethod(JdwpState* state, Request* request, 649 return RequestInvoke(state, request, thread_id, 0, class_id, method_id, false); 659 static JdwpError CT_NewInstance(JdwpState* state, Request* request, 671 return RequestInvoke(state, reques [all...] |
/art/runtime/ |
H A D | thread-inl.h | 76 << Thread::Current() << ") changing state to " << new_state; 80 tls32_.state_and_flags.as_struct.state = new_state; 81 return static_cast<ThreadState>(old_state_and_flags.as_struct.state); 113 // Change to non-runnable state, thereby appearing suspended to the system. 123 // Change the state but keep the current flags (kCheckpointRequest is clear). 126 new_state_and_flags.as_struct.state = new_state; 144 int16_t old_state = old_state_and_flags.as_struct.state; 149 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); 154 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); 159 DCHECK_EQ(old_state_and_flags.as_struct.state, old_stat [all...] |
H A D | primitive.h | 172 std::ostream& operator<<(std::ostream& os, const Primitive::Type& state);
|
H A D | fault_handler.cc | 49 // 4. save the thread's state to the TLS of the current thread using 'setjmp' 234 // Save the current state and call the handlers. If anything causes a signal 236 // state. 302 // is in Runnable state. 310 ThreadState state = thread->GetState(); local 311 if (state != kRunnable) {
|
H A D | thread.h | 157 // Reset internal state of child thread after fork. 185 // Dumps a one-line summary of thread state (used for operator<<). 188 // Dumps the detailed thread state and the thread stack (used for SIGQUIT). 204 DCHECK_GE(tls32_.state_and_flags.as_struct.state, kTerminated); 205 DCHECK_LE(tls32_.state_and_flags.as_struct.state, kSuspended); 206 return static_cast<ThreadState>(tls32_.state_and_flags.as_struct.state); 222 return state_and_flags.as_struct.state != kRunnable && 241 // Transition from non-runnable to runnable state acquiring share on mutator_lock_. 247 // Transition from runnable into a state where mutator privileges are denied. Releases share of 966 tls32_.state_and_flags.as_struct.state 1020 volatile uint16_t state; variable [all...] |
H A D | monitor.cc | 55 * from the "thin" state to the "fat" state and this transition is referred to as inflation. Once 56 * a lock has been inflated it remains in the "fat" state indefinitely. 144 // Propagate the lock state. 165 LOG(FATAL) << "Invalid monitor state " << lw.GetState(); 458 * Update thread state. If the GC wakes up, it'll ignore us, knowing 459 * that we won't touch any references in this state, and we'll check 502 // that a thread in a waiting/sleeping state has a non-null wait_monitor_ for debugging 614 // Assume no concurrent read barrier state changes as mutators are suspended. 620 // Assume no concurrent read barrier state change 935 ThreadState state = thread->GetState(); local [all...] |
H A D | thread.cc | 822 if (old_state_and_flags.as_struct.state != kRunnable) { 841 DCHECK_EQ(old_state_and_flags.as_struct.state, kRunnable); 848 // The thread changed state before the checkpoint was installed. 992 os << " | state=" << native_thread_state 1127 ThreadState state = thread->GetState(); local 1130 if (state > kWaiting && state < kStarting) { 1135 if (state == kTimedWaiting || state == kSleeping || state [all...] |
/art/runtime/mirror/ |
H A D | throwable.cc | 56 void Throwable::SetStackState(Object* state) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { 57 CHECK(state != nullptr); 59 SetFieldObjectVolatile<true>(OFFSET_OF_OBJECT_MEMBER(Throwable, stack_state_), state); local 61 SetFieldObjectVolatile<false>(OFFSET_OF_OBJECT_MEMBER(Throwable, stack_state_), state); local 97 // check stack state isn't missing or corrupt
|
H A D | throwable.h | 46 void SetStackState(Object* state) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
|
/art/oatdump/ |
H A D | oatdump.cc | 1699 ImageDumper* state = reinterpret_cast<ImageDumper*>(arg); local 1700 if (!state->InDumpSpace(obj)) { 1706 state->stats_.object_bytes += object_bytes; 1707 state->stats_.alignment_bytes += alignment_bytes; 1709 std::ostream& os = *state->os_; 1728 InstructionSetPointerSize(state->oat_dumper_->GetOatInstructionSet()); 1764 auto it = state->dex_cache_arrays_.find(obj); 1765 if (it != state->dex_cache_arrays_.end()) { 1766 const auto& field_section = state->image_header_.GetImageSection( 1768 const auto& method_section = state [all...] |
/art/compiler/dex/quick/x86/ |
H A D | call_x86.cc | 345 int state, const MethodReference& target_method, 352 switch (state) { 361 switch (state) { 378 switch (state) { 391 switch (state) { 416 return state + 1; 344 X86NextSDCallInsn(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t, uintptr_t direct_code ATTRIBUTE_UNUSED, uintptr_t direct_method, InvokeType type) argument
|
/art/runtime/gc/space/ |
H A D | region_space.cc | 159 RegionState state = r->State(); local 164 DCHECK((state == RegionState::kRegionStateAllocated || 165 state == RegionState::kRegionStateLarge) && 175 if (UNLIKELY(state == RegionState::kRegionStateLarge && 182 DCHECK(state == RegionState::kRegionStateLargeTail && 413 << " state=" << static_cast<uint>(state_) << " type=" << static_cast<uint>(type_)
|
/art/compiler/dex/quick/arm64/ |
H A D | call_arm64.cc | 458 int state, const MethodReference& target_method, 465 switch (state) { 482 switch (state) { 503 switch (state) { 510 ++state; 533 ++state; 558 return state + 1; 457 Arm64NextSDCallInsn(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t unused_idx ATTRIBUTE_UNUSED, uintptr_t direct_code, uintptr_t direct_method, InvokeType type) argument
|
/art/tools/ |
H A D | checker.py | 19 # state of the control-flow graph before and after each optimization pass 308 # the given initial variable values. It returns the new variable state if 311 # Do the full matching on a shadow copy of the variable state. If the 312 # matching fails half-way, we will not need to revert the state. 351 # All parts were successfully matched. Return the new variable state. 404 # check line and the updated variable state. Otherwise returns -1 and None, 418 # appearance. Variable state is propagated but the scope of the search remains 420 # If all check lines are matched, the resulting variable state is returned 442 # Return new variable state and the output lines which lie outside the 451 # lines. Variable state doe [all...] |
/art/compiler/dex/quick/mips/ |
H A D | call_mips.cc | 418 static int NextSDCallInsn(CompilationUnit* cu, CallInfo* info, int state, argument 424 switch (state) { 440 switch (state) { 466 switch (state) { 511 return state + 1;
|
/art/compiler/dex/quick/ |
H A D | gen_invoke.cc | 524 int state, const MethodReference& target_method, 533 switch (state) { 560 return state + 1; 569 static int NextInterfaceCallInsn(CompilationUnit* cu, CallInfo* info, int state, argument 574 switch (state) { 607 return state + 1; 611 QuickEntrypointEnum trampoline, int state, 620 if (state == 0) { 640 int state, 643 return NextInvokeInsnSP(cu, info, kQuickInvokeStaticTrampolineWithAccessCheck, state, 523 NextVCallInsn(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t method_idx, uintptr_t, uintptr_t, InvokeType) argument 610 NextInvokeInsnSP(CompilationUnit* cu, CallInfo* info, QuickEntrypointEnum trampoline, int state, const MethodReference& target_method, uint32_t method_idx) argument 639 NextStaticCallInsnSP(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t, uintptr_t, uintptr_t, InvokeType) argument 647 NextDirectCallInsnSP(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t, uintptr_t, uintptr_t, InvokeType) argument 654 NextSuperCallInsnSP(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t, uintptr_t, uintptr_t, InvokeType) argument 661 NextVCallInsnSP(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t, uintptr_t, uintptr_t, InvokeType) argument 668 NextInterfaceCallInsnWithAccessCheck(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t, uintptr_t, uintptr_t, InvokeType) argument [all...] |
/art/compiler/dex/quick/arm/ |
H A D | call_arm.cc | 624 int state, const MethodReference& target_method, 631 switch (state) { 648 switch (state) { 669 switch (state) { 676 ++state; 699 ++state; 726 return state + 1; 623 ArmNextSDCallInsn(CompilationUnit* cu, CallInfo* info, int state, const MethodReference& target_method, uint32_t unused_idx ATTRIBUTE_UNUSED, uintptr_t direct_code, uintptr_t direct_method, InvokeType type) argument
|
/art/runtime/hprof/ |
H A D | hprof.cc | 699 JDWP::JdwpState* state = Dbg::GetJdwpState(); local 700 CHECK(state != nullptr); 701 JDWP::JdwpNetStateBase* net_state = state->netState; 710 state->SetupChunkHeader(chunk_type, overall_size, kChunkHeaderSize, chunk_header);
|