Searched refs:state (Results 1 - 25 of 28) sorted by relevance

12

/art/tools/checker/file_format/c1visualizer/
H A Dparser.py28 def __parseC1Line(line, lineNo, state, fileName):
37 if state.currentState == C1ParserState.StartingCfgBlock:
43 state.currentState = C1ParserState.InsideCfgBlock
44 return (None, state.lastMethodName + " " + line.split("\"")[1], None)
48 elif state.currentState == C1ParserState.InsideCfgBlock:
50 state.currentState = C1ParserState.OutsideBlock
55 elif state.currentState == C1ParserState.InsideCompilationBlock:
61 state.lastMethodName = methodName
63 state.currentState = C1ParserState.OutsideBlock
67 assert state
[all...]
/art/test/123-compiler-regressions-mt/src/
H A DMain.java59 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 DStreamConsumer.java37 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 Dmutex_test.cc109 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...]
H A Dmutex-inl.h157 // 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 Djdwp_socket.cc41 * 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...]
H A Djdwp_main.cc39 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 Djdwp_adb.cc57 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 Djdwp_handler.cc256 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 Dthread-inl.h87 << Thread::Current() << ") changing state to " << new_state;
91 CHECK_NE(old_state_and_flags.as_struct.state, kRunnable);
92 tls32_.state_and_flags.as_struct.state = new_state;
93 return static_cast<ThreadState>(old_state_and_flags.as_struct.state);
132 // Change the state but keep the current flags (kCheckpointRequest is clear).
135 new_state_and_flags.as_struct.state = new_state;
164 // Change to non-runnable state, thereby appearing suspended to the system.
175 int16_t old_state = old_state_and_flags.as_struct.state;
180 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state);
186 new_state_and_flags.as_struct.state
[all...]
H A Dprimitive.h227 std::ostream& operator<<(std::ostream& os, const Primitive::Type& state);
H A Dfault_handler.cc50 // 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 Dmonitor.cc53 * 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 Dthread.h160 // 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 Dthread.cc1149 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 Dutils.h236 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu);
H A Ddebugger.cc103 // 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 Druntime.cc236 // 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).
/art/runtime/mirror/
H A Dthrowable.cc56 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
H A Dthrowable.h46 void SetStackState(Object* state) SHARED_REQUIRES(Locks::mutator_lock_);
/art/test/570-checker-osr/src/
H A DMain.java32 Thread.State state = testThread.getState();
33 if (state != Thread.State.TERMINATED) {
34 System.out.println("Test timed out, current state: " + state);
/art/runtime/gc/space/
H A Dregion_space.cc159 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/oatdump/
H A Doatdump.cc1657 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/hprof/
H A Dhprof.cc790 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/gc/
H A Dheap.cc1368 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...]

Completed in 537 milliseconds

12