commit | c02685c18904d41424942c956258a527f7b20bb0 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Mon Oct 17 17:40:27 2016 -0700 |
committer | Andreas Gampe <agampe@google.com> | Mon Oct 17 17:40:27 2016 -0700 |
tree | e55c8b3b214ffbd9ccd0de2cf1e2eb2e9be3624a | |
parent | 38a4223fcc0493553d9ad324a1dc145869eb663a [diff] |
ART: Fix lock order issue in allocation tracking (Un)instrumenting requires the instrumenting lock, which must be acquired before the mutator lock. As the plugin can be called both with and without the lock held, be careful. For simplicity, acquire the lock (potentially) and immediately suspend. Bug: 31684277 Test: m test-art-host Change-Id: Ia6cee2cbe90f13f5543bdfea815d469b28a0f8f4