commit | 4201cf014cfe00c145edc0b32bf30b1ceaf1495f | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Jan 12 14:51:44 2017 -0800 |
committer | Mathieu Chartier <mathieuc@google.com> | Thu Jan 12 15:15:51 2017 -0800 |
tree | 086c5df83832b6d80864a294503b6dc6025f270c | |
parent | 9e68f5043323eaf4543ebf3b6f496145d8ae77a2 [diff] |
Avoid suspending heap task thread for getting stack traces Instead of suspending the heap task thread, GetThreadStack (called by VMStack_fillStackTraceElements and VMStack_getThreadStackTrace) will return an empty thread stack. This fixes possible deadlocks caused by suspending the GC thread and doing allocations for the stack trace. Bug: 28261069 Test: test-art-host Change-Id: I45a0b8ac94a99d6bbcfcdc2b41afadf941ec0138