Home
last modified time | relevance | path

Searched refs:state (Results 1 – 24 of 24) sorted by relevance

/art/runtime/jdwp/
Djdwp_main.cc38 JdwpNetStateBase::JdwpNetStateBase(JdwpState* state) in JdwpNetStateBase() argument
39 : state_(state), socket_lock_("JdwpNetStateBase lock", kJdwpSocketLock) { in JdwpNetStateBase()
238 std::unique_ptr<JdwpState> state(new JdwpState(options)); in Create() local
241 InitSocketTransport(state.get(), options); in Create()
245 InitAdbTransport(state.get(), options); in Create()
257 MutexLock thread_start_locker(self, state->thread_start_lock_); in Create()
263 CHECK_PTHREAD_CALL(pthread_create, (&state->pthread_, nullptr, StartJdwpThread, state.get()), in Create()
269 while (!state->debug_thread_started_) { in Create()
270 state->thread_start_cond_.Wait(self); in Create()
285 MutexLock attach_locker(self, state->attach_lock_); in Create()
[all …]
Djdwp_socket.cc49 explicit JdwpSocketState(JdwpState* state) : JdwpNetStateBase(state) { in JdwpSocketState()
64 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe);
69 bool InitSocketTransport(JdwpState* state, const JdwpOptions* options) { in InitSocketTransport() argument
75 state->netState = SocketStartup(state, port, false); in InitSocketTransport()
79 state->netState = SocketStartup(state, port, true); in InitSocketTransport()
80 if (state->netState != NULL) { in InitSocketTransport()
85 if (state->netState == NULL) { in InitSocketTransport()
90 state->netState = SocketStartup(state, 0, false); in InitSocketTransport()
114 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe) { in SocketStartup() argument
115 JdwpSocketState* netState = new JdwpSocketState(state); in SocketStartup()
Djdwp_adb.cc57 explicit JdwpAdbState(JdwpState* state) : JdwpNetStateBase(state) { in JdwpAdbState()
123 bool InitAdbTransport(JdwpState* state, const JdwpOptions*) { in InitAdbTransport() argument
125 state->netState = new JdwpAdbState(state); in InitAdbTransport()
126 return (state->netState != NULL); in InitAdbTransport()
Djdwp_handler.cc303 static JdwpError VM_Exit(JdwpState* state, Request& request, ExpandBuf*) in VM_Exit() argument
306 state->ExitAfterReplying(exit_status); in VM_Exit()
570 static JdwpError RT_Signature(JdwpState* state, Request& request, ExpandBuf* pReply) in RT_Signature() argument
572 return RT_Signature(state, request, pReply, false); in RT_Signature()
575 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request& request, ExpandBuf* pReply) in RT_SignatureWithGeneric() argument
577 return RT_Signature(state, request, pReply, true); in RT_SignatureWithGeneric()
688 static JdwpError CT_InvokeMethod(JdwpState* state, Request& request, ExpandBuf* pReply) in CT_InvokeMethod() argument
694 return FinishInvoke(state, request, pReply, thread_id, 0, class_id, method_id, false); in CT_InvokeMethod()
704 static JdwpError CT_NewInstance(JdwpState* state, Request& request, ExpandBuf* pReply) in CT_NewInstance() argument
718 return FinishInvoke(state, request, pReply, thread_id, object_id, class_id, method_id, true); in CT_NewInstance()
[all …]
/art/runtime/base/
Dmutex_test.cc105 RecursiveLockWait* state = reinterpret_cast<RecursiveLockWait*>(arg); in Callback() local
106 state->mu.Lock(Thread::Current()); in Callback()
107 state->cv.Signal(Thread::Current()); in Callback()
108 state->mu.Unlock(Thread::Current()); in Callback()
118 RecursiveLockWait state; in RecursiveLockWaitTest() local
119 state.mu.Lock(Thread::Current()); in RecursiveLockWaitTest()
120 state.mu.Lock(Thread::Current()); in RecursiveLockWaitTest()
123 int pthread_create_result = pthread_create(&pthread, NULL, RecursiveLockWait::Callback, &state); in RecursiveLockWaitTest()
126 state.cv.Wait(Thread::Current()); in RecursiveLockWaitTest()
128 state.mu.Unlock(Thread::Current()); in RecursiveLockWaitTest()
[all …]
Dmutex-inl.h241 int32_t state = state_.LoadRelaxed(); in GetExclusiveOwnerTid() local
242 if (state == 0) { in GetExclusiveOwnerTid()
244 } else if (state > 0) { in GetExclusiveOwnerTid()
/art/runtime/
Dthread-inl.h55 tls32_.state_and_flags.as_struct.state = new_state; in SetState()
56 return static_cast<ThreadState>(old_state_and_flags.as_struct.state); in SetState()
97 new_state_and_flags.as_struct.state = new_state; in TransitionFromRunnableToSuspended()
115 int16_t old_state = old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
120 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
125 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
130 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
138 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
142 new_state_and_flags.as_struct.state = kRunnable; in TransitionFromSuspendedToRunnable()
Dprimitive.h123 std::ostream& operator<<(std::ostream& os, const Primitive::Type& state);
Dthread.h182 DCHECK_GE(tls32_.state_and_flags.as_struct.state, kTerminated); in GetState()
183 DCHECK_LE(tls32_.state_and_flags.as_struct.state, kSuspended); in GetState()
184 return static_cast<ThreadState>(tls32_.state_and_flags.as_struct.state); in GetState()
200 return state_and_flags.as_struct.state != kRunnable && in IsSuspended()
873 tls32_.state_and_flags.as_struct.state = new_state; in SetStateUnsafe()
919 volatile uint16_t state; member
1175 std::ostream& operator<<(std::ostream& os, const ThreadState& state);
Dfault_handler.cc213 ThreadState state = thread->GetState(); in IsInGeneratedCode() local
214 if (state != kRunnable) { in IsInGeneratedCode()
Dmonitor.cc933 ThreadState state = thread->GetState(); in DescribeWait() local
934 if (state == kWaiting || state == kTimedWaiting || state == kSleeping) { in DescribeWait()
935 wait_message = (state == kSleeping) ? " - sleeping on " : " - waiting on "; in DescribeWait()
942 } else if (state == kBlocked) { in DescribeWait()
Dthread.cc691 if (old_state_and_flags.as_struct.state != kRunnable) { in RequestCheckpoint()
710 DCHECK_EQ(old_state_and_flags.as_struct.state, kRunnable); in RequestCheckpoint()
953 ThreadState state = thread->GetState(); in ShouldShowNativeStack() local
956 if (state > kWaiting && state < kStarting) { in ShouldShowNativeStack()
961 if (state == kTimedWaiting || state == kSleeping || state == kWaiting) { in ShouldShowNativeStack()
1080 tls32_.state_and_flags.as_struct.state = kNative; in Thread()
Druntime.cc283 AbortState state; in Abort() local
284 LOG(INTERNAL_FATAL) << Dumpable<AbortState>(state); in Abort()
1440 void Runtime::UpdateProfilerState(int state) { in UpdateProfilerState() argument
1441 VLOG(profiler) << "Profiler state updated to " << state; in UpdateProfilerState()
Dutils.h425 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu);
Druntime.h422 void UpdateProfilerState(int state);
Dutils.cc1023 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu) { in GetTaskStats() argument
1034 *state = fields[0][0]; in GetTaskStats()
Ddebugger.cc2133 JDWP::JdwpThreadStatus Dbg::ToJdwpThreadStatus(ThreadState state) { in ToJdwpThreadStatus() argument
2134 switch (state) { in ToJdwpThreadStatus()
2163 LOG(FATAL) << "Unknown thread state: " << state; in ToJdwpThreadStatus()
4181 uint8_t state = ExamineObject(obj, native); in HeapChunkCallback() local
4182 AppendChunk(state, start, used_bytes + chunk_overhead_); in HeapChunkCallback()
4186 void AppendChunk(uint8_t state, void* ptr, size_t length) in AppendChunk() argument
4208 *p_++ = state | HPSG_PARTIAL; in AppendChunk()
4212 *p_++ = state; in AppendChunk()
Ddebugger.h431 static JDWP::JdwpThreadStatus ToJdwpThreadStatus(ThreadState state);
/art/runtime/mirror/
Dthrowable.cc56 void Throwable::SetStackState(Object* state) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in SetStackState() argument
57 CHECK(state != nullptr); in SetStackState()
59 SetFieldObjectVolatile<true>(OFFSET_OF_OBJECT_MEMBER(Throwable, stack_state_), state); in SetStackState()
61 SetFieldObjectVolatile<false>(OFFSET_OF_OBJECT_MEMBER(Throwable, stack_state_), state); in SetStackState()
Dthrowable.h46 void SetStackState(Object* state) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
/art/oatdump/
Doatdump.cc1232 ImageDumper* state = reinterpret_cast<ImageDumper*>(arg); in Callback() local
1233 if (!state->InDumpSpace(obj)) { in Callback()
1239 state->stats_.object_bytes += object_bytes; in Callback()
1240 state->stats_.alignment_bytes += alignment_bytes; in Callback()
1242 std::ostream& os = *state->os_; in Callback()
1307 const void* quick_oat_code = state->GetQuickOatCodeBegin(method); in Callback()
1308 uint32_t quick_oat_code_size = state->GetQuickOatCodeSize(method); in Callback()
1309 state->ComputeOatSize(quick_oat_code, &first_occurrence); in Callback()
1311 state->stats_.native_to_managed_code_bytes += quick_oat_code_size; in Callback()
1324 state->stats_.dex_instruction_bytes += dex_instruction_bytes; in Callback()
[all …]
/art/compiler/dex/quick/
Dgen_invoke.cc494 int state, const MethodReference& target_method, in NextSDCallInsn() argument
500 switch (state) { in NextSDCallInsn()
520 switch (state) { in NextSDCallInsn()
560 return state + 1; in NextSDCallInsn()
571 int state, const MethodReference& target_method, in NextVCallInsn() argument
579 switch (state) { in NextVCallInsn()
603 return state + 1; in NextVCallInsn()
612 static int NextInterfaceCallInsn(CompilationUnit* cu, CallInfo* info, int state, in NextInterfaceCallInsn() argument
618 switch (state) { in NextInterfaceCallInsn()
648 return state + 1; in NextInterfaceCallInsn()
[all …]
/art/compiler/
Delf_writer_quick.cc876 ElfSymtabBuilder::ElfSymbolState state {name, section, addr, size, is_relative, in AddSymbol() local
878 symbols_.push_back(state); in AddSymbol()
/art/
DNOTICE143 5. Submission of Contributions. Unless You explicitly state otherwise,