/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/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/oatdump/ |
H A D | oatdump.cc | 1657 ImageDumper* state = reinterpret_cast<ImageDumper*>(arg); local 1658 if (!state->InDumpSpace(obj)) { 1664 state->stats_.object_bytes += object_bytes; 1665 state->stats_.alignment_bytes += alignment_bytes; 1667 std::ostream& os = state->vios_.Stream(); 1683 ScopedIndentation indent1(&state->vios_); 1685 const size_t image_pointer_size = state->image_header_.GetPointerSize(); 1712 ScopedIndentation indent2(&state->vios_); 1718 auto it = state->dex_caches_.find(obj); 1719 if (it != state [all...] |
/art/runtime/base/ |
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) {
|
H A D | mutex_test.cc | 109 RecursiveLockWait* state = reinterpret_cast<RecursiveLockWait*>(arg); local 110 state->mu.Lock(Thread::Current()); 111 state->cv.Signal(Thread::Current()); 112 state->mu.Unlock(Thread::Current()); 118 RecursiveLockWait state; variable 119 state.mu.Lock(Thread::Current()); 120 state.mu.Lock(Thread::Current()); 123 int pthread_create_result = pthread_create(&pthread, nullptr, RecursiveLockWaitCallback, &state); 126 state.cv.Wait(Thread::Current()); 128 state [all...] |
/art/runtime/ |
H A D | debugger.cc | 103 // GC to deadlock if another thread tries to call SuspendAll while the GC is in a runnable state. 283 // Runtime JDWP state. 647 // Suspend all threads and exclusively acquire the mutator lock. Set the state of the thread 956 // Unlike DisableCollection, JDWP specs do not state an invalid object causes an error. The RI 973 // JDWP specs state an INVALID_OBJECT error is returned if the object ID is not valid. However 2151 JDWP::JdwpThreadStatus Dbg::ToJdwpThreadStatus(ThreadState state) { argument 2152 switch (state) { 2185 LOG(FATAL) << "Unknown thread state: " << state; 4297 LOG(ERROR) << "DDM broadcast in thread state " << sel 4645 uint8_t state = ExamineNativeObject(start); local 4657 uint8_t state = ExamineJavaObject(reinterpret_cast<mirror::Object*>(start)); local [all...] |
H A D | fault_handler.cc | 50 // 4. save the thread's state to the TLS of the current thread using 'setjmp' 210 // Save the current state and call the handlers. If anything causes a signal 212 // state. 312 // is in Runnable state. 320 ThreadState state = thread->GetState(); local 321 if (state != kRunnable) {
|
H A D | monitor.cc | 53 * from the "thin" state to the "fat" state and this transition is referred to as inflation. Once 54 * a lock has been inflated it remains in the "fat" state indefinitely. 133 // Propagate the lock state. 154 LOG(FATAL) << "Invalid monitor state " << lw.GetState(); 629 // Update thread state. If the GC wakes up, it'll ignore us, knowing 630 // that we won't touch any references in this state, and we'll check 664 // that a thread in a waiting/sleeping state has a non-null wait_monitor_ for debugging 779 // Assume no concurrent read barrier state changes as mutators are suspended. 785 // Assume no concurrent read barrier state change 1111 ThreadState state = thread->GetState(); local [all...] |
H A D | runtime.cc | 236 // Initially assume we perceive jank in case the process state is never updated. 323 ScopedTrace trace2("Delete state"); 421 AbortState state; local 422 LOG(INTERNAL_FATAL) << Dumpable<AbortState>(state); 579 // Restore main thread state to kNative as expected by native code. 791 // Must be in the kNative state for calling native methods. 1318 // Must be in the kNative state for calling native methods (JNI_OnLoad code). 1512 // SIGQUIT is used to dump the runtime's state (including stack traces).
|
H A D | thread.cc | 1149 if (old_state_and_flags.as_struct.state != kRunnable) { 1168 DCHECK_EQ(old_state_and_flags.as_struct.state, kRunnable); 1175 // The thread changed state before the checkpoint was installed. 1317 os << " | state=" << native_thread_state 1450 ThreadState state = thread->GetState(); local 1453 if (state > kWaiting && state < kStarting) { 1458 if (state == kTimedWaiting || state == kSleeping || state [all...] |
H A D | thread.h | 160 // Reset internal state of child thread after fork. 186 // Dumps a one-line summary of thread state (used for operator<<). 189 // Dumps the detailed thread state and the thread stack (used for SIGQUIT). 207 DCHECK_GE(tls32_.state_and_flags.as_struct.state, kTerminated); 208 DCHECK_LE(tls32_.state_and_flags.as_struct.state, kSuspended); 209 return static_cast<ThreadState>(tls32_.state_and_flags.as_struct.state); 225 return state_and_flags.as_struct.state != kRunnable && 253 // Transition from non-runnable to runnable state acquiring share on mutator_lock_. 258 // Transition from runnable into a state where mutator privileges are denied. Releases share of 1126 // Need to run pending checkpoint and suspend barriers. Run checkpoints in runnable state i 1210 volatile uint16_t state; variable [all...] |
H A D | utils.cc | 987 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu) { argument 998 *state = fields[0][0];
|
/art/runtime/gc/ |
H A D | heap.cc | 1368 VLOG(gc) << "Homogeneous compaction ignored due to jank perceptible process state"; 1753 // Allocations have failed after GCs; this is an exceptional state. 3470 // We must wait, change thread state then sleep on gc_complete_cond_; 4047 auto* const state = reinterpret_cast<StackCrawlState*>(arg); local 4050 if (ip != 0 && state->skip_count_ > 0) { 4051 --state->skip_count_; 4055 state->frames_[state->frame_count_] = ip; 4056 state->frame_count_++; 4057 return state [all...] |
/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/runtime/hprof/ |
H A D | hprof.cc | 790 JDWP::JdwpState* state = Dbg::GetJdwpState(); local 791 CHECK(state != nullptr); 792 JDWP::JdwpNetStateBase* net_state = state->netState; 801 state->SetupChunkHeader(chunk_type, overall_size, kChunkHeaderSize, chunk_header);
|
/art/runtime/jdwp/ |
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_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. 249 std::unique_ptr<JdwpState> state(new JdwpState(options)); 252 InitSocketTransport(state.get(), options); 256 InitAdbTransport(state.get(), options); 267 state->thread_start_lock_.AssertNotHeld(self); 268 MutexLock thread_start_locker(self, state->thread_start_lock_); 274 CHECK_PTHREAD_CALL(pthread_create, (&state->pthread_, nullptr, StartJdwpThread, state 434 JdwpState* state = reinterpret_cast<JdwpState*>(arg); local [all...] |
H A D | jdwp_socket.cc | 41 * JDWP network state. 49 explicit JdwpSocketState(JdwpState* state) argument 50 : JdwpNetStateBase(state), 66 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe); 71 bool InitSocketTransport(JdwpState* state, const JdwpOptions* options) { argument 77 state->netState = SocketStartup(state, port, false); 81 state->netState = SocketStartup(state, port, true); 82 if (state 116 SocketStartup(JdwpState* state, uint16_t port, bool probe) argument [all...] |
/art/runtime/mirror/ |
H A D | throwable.cc | 56 void Throwable::SetStackState(Object* state) SHARED_REQUIRES(Locks::mutator_lock_) { 57 CHECK(state != nullptr); 59 SetFieldObjectVolatile<true>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); local 61 SetFieldObjectVolatile<false>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); local 93 // check stack state isn't missing or corrupt
|