OSDN Git Service

Harden the native stack dumping decision.
authorElliott Hughes <enh@google.com>
Thu, 11 Apr 2013 23:28:38 +0000 (16:28 -0700)
committerElliott Hughes <enh@google.com>
Thu, 11 Apr 2013 23:43:36 +0000 (16:43 -0700)
commit7964f9ca0a14380a121c2757c566787b3d21bbe1
tree33ca001392ad57d99efda7df2f81d0f89d7eb942
parent5f4b7d8a71a8d150785d2ef2e6efc2392ce985eb
Harden the native stack dumping decision.

We've seen monkey crashes in this code, though I haven't been
able to reproduce them in my own SIGQUIT stress tests. Address
the two most likely causes of trouble: dumping the signal catcher's
own thread (which will always be runnable), and assuming that the
Method* pulled from the save area is non-NULL.

(cherry-pick of feddac5b7718dd8141391bfeb6359f1906542823.)

Bug: 8596028
Change-Id: I7a70ce047c8285715eb7bbb9438e8ef5d81fc59c
vm/Thread.cpp