/dalvik/vm/os/ |
H A D | os.h | 20 * Raises the scheduling priority of the current thread. Returns the 29 * Sets the current thread scheduling priority. Used to undo the effects 37 * Changes the priority of a system thread to match that of the Thread object. 42 void os_changeThreadPriority(Thread* thread, int newPriority); 45 * Returns the thread priority for the current thread by querying the system. 46 * This is useful when attaching a thread through JNI.
|
H A D | linux.cpp | 31 void os_changeThreadPriority(Thread* thread, int newPriority) argument
|
H A D | android.cpp | 32 * 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/vm/ |
H A D | Thread.cpp | 61 // 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 D | Ddm.cpp | 167 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 D | Sync.cpp | 47 * 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 D | Ddm.h | 38 * Turn thread notification on or off. 43 * If thread start/stop notification is enabled, call this when threads 46 void dvmDdmSendThreadNotification(Thread* thread, bool started); 49 * If thread start/stop notification is enabled, call this when the 50 * thread name changes. 55 * Generate a byte[] full of thread stats for a THST packet. 76 * Get an array of StackTraceElement objects for the specified thread.
|
H A D | Thread.h | 18 * VM thread support. 53 THREAD_STARTING = 6, /* started, not yet on thread list */ 59 /* thread priorities, from java.lang.Thread */ 101 * Our per-thread data. 124 * a count of the number of times the thread has been suspended. When 125 * the count drops to zero, the thread resumes. 161 /* thread handle, as reported by pthread_self() */ 225 * Thread's current status. Can only be changed by the thread itself 230 /* thread ID, only useful under Linux */ 239 /* the JNIEnv pointer associated with this thread */ [all...] |
H A D | Sync.h | 51 * Lock owner field. Contains the thread id of the thread currently 106 * Interrupt a thread. If it's waiting on a monitor, wake it up. 108 void dvmThreadInterrupt(Thread* thread); 132 * Get the thread that holds the lock on the specified object. The 135 * The caller must lock the thread list before calling here. 140 * Checks whether the object is held by the specified thread. 142 bool dvmHoldsLock(Thread* thread, Object* obj);
|
H A D | Exception.h | 24 * 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 D | Debugger.cpp | 43 that the debugger thread can't cause a GC: it has to expand the heap or 44 fail to allocate. (Might want to make that "is debugger thread AND all 74 The VM has a Thread struct associated with every active thread. The 79 When a thread goes away, we lock the list and free the struct. To 80 avoid having the thread list updated or Thread structs freed out from 81 under us, we want to acquire and hold the thread list lock while we're 226 ALOGI("ignoring registerObject request in thread=%d", 375 * Only called from the JDWP handler thread. 391 * Only called from the JDWP handler thread. 413 * Only called from the JDWP handler thread 1700 Thread* thread; local 1717 Thread* thread; local 1765 Thread* thread; local 1793 Thread* thread; local 1820 Thread* thread; local 1880 Thread* thread = threadObjToThread(threadObj); local 1957 Thread* thread; local 2051 Thread* thread; local 2073 Thread* thread; local 2150 Thread* thread; local 2171 Thread* thread; local 2489 dvmDbgPostThreadStart(Thread* thread) argument 2502 dvmDbgPostThreadDeath(Thread* thread) argument 2564 Thread* thread; local [all...] |
H A D | Misc.h | 235 * 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...] |
/dalvik/vm/native/ |
H A D | java_lang_VMThread.cpp | 61 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 D | dalvik_system_VMStack.cpp | 130 * 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...] |
/dalvik/vm/interp/ |
H A D | Interp.h | 40 void dvmInterpret(Thread* thread, const Method* method, JValue* pResult); 64 bool dvmAddSingleStep(Thread* thread, int size, int depth); 65 void dvmClearSingleStep(Thread* thread); 90 void dvmDisableSubMode(Thread* thread, ExecutionSubModes subMode); 91 extern "C" void dvmEnableSubMode(Thread* thread, ExecutionSubModes subMode); 94 void dvmAddToSuspendCounts(Thread* thread, int delta, int dbgDelta); 96 void dvmInitializeInterpBreak(Thread* thread); 99 * Register a callback to occur at the next safe point for a single thread. 103 * bool funct(Thread* thread, void* arg) 108 void dvmArmSafePointCallback(Thread* thread, SafePointCallbac [all...] |
H A D | Stack.h | 33 determined when the thread is created. 176 * setting thread->interpStackStart). 178 bool dvmInitInterpStack(Thread* thread, int stackSize); 182 * "fake" native frames at the top of each thread stack. 184 bool dvmPushJNIFrame(Thread* thread, const Method* method); 189 bool dvmPushLocalFrame(Thread* thread, const Method* method); 190 bool dvmPopLocalFrame(Thread* thread); 235 int dvmComputeVagueFrameDepth(Thread* thread, const void* fp); 276 void dvmDumpThreadStack(const DebugOutputTarget* target, Thread* thread); 277 void dvmDumpRunningThreadStack(const DebugOutputTarget* target, Thread* thread); [all...] |
H A D | Interp.cpp | 412 * 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 D | Stack.cpp | 33 * 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...] |
/dalvik/vm/alloc/ |
H A D | Visit.cpp | 83 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...] |
/dalvik/hit/src/com/android/hit/ |
H A D | StackTrace.java | 37 public StackTrace(int serial, int thread, StackFrame[] frames) { argument 39 mThreadSerialNumber = thread;
|
H A D | RootObj.java | 41 public RootObj(RootType type, long id, int thread, StackTrace stack) { argument 44 mThread = thread;
|
/dalvik/tests/051-thread/src/ |
H A D | Main.java | 20 * Test some basic thread stuff. 31 for (MyThread thread : threads) { 32 thread.start(); 34 for (MyThread thread : threads) { 35 thread.join(); 41 System.out.println("thread test done"); 49 System.out.print("Starting thread '" + t.getName() + "'\n"); 62 * Simple thread capacity test.
|
/dalvik/vm/mterp/x86/ |
H A D | OP_THROW.S | 4 * Throw an exception object in the current thread. 12 movl %eax,offThread_exception(%ecx) # thread->exception<- obj
|
/dalvik/vm/mterp/armv5te/ |
H A D | OP_THROW.S | 4 * Throw an exception object in the current thread. 13 str r1, [rSELF, #offThread_exception] @ thread->exception<- obj
|
/dalvik/vm/mterp/mips/ |
H A D | OP_THROW.S | 4 * Throw an exception object in the current thread. 13 STORE_offThread_exception(a1, rSELF) # thread->exception <- obj
|