OSDN Git Service

ART: Stash any exception before dumping a stack
authorAndreas Gampe <agampe@google.com>
Fri, 3 Oct 2014 04:00:06 +0000 (21:00 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 3 Oct 2014 04:00:06 +0000 (21:00 -0700)
commitd87bc135dba41f0f21cf0018a3b2cb46809890d7
tree406b1d03ee31f07d591ad4504f9ba11e411648dc
parent8c732ca5ebec47ef7453fc5e7dc3fb40402d4ff1
ART: Stash any exception before dumping a stack

Dumping a managed stack entails dumping held locks, in the process
of which the verifier will be run. The verifier works under the
assumption that there were no exceptions when started. This
assumption is violated for example on certain JNI aborts.

The solution is to stash any pending exception before dumping the
stack, and re-installing it afterwards.

Bug: 17669899
Change-Id: I3cd0526b52fce1acaa35fe0e419176478c82be22
runtime/thread.cc