summaryrefslogtreecommitdiff
path: root/runtime/runtime_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* ART: Correctly handle an abort from an unattached threadAndreas Gampe2019-06-141-1/+22
| | | | | | | | | | | | | Libbase may be shared with other platform components. In that case, if the aborting thread is attached to the runtime, ART will print its usual dump to be helpful. If the thread is unattached, this must not be done as it would violate mutex invariants. Bug: 135056249 Test: m test-art-host-gtest-runtime_test Change-Id: I61c3df5fdbc8ddaf279f39dc653738016986dcd9
* ART: Allow thread suspend lock to be held when dumping a threadAndreas Gampe2019-06-031-0/+14
| | | | | | | | | | | | Only dumping a thread's suspend state requires holding the lock. Specialize the code to recognize if the lock is already held, and remove the negative capability from the callers. Bug: 134037466 Bug: 134167395 Test: m Test: m test-art-host-gtest-runtime_test Change-Id: Ib55eafba72c5d15de01719840ba3f223ae4af8c7
* ART: Skip all-threads dump on abort if locks are heldAndreas Gampe2019-06-031-0/+43
| | | | | | | | | | | | The thread-list locks are not recursive. Skip the dump on abort if the locks are already held. Thread state will still be captured on-device by a tombstone. Bug: 134037466 Bug: 134167395 Test: m Test: m test-art-host-gtest-runtime_test Change-Id: I15ba38a018a39f1cc12577cdf8fb94876b96bbaa
* Add ART -help and -showversionBrian Carlstrom2014-03-031-87/+0
| | | | | Bug: https://code.google.com/p/android/issues/detail?id=62149 Change-Id: I5c21c0433f5f341f94e7d977e8d2d69cc46d6fe3
* Split up CommonTest into CommonRuntimeTest and CommonCompilerTestBrian Carlstrom2014-02-261-2/+2
| | | | Change-Id: I8dcf6b29a5aecd445f1a3ddb06386cf81dbc9c70
* Create separate Android.mk for main build targetsBrian Carlstrom2013-07-121-0/+87
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