summaryrefslogtreecommitdiffstats
path: root/vm/Thread.c
Commit message (Collapse)AuthorAgeFilesLines
* eclair snapshotJean-Baptiste Queru2009-11-121-98/+511
|
* Reduce VM aborts during high CPU stress.Andy McFadden2009-07-011-11/+67
| | | | | | | | | | | | | | | | | | | | | | (This was cherry-picked from master 2aa43610 for internal bug 1952616.) The VM has some timeouts that are meant to kill the current process if something gets stuck (e.g. a thread grabs a lock and then manages to die while the rest of the process continues on). These were tripping a little too easily during some high-load situations. This changes the order of operations so that we now unlock the "thread suspend" lock before sending a wakeup broadcast to the condition variable that threads sleep on. This should make it less likely for a thread to be running for an extended period while the lock is held. (Relates to internal bug 1664687.) This also wraps a couple of things (pthread_create, dlopen) with a state change to VMWAIT. During high load situations these can take a while to complete, and we would (with the K-Means Visualizer load generator running) very occasionally time out. Augmented the debug output in a couple of minor ways. Updated comments.
* Pull 138592-p9 from master to donut.Andy McFadden2009-07-011-13/+40
| | | | | | | | | | | | Switch from VMWAIT to RUNNING when executing code on behalf of the debugger. Reset the thread-suspend lock timeout if we have to suspend while trying to acquire it. Also, clear any pending exception before calling interpreted code. Reworked some log messages to make them easier to decipher. (For internal bug 1952616.)
* dalvik: thread: Set the control group of a thread to the background groupSan Mehat2009-06-261-2/+2
| | | | | | if the priority is logically-lower than ANDROID_PRIORITY_BACKGROUND Signed-off-by: San Mehat <san@google.com>
* Moved the context class loader init down a bit to ensure proper init.Andy McFadden2009-05-041-17/+21
| | | | | | Since we're executing interpreted code it's best if we set the context class loader as late as possible in this function. I also updated a few comments while I was in there.
* Set the main thread's context class loader to the system class loader.Andy McFadden2009-05-041-0/+16
|
* vm: Add support for changing the scheduler group for a thread.San Mehat2009-04-231-0/+44
| | | | | | Also temporarily bumps the scheduler group for background threads while performing GC Signed-off-by: San Mehat <san@google.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+3266
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-3266/+0
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+12
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-7/+29
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+3232