Home
last modified time | relevance | path

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

123

/art/tools/checker/file_format/c1visualizer/
Dparser.py28 def __parseC1Line(line, lineNo, state, fileName): argument
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.currentState == C1ParserState.OutsideBlock
[all …]
/art/test/123-compiler-regressions-mt/src/
DMain.java59 private volatile int state = 0; field in B17689750TestVolatile
63 while (state != 1) { } // Busy loop. in thread1()
65 state = 2; in thread1()
70 state = 1; in thread2()
71 while (state != 2) { } // Busy loop. in thread2()
80 private int state = 0; field in B17689750TestMonitor
88 s = state; in thread1()
94 state = 2; in thread1()
102 state = 1; in thread2()
108 s = state; in thread2()
/art/test/991-field-trace-2/
Dexpected.txt2 Initial state: xyz = 0
8 Final state: xyz = 1
10 Initial state: xyz = 0
14 Final state: xyz = 0
16 Initial state: xyz = 0
23 Final state: xyz = 0
25 Initial state: xyz = 0
31 Final state: xyz = 21
33 Initial state: xyz = 0
39 Final state: xyz = 1
[all …]
/art/tools/dexfuzz/src/dexfuzz/
DStreamConsumer.java37 private State state; field in StreamConsumer
58 state = State.WAITING; in StreamConsumer()
183 return (expectedState == state); in checkState()
187 if (state != previousState) { in changeState()
188 Log.error("StreamConsumer Unexpected state: " + state + ", expected " + previousState); in changeState()
189 state = State.ERROR; in changeState()
191 state = newState; in changeState()
196 state = State.ERROR; in setErrorState()
200 return state; in getCurrentState()
/art/runtime/base/
Dmutex_test.cc109 RecursiveLockWait* state = reinterpret_cast<RecursiveLockWait*>(arg); in RecursiveLockWaitCallback() local
110 state->mu.Lock(Thread::Current()); in RecursiveLockWaitCallback()
111 state->cv.Signal(Thread::Current()); in RecursiveLockWaitCallback()
112 state->mu.Unlock(Thread::Current()); in RecursiveLockWaitCallback()
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, nullptr, RecursiveLockWaitCallback, &state); in RecursiveLockWaitTest()
126 state.cv.Wait(Thread::Current()); in RecursiveLockWaitTest()
128 state.mu.Unlock(Thread::Current()); in RecursiveLockWaitTest()
[all …]
/art/test/063-process-manager/src/
DMain.java48 Thread.State state = t.getState(); in checkManager() local
49 System.out.println("process manager: " + state); in checkManager()
50 if (state != Thread.State.RUNNABLE && state != Thread.State.TIMED_WAITING) { in checkManager()
74 Thread.State state = t.getState(); in waitForReaperTimedWaiting() local
75 if (state != Thread.State.TIMED_WAITING) { in waitForReaperTimedWaiting()
/art/runtime/
Dmonitor_objects_stack_visitor.cc46 ThreadState state = Monitor::FetchState(GetThread(), in VisitFrame() local
49 switch (state) { in VisitFrame()
52 VisitWaitingObject(monitor_object, state); in VisitFrame()
60 VisitBlockedOnObject(monitor_object, state, lock_owner_tid); in VisitFrame()
Dthread-inl.h116 CHECK_NE(old_state_and_flags.as_struct.state, kRunnable); in SetState()
117 tls32_.state_and_flags.as_struct.state = new_state; in SetState()
118 return static_cast<ThreadState>(old_state_and_flags.as_struct.state); in SetState()
201 new_state_and_flags.as_struct.state = new_state; in TransitionToSuspendedAndRunCheckpoints()
243 int16_t old_state = old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
248 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
254 new_state_and_flags.as_struct.state = kRunnable; in TransitionFromSuspendedToRunnable()
271 << " state=" << old_state_and_flags.as_struct.state; in TransitionFromSuspendedToRunnable()
287 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
292 DCHECK_EQ(old_state_and_flags.as_struct.state, old_state); in TransitionFromSuspendedToRunnable()
Druntime_callbacks_test.cc121 if (state == CallbackState::kBase) { in ThreadStart()
122 state = CallbackState::kStarted; in ThreadStart()
125 state = CallbackState::kWrongStart; in ThreadStart()
130 if (state == CallbackState::kStarted && self == stored_self) { in ThreadDeath()
131 state = CallbackState::kDied; in ThreadDeath()
133 state = CallbackState::kWrongDeath; in ThreadDeath()
138 CallbackState state = CallbackState::kBase; member
153 cb_.state = CallbackState::kBase; // Ignore main thread attach. in TEST_F()
190 EXPECT_TRUE(cb_.state == CallbackState::kDied) << static_cast<int>(cb_.state); in TEST_F()
218 EXPECT_TRUE(cb_.state == CallbackState::kStarted) << static_cast<int>(cb_.state); in TEST_F()
Dmonitor_objects_stack_visitor.h65 virtual void VisitWaitingObject(ObjPtr<mirror::Object> obj, ThreadState state)
70 ThreadState state,
/art/runtime/jdwp/
Djdwp_socket.cc50 explicit JdwpSocketState(JdwpState* state) in JdwpSocketState()
51 : JdwpNetStateBase(state), in JdwpSocketState()
67 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe);
72 bool InitSocketTransport(JdwpState* state, const JdwpOptions* options) { in InitSocketTransport() argument
78 state->netState = SocketStartup(state, port, false); in InitSocketTransport()
82 state->netState = SocketStartup(state, port, true); in InitSocketTransport()
83 if (state->netState != nullptr) { in InitSocketTransport()
88 if (state->netState == nullptr) { in InitSocketTransport()
93 state->netState = SocketStartup(state, 0, false); in InitSocketTransport()
117 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe) { in SocketStartup() argument
[all …]
Djdwp_main.cc156 JdwpNetStateBase::JdwpNetStateBase(JdwpState* state) in JdwpNetStateBase() argument
157 : state_(state), socket_lock_("JdwpNetStateBase lock", kJdwpSocketLock) { in JdwpNetStateBase()
367 std::unique_ptr<JdwpState> state(new JdwpState(options)); in Create() local
370 InitSocketTransport(state.get(), options); in Create()
374 InitAdbTransport(state.get(), options); in Create()
385 state->thread_start_lock_.AssertNotHeld(self); in Create()
386 MutexLock thread_start_locker(self, state->thread_start_lock_); in Create()
392 CHECK_PTHREAD_CALL(pthread_create, (&state->pthread_, nullptr, StartJdwpThread, state.get()), in Create()
398 while (!state->debug_thread_started_) { in Create()
399 state->thread_start_cond_.Wait(self); in Create()
[all …]
Djdwp_adb.cc65 explicit JdwpAdbState(JdwpState* state) in JdwpAdbState()
66 : JdwpNetStateBase(state), in JdwpAdbState()
150 bool InitAdbTransport(JdwpState* state, const JdwpOptions*) { in InitAdbTransport() argument
152 state->netState = new JdwpAdbState(state); in InitAdbTransport()
153 return (state->netState != nullptr); in InitAdbTransport()
Djdwp_handler.cc259 static JdwpError VM_Exit(JdwpState* state, Request* request, ExpandBuf*) in VM_Exit() argument
262 state->ExitAfterReplying(exit_status); in VM_Exit()
531 static JdwpError RT_Signature(JdwpState* state, Request* request, ExpandBuf* pReply) in RT_Signature() argument
533 return RT_Signature(state, request, pReply, false); in RT_Signature()
536 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request* request, ExpandBuf* pReply) in RT_SignatureWithGeneric() argument
538 return RT_Signature(state, request, pReply, true); in RT_SignatureWithGeneric()
649 static JdwpError CT_InvokeMethod(JdwpState* state, Request* request, in CT_InvokeMethod() argument
656 return RequestInvoke(state, request, thread_id, 0, class_id, method_id, false); in CT_InvokeMethod()
666 static JdwpError CT_NewInstance(JdwpState* state, Request* request, in CT_NewInstance() argument
678 return RequestInvoke(state, request, thread_id, object_id, class_id, method_id, true); in CT_NewInstance()
[all …]
/art/tools/ahat/src/main/com/android/ahat/dominators/
DDominatorsComputation.java62 void setDominatorsComputationState(Object state); in setDominatorsComputationState() argument
125 public void setDominatorsComputationState(Node node, Object state) { in computeDominators()
126 node.setDominatorsComputationState(state); in computeDominators()
/art/openjdkjvmti/
DREADME.md6 state of the program by modifying dex files in memory and performing other
7 operations on the global runtime state.
/art/libelffile/elf/
Dxz_utils.cc101 std::unique_ptr<CXzUnpacker> state(new CXzUnpacker()); in XzDecompress() local
105 XzUnpacker_Construct(state.get(), &alloc); in XzDecompress()
114 int return_val = XzUnpacker_Code(state.get(), in XzDecompress()
127 CHECK(XzUnpacker_IsStreamWasFinished(state.get())); in XzDecompress()
128 XzUnpacker_Free(state.get()); in XzDecompress()
/art/libdexfile/dex/
Ddex_file_layout.cc59 void DexLayoutSections::Madvise(const DexFile* dex_file, MadviseState state) const { in Madvise()
62 UNUSED(state); in Madvise()
67 switch (state) { in Madvise()
/art/test/ti-agent/
Dsuspension_helper.cc30 jint state; in Java_art_Suspension_isSuspended() local
31 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetThreadState(thr, &state))) { in Java_art_Suspension_isSuspended()
34 return (state & JVMTI_THREAD_STATE_SUSPENDED) != 0; in Java_art_Suspension_isSuspended()
/art/test/1932-monitor-events-misc/
Dexpected.txt11 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowEnter], owner: <NULL>, entryCount…
18 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowEntered], owner: <NULL>, entryCou…
26 lock state is: MonitorUsage{ monitor: NamedLock[Lock testLockThrowBoth], owner: <NULL>, entryCount:…
32 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWait], owner: <NULL>, entryCount: 0, …
38 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowIllegalWait], owner: <NULL>, entryCou…
45 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaited], owner: <NULL>, entryCount: 0…
52 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaitedTimeout], owner: <NULL>, entryC…
59 lock state is: MonitorUsage{ monitor: NamedLock[Lock testThrowWaitedInterrupt], owner: <NULL>, entr…
89 Testing the lock state if MonitorEnter throws in a native method
95 Lock state is: MonitorUsage{ monitor: NamedLock[test testNativeLockStateThrowEnter], owner: NativeL…
[all …]
/art/benchmark/jni-perf/
Dinfo.txt1 Tests for measuring performance of JNI state changes.
/art/runtime/mirror/
Dthrowable.cc63 void Throwable::SetStackState(ObjPtr<Object> state) REQUIRES_SHARED(Locks::mutator_lock_) { in SetStackState() argument
64 CHECK(state != nullptr); in SetStackState()
66 SetFieldObjectVolatile<true>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); in SetStackState()
68 SetFieldObjectVolatile<false>(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); in SetStackState()
/art/dex2oat/dex/
Ddex_to_dex_compiler.cc559 CompilationState state(this, unit, compilation_level, existing_quicken_data); in CompileMethod() local
560 quicken_data = state.Compile(); in CompileMethod()
561 optimized_return_void = state.optimized_return_void_; in CompileMethod()
594 CompilationState state(this, unit, compilation_level, /*quicken_data*/ nullptr); in CompileMethod() local
595 quicken_data = state.Compile(); in CompileMethod()
650 const QuickenState& state = pair.second; in UnquickenConflictingMethods() local
651 CHECK_GE(state.methods_.size(), 1u); in UnquickenConflictingMethods()
652 if (state.conflict_) { in UnquickenConflictingMethods()
655 optimizer::ArtDecompileDEX(*state.methods_[0].dex_file, in UnquickenConflictingMethods()
657 ArrayRef<const uint8_t>(state.quicken_data_), in UnquickenConflictingMethods()
[all …]
/art/test/1942-suspend-raw-monitor-exit/
Dexpected.txt1 Initial state.
/art/test/924-threads/src/art/
DTest924.java225 int state; in waitForState() local
227 while ((state = getThreadState(t)) != desired && deadline.isAfter(Instant.now())) { in waitForState()
232 printThreadState(state); in waitForState()
428 private static void printThreadState(int state) { in printThreadState() argument
432 if ((state & i) != 0) { in printThreadState()
444 System.out.println(Integer.toHexString(state) + " = " + sb.toString()); in printThreadState()

123