summaryrefslogtreecommitdiffstats
path: root/runtime/signal_catcher.cc
Commit message (Collapse)AuthorAgeFilesLines
* Now we have a proper C++ library, use std::unique_ptr.Ian Rogers2014-05-191-1/+1
| | | | | | | Also remove the Android.libcxx.mk and other bits of stlport compatibility mechanics. Change-Id: Icdf7188ba3c79cdf5617672c1cfd0a68ae596a61
* Run checkpoints after resuming threads in signal catcher SIGQUIT.Mathieu Chartier2014-01-151-3/+4
| | | | | | | | | | | | | Previously we were running checkpoints after restoring the thread state, but before resuming the threads. This caused an issue with profiler checkpoints since these use a ScopedObjectAccess. Since we had with exclusive access to the mutator lock when we ran the checkpoints, it caused deadlocks when we tried to gain shared access to the mutator lock in the ScopedThreadStateChange if the old_state was any state other than kRunnable. Bug: 12490061 Change-Id: I5f922693a4bf5d18cf9d22f1f28a7a04b6bfc077
* Inflate contended lock word by suspending owner.Ian Rogers2013-10-021-1/+0
| | | | | | | | | | | | | | | | | | | | Bug 6961405. Don't inflate monitors for Notify and NotifyAll. Tidy lock word, handle recursive lock case alongside unlocked case and move assembly out of line (except for ARM quick). Also handle null in out-of-line assembly as the test is quick and the enter/exit code is already a safepoint. To gain ownership of a monitor on behalf of another thread, monitor contenders must not hold the monitor_lock_, so they wait on a condition variable. Reduce size of per mutex contention log. Be consistent in calling thin lock thread ids just thread ids. Fix potential thread death races caused by the use of FindThreadByThreadId, make it invariant that returned threads are either self or suspended now. Code size reduction on ARM boot.oat 0.2%. Old nexus 7 speedup 0.25%, new nexus 7 speedup 1.4%, nexus 10 speedup 2.24%, nexus 4 speedup 2.09% on DeltaBlue. Change-Id: Id52558b914f160d9c8578fdd7fc8199a9598576a
* Fix cpplint whitespace/comments issuesBrian Carlstrom2013-07-261-1/+1
| | | | Change-Id: Iae286862c85fb8fd8901eae1204cd6d271d69496
* Create separate Android.mk for main build targetsBrian Carlstrom2013-07-121-0/+225
The runtime, compiler, dex2oat, and oatdump now are in seperate trees to prevent dependency creep. They can now be individually built without rebuilding the rest of the art projects. dalvikvm and jdwpspy were already this way. Builds in the art directory should behave as before, building everything including tests. Change-Id: Ic6b1151e5ed0f823c3dd301afd2b13eb2d8feb81