Searched defs:thread (Results 1 - 25 of 26) sorted by relevance

12

/dalvik/vm/os/
H A Dlinux.cpp31 void os_changeThreadPriority(Thread* thread, int newPriority) argument
H A Dandroid.cpp32 * We use Android thread priority constants to be consistent with the rest
48 void os_changeThreadPriority(Thread* thread, int newPriority) argument
56 pid_t pid = thread->systemTid;
65 std::string threadName(dvmGetThreadName(thread));
97 /* Get the priority (the "nice" value) of the current thread. The
/dalvik/hit/src/com/android/hit/
H A DStackTrace.java37 public StackTrace(int serial, int thread, StackFrame[] frames) { argument
39 mThreadSerialNumber = thread;
H A DRootObj.java41 public RootObj(RootType type, long id, int thread, StackTrace stack) { argument
44 mThread = thread;
H A DState.java95 public final void addThread(ThreadObj thread, int serialNumber) { argument
96 mCurrentHeap.addThread(thread, serialNumber);
H A DHeap.java83 public final void addThread(ThreadObj thread, int serialNumber) { argument
84 mThreads.put(serialNumber, thread);
/dalvik/vm/
H A DException.h24 * Create a Throwable and throw an exception in the current thread (where
25 * "throwing" just means "set the thread's exception pointer").
90 * Return the exception being thrown in the current thread, or NULL if
98 * Set the exception being thrown in the current thread.
170 * If "doUnroll" is set, we unroll "thread"s stack as we go (and update
187 void* dvmFillInStackTraceInternal(Thread* thread, bool wantObject, size_t* pCount);
189 INLINE Object* dvmFillInStackTrace(Thread* thread) { argument
190 return (Object*) dvmFillInStackTraceInternal(thread, true, NULL);
194 INLINE int* dvmFillInStackTraceRaw(Thread* thread, size_t* pCount) { argument
195 return (int*) dvmFillInStackTraceInternal(thread, fals
[all...]
H A DDebugger.h67 Thread* thread; /* don't deref; for comparison only */ member in struct:StepControl
84 /* boolean; set if the JDWP thread wants this thread to do work */
89 Object* thread; member in struct:DebugInvokeReq
120 * Return the DebugInvokeReq for the current thread.
267 void dvmDbgPostThreadStart(Thread* thread);
268 void dvmDbgPostThreadDeath(Thread* thread);
H A DMisc.h235 * Get the current per-thread CPU time. This clock increases monotonically
236 * when the thread is running, but not when it's sleeping or blocked on a
242 * If the thread CPU clock is not available, this always returns (u8)-1.
247 * Per-thread CPU time, in micros.
254 * Like dvmGetThreadCpuTimeNsec, but for a different thread.
256 u8 dvmGetOtherThreadCpuTimeNsec(pthread_t thread);
257 INLINE u8 dvmGetOtherThreadCpuTimeUsec(pthread_t thread) { argument
258 return dvmGetOtherThreadCpuTimeNsec(thread) / 1000;
300 * Get some per-thread stats from /proc/self/task/N/stat.
306 int processor; /* number of CPU that last executed thread */
[all...]
H A DDdm.cpp167 ALOGE("ERROR: DDM broadcast with thread status=%d", self->status);
218 * Turn thread notification on or off.
223 * We lock the thread list to avoid sending duplicate events or missing
224 * a thread change. We should be okay holding this lock while sending
225 * the messages out. (We have to hold it while accessing a live thread.)
231 Thread* thread; local
232 for (thread = gDvm.threadList; thread != NULL; thread = thread
247 dvmDdmSendThreadNotification(Thread* thread, bool started) argument
366 Thread* thread; local
429 Thread* thread; local
[all...]
H A DMisc.cpp460 * Get the per-thread CPU time, in nanoseconds.
476 * Get the per-thread CPU time, in nanoseconds, for the specified thread.
478 u8 dvmGetOtherThreadCpuTimeNsec(pthread_t thread) argument
483 if (pthread_getcpuclockid(thread, &clockId) != 0)
509 * thread, the kernel might not actually transfer control elsewhere.
633 * Get some per-thread stats.
H A DProfile.cpp55 * u1 thread ID
60 * u2 thread ID
65 * u2 thread ID
83 * Returns true if the thread CPU clock should be used.
117 * Get the thread-cpu time, in usec.
119 * a thread spends running and not blocked.
135 * Get the clock used for stopwatch-like timing measurements on a single thread.
274 Thread* thread; local
277 for (thread = gDvm.threadList; thread !
[all...]
H A DSync.cpp47 * lock count thread id hash state 0
66 * Only one thread can own the monitor at any time. There may be several
73 Thread* owner; /* which thread currently owns the lock? */
148 * Returns the thread id of the thread owning the given lock.
170 * Get the thread that holds the lock on the specified object. The
173 * The caller must lock the thread list before calling here.
185 * Checks whether the given thread holds the given
188 bool dvmHoldsLock(Thread* thread, Object* obj) argument
190 if (thread
499 waitSetAppend(Monitor *mon, Thread *thread) argument
523 waitSetRemove(Monitor *mon, Thread *thread) argument
772 Thread* thread; local
804 Thread* thread; local
1186 dvmThreadInterrupt(Thread* thread) argument
1233 Thread *self, *thread; local
[all...]
H A DThread.cpp61 // change this to ALOGV/ALOGD to debug thread activity
68 thread, are visible to code running in the VM and to the debugger. (We
69 don't want the debugger to try to manipulate the thread that listens for
84 Internal native VM threads, such as the finalizer thread, must explicitly
89 thread. The debugger may suspend or resume individual threads, while the
90 GC always suspends all threads. Each thread has a "suspend count" that
92 When the count is zero, the thread is runnable. This allows us to fulfill
93 a debugger requirement: if the debugger suspends a thread, the thread is
98 Certain "slow" VM operations, such as starting up a new thread, wil
254 Thread* thread; local
683 Thread* thread; local
807 Thread* thread; local
900 prepareThread(Thread* thread) argument
953 unlinkThread(Thread* thread) argument
971 freeThread(Thread* thread) argument
1014 setThreadSelf(Thread* thread) argument
1098 assignThreadId(Thread* thread) argument
1119 releaseThreadId(Thread* thread) argument
1134 createFakeEntryFrame(Thread* thread) argument
1173 createFakeRunFrame(Thread* thread) argument
[all...]
H A DException.cpp809 * Pass in the thread whose stack we're interested in. If "thread" is
810 * not self, the thread must be suspended. This implies that the thread
823 void* dvmFillInStackTraceInternal(Thread* thread, bool wantObject, size_t* pCount) argument
834 fp = thread->interpSave.curFrame;
836 assert(thread == dvmThreadSelf() || dvmIsSuspended(thread));
1157 * Print the stack trace of the current thread's exception, as well as
/dalvik/vm/alloc/
H A DVisit.cpp83 static void visitThreadStack(RootVisitor *visitor, Thread *thread, void *arg) argument
86 assert(thread != NULL);
87 u4 threadId = thread->threadId;
89 for (u4 *fp = (u4 *)thread->interpSave.curFrame;
160 * Visits all roots associated with a thread.
162 static void visitThread(RootVisitor *visitor, Thread *thread, void *arg) argument
167 assert(thread != NULL);
168 threadId = thread->threadId;
169 (*visitor)(&thread->threadObj, threadId, ROOT_THREAD_OBJECT, arg);
170 (*visitor)(&thread
184 Thread *thread; local
[all...]
H A DMarkSweep.cpp145 static void rootMarkObjectVisitor(void *addr, u4 thread, RootType type, argument
161 * - For each thread:
192 static void rootReMarkObjectVisitor(void *addr, u4 thread, RootType type, argument
703 * scheduled for appending by the heap worker thread.
/dalvik/vm/native/
H A Ddalvik_system_VMStack.cpp130 * Return a trace buffer for the specified thread or NULL if the
131 * thread is not still alive. *depth is set to the length of a
138 Thread* thread; local
146 * Make sure the thread is still alive and in the list.
148 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) {
149 if (thread->threadObj == targetThreadObj)
152 if (thread
[all...]
H A Djava_lang_VMThread.cpp61 Thread* thread; local
65 thread = dvmGetThreadFromThreadObject(thisPtr);
66 if (thread != NULL)
67 result = thread->status;
78 * Returns whether the current thread has a monitor lock on the specific
85 Thread* thread; local
93 thread = dvmGetThreadFromThreadObject(thisPtr);
94 int result = dvmHoldsLock(thread, object);
103 * Interrupt a thread that is waiting (or is about to wait) on a monitor.
108 Thread* thread; local
146 Thread* thread; local
170 Thread* thread; local
200 Thread* thread; local
[all...]
H A Ddalvik_system_Zygote.cpp376 * easy to handle, because the JDWP thread isn't started until we call
387 * This is easy to handle because the compiler thread and associated resources
643 // a single-threaded process, so we know no other thread held the heap
650 * Our system thread ID has changed. Get the new one.
652 Thread* thread = dvmThreadSelf(); local
653 thread->systemTid = dvmGetSysThreadId();
/dalvik/vm/compiler/
H A DCompiler.cpp160 * but the compiler thread will only signal once when the queue is
161 * emptied. Furthermore, the compiler thread may have been shutdown
162 * so the blocked thread may never get the wakeup signal.
238 static void crawlDalvikStack(Thread *thread, bool print) argument
240 void *fp = thread->interpSave.curFrame;
245 ALOGD("Crawling tid %d (%s / %p %s)", thread->systemTid,
246 dvmGetThreadStatusStr(thread->status),
247 thread->inJitCodeCache,
248 thread->inJitCodeCache ? "jit" : "interp");
276 (u1 *) (saveArea+1) == thread
281 Thread* thread; local
[all...]
H A DFrontend.cpp384 * Crawl the stack of the thread that requesed compilation to see if any of the
387 static bool filterMethodByCallGraph(Thread *thread, const char *curMethodName) argument
390 StackSaveArea *ssaPtr = ((StackSaveArea *) thread->interpSave.curFrame) - 1;
1584 * dvmJitInstallClassObjectPointers will switch the thread state
2156 * dvmJitInstallClassObjectPointers will switch the thread state
/dalvik/vm/interp/
H A DStack.cpp33 * Initialize the interpreter stack in a new thread.
38 bool dvmInitInterpStack(Thread* thread, int stackSize) argument
40 assert(thread->interpStackStart != NULL);
42 assert(thread->interpSave.curFrame == NULL);
340 dvmAbort(); // stack trashed -- nowhere to go in this thread
378 LOGVV("thread=%d native code calling %s.%s %s", self->threadId,
861 int dvmComputeVagueFrameDepth(Thread* thread, const void* fp) argument
863 const u1* interpStackStart = thread->interpStackStart;
865 assert((u1*) fp >= interpStackStart - thread->interpStackSize);
1079 * in the top stack frame of "thread"
[all...]
H A DInterp.cpp412 * This will only be run from the JDWP thread, and it will happen while
430 * This can be called from the JDWP thread (because the debugger has
431 * cancelled the breakpoint) or from an event thread (because it's a
497 * We set up some initial values based on the thread's current state. This
498 * won't work well if the thread is running, so it's up to the caller to
501 * This is only called from the JDWP thread.
503 bool dvmAddSingleStep(Thread* thread, int size, int depth) argument
507 if (pCtrl->active && thread != pCtrl->thread) {
509 pCtrl->thread, threa
607 dvmClearSingleStep(Thread* thread) argument
1454 updateInterpBreak(Thread* thread, ExecutionSubModes subMode, bool enable) argument
1482 Thread* thread; local
1500 dvmAddToSuspendCounts(Thread* thread, int delta, int dbgDelta) argument
1511 dvmDisableSubMode(Thread* thread, ExecutionSubModes subMode) argument
1516 dvmEnableSubMode(Thread* thread, ExecutionSubModes subMode) argument
1540 Thread* thread; local
1592 dvmArmSafePointCallback(Thread* thread, SafePointCallback funct, void* arg) argument
1660 dvmInitializeInterpBreak(Thread* thread) argument
[all...]
H A DJit.cpp36 /* Allocate space for per-thread ShadowSpace data structures */
50 /* Free per-thread ShadowSpace data structures */
58 * Save out PC, FP, thread state, and registers to shadow space.
436 * of this value in their private thread structures and won't see
442 * free it because some thread may be holding a reference.
583 * some other thread allocated the slot we were looking
601 /* Another thread got there first for this dPC */
1090 * thread is in a single-step mode.
1100 * thread is in a single-step mode.
1259 * detected by the compiler thread an
1497 dvmJitUpdateThreadStateSingle(Thread* thread) argument
1510 Thread* thread; local
[all...]

Completed in 1290 milliseconds

12