Searched refs:state (Results 1 - 25 of 35) sorted by last modified time

12

/art/test/924-threads/src/art/
H A DTest924.java32 // Run the test on its own thread, so we have a known state for the "current" thread.
163 // messy. Wait till we get the right Java-side Thread state.
362 int state = getThreadState(t);
367 if ((state & i) != 0) {
379 System.out.println(Integer.toHexString(state) + " = " + sb.toString());
/art/test/924-threads/
H A Dthreads.cc101 jint state; local
102 jvmtiError result = jvmti_env->GetThreadState(thread, &state);
106 return state;
/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/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/oatdump/
H A Doatdump.cc2110 ImageDumper* state = reinterpret_cast<ImageDumper*>(arg); local
2111 if (!state->InDumpSpace(obj)) {
2117 state->stats_.object_bytes += object_bytes;
2118 state->stats_.alignment_bytes += alignment_bytes;
2120 std::ostream& os = state->vios_.Stream();
2137 ScopedIndentation indent1(&state->vios_);
2139 const PointerSize image_pointer_size = state->image_header_.GetPointerSize();
2166 ScopedIndentation indent2(&state->vios_);
2172 auto it = state->dex_caches_.find(obj);
2173 if (it != state
[all...]
/art/runtime/
H A Dbacktrace_helper.h41 auto* const state = reinterpret_cast<BacktraceCollector*>(arg); local
44 if (ip != 0 && state->skip_count_ > 0) {
45 --state->skip_count_;
49 state->out_frames_[state->num_frames_] = ip;
50 state->num_frames_++;
51 return state->num_frames_ >= state->max_depth_ ? _URC_END_OF_STACK : _URC_NO_REASON;
H A Ddebugger.cc112 // GC to deadlock if another thread tries to call SuspendAll while the GC is in a runnable state.
293 // Runtime JDWP state.
954 // Unlike DisableCollection, JDWP specs do not state an invalid object causes an error. The RI
971 // JDWP specs state an INVALID_OBJECT error is returned if the object ID is not valid. However
2188 JDWP::JdwpThreadStatus Dbg::ToJdwpThreadStatus(ThreadState state) { argument
2189 switch (state) {
2222 LOG(FATAL) << "Unknown thread state: " << state;
4345 LOG(ERROR) << "DDM broadcast in thread state " << self->GetState();
4699 uint8_t state local
4711 uint8_t state = ExamineJavaObject(reinterpret_cast<mirror::Object*>(start)); local
[all...]
H A Ddebugger.h445 static JDWP::JdwpThreadStatus ToJdwpThreadStatus(ThreadState state);
H A Dfault_handler.cc244 // is in Runnable state.
252 ThreadState state = thread->GetState(); local
253 if (state != kRunnable) {
H A Dmonitor.cc56 * from the "thin" state to the "fat" state and this transition is referred to as inflation. Once
57 * a lock has been inflated it remains in the "fat" state indefinitely.
136 // Propagate the lock state.
157 LOG(FATAL) << "Invalid monitor state " << lw.GetState();
646 // Update thread state. If the GC wakes up, it'll ignore us, knowing
647 // that we won't touch any references in this state, and we'll check
681 // that a thread in a waiting/sleeping state has a non-null wait_monitor_ for debugging
797 // Assume no concurrent read barrier state changes as mutators are suspended.
803 // Assume no concurrent read barrier state change
1149 ThreadState state = thread->GetState(); local
[all...]
H A Dprimitive.h259 std::ostream& operator<<(std::ostream& os, const Primitive::Type& state);
/art/runtime/base/
H A Dmutex-inl.h160 // Reduce state by 1 and impose lock release load/store ordering.
162 // TODO: the ordering here is non-trivial as state is split across 3 fields, fix by placing
163 // a status bit into the state on contention.
211 int32_t state = state_.LoadRelaxed(); local
212 if (state == 0) {
214 } else if (state > 0) {
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...]
/art/runtime/gc/space/
H A Dregion_space.cc202 RegionState state = r->State(); local
207 DCHECK((state == RegionState::kRegionStateAllocated ||
208 state == RegionState::kRegionStateLarge) &&
218 if (UNLIKELY(state == RegionState::kRegionStateLarge &&
225 DCHECK(state == RegionState::kRegionStateLargeTail &&
525 << " state=" << static_cast<uint>(state_) << " type=" << static_cast<uint>(type_)
/art/runtime/hprof/
H A Dhprof.cc811 JDWP::JdwpState* state = Dbg::GetJdwpState(); local
812 CHECK(state != nullptr);
813 JDWP::JdwpNetStateBase* net_state = state->netState;
822 state->SetupChunkHeader(chunk_type, overall_size, kChunkHeaderSize, chunk_header);
/art/runtime/jdwp/
H A Djdwp_adb.cc69 explicit JdwpAdbState(JdwpState* state) argument
70 : JdwpNetStateBase(state),
154 bool InitAdbTransport(JdwpState* state, const JdwpOptions*) { argument
156 state->netState = new JdwpAdbState(state);
157 return (state->netState != nullptr);
H A Djdwp_handler.cc259 static JdwpError VM_Exit(JdwpState* state, Request* request, ExpandBuf*)
262 state->ExitAfterReplying(exit_status);
532 static JdwpError RT_Signature(JdwpState* state, Request* request, ExpandBuf* pReply)
534 return RT_Signature(state, request, pReply, false);
537 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request* request, ExpandBuf* pReply)
539 return RT_Signature(state, request, pReply, true);
650 static JdwpError CT_InvokeMethod(JdwpState* state, Request* request,
657 return RequestInvoke(state, request, thread_id, 0, class_id, method_id, false);
667 static JdwpError CT_NewInstance(JdwpState* state, Request* request,
679 return RequestInvoke(state, reques
[all...]
H A Djdwp_main.cc43 JdwpNetStateBase::JdwpNetStateBase(JdwpState* state) argument
44 : state_(state), socket_lock_("JdwpNetStateBase lock", kJdwpSocketLock) {
116 // Resets the state so we're ready to receive a new connection.
254 std::unique_ptr<JdwpState> state(new JdwpState(options));
257 InitSocketTransport(state.get(), options);
261 InitAdbTransport(state.get(), options);
272 state->thread_start_lock_.AssertNotHeld(self);
273 MutexLock thread_start_locker(self, state->thread_start_lock_);
279 CHECK_PTHREAD_CALL(pthread_create, (&state->pthread_, nullptr, StartJdwpThread, state
441 JdwpState* state = reinterpret_cast<JdwpState*>(arg); local
[all...]
H A Djdwp_socket.cc42 * JDWP network state.
50 explicit JdwpSocketState(JdwpState* state) argument
51 : JdwpNetStateBase(state),
67 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe);
72 bool InitSocketTransport(JdwpState* state, const JdwpOptions* options) { argument
78 state->netState = SocketStartup(state, port, false);
82 state->netState = SocketStartup(state, port, true);
83 if (state
117 SocketStartup(JdwpState* state, uint16_t port, bool probe) argument
[all...]
/art/runtime/mirror/
H A Dthrowable.cc61 void Throwable::SetStackState(ObjPtr<Object> state) REQUIRES_SHARED(Locks::mutator_lock_) {
62 CHECK(state != nullptr);
64 SetFieldObjectVolatile<true>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); local
66 SetFieldObjectVolatile<false>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); local
98 // check stack state isn't missing or corrupt
H A Dthrowable.h46 void SetStackState(ObjPtr<Object> state) REQUIRES_SHARED(Locks::mutator_lock_);
/art/runtime/openjdkjvmti/
H A Devents.cc377 art::ThreadState state = thread->GetState(); local
378 if (state == art::ThreadState::kStarting ||
379 state == art::ThreadState::kTerminated ||
H A Dti_redefine.cc1183 art::JDWP::JdwpState* state = art::Dbg::GetJdwpState(); local
1184 if (state != nullptr) {
1185 state->UnregisterLocationEventsOnClass(GetMirrorClass());
1294 // At this point we can no longer fail without corrupting the runtime state.
1307 // TODO We might want to give this its own suspended state!
1308 // TODO This isn't right. We need to change state without any chance of suspend ideally!
H A Dti_stack.cc204 art::ThreadState state = thread->GetState(); local
205 if (state == art::ThreadState::kStarting ||
206 state == art::ThreadState::kTerminated ||
335 stack_info.state = JVMTI_THREAD_STATE_SUSPENDED;
502 stack_info.state = JVMTI_THREAD_STATE_SUSPENDED;
560 stack_info[i].state = started ? kTerminatedState : kStartedState;
/art/runtime/openjdkjvmti/include/
H A Djvmti.h541 jint state; member in struct:_jvmtiStackInfo

Completed in 389 milliseconds

12