summaryrefslogtreecommitdiffstats
path: root/oatdump
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-02-20 16:17:30 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2014-02-20 16:17:30 -0800
commit90d706849a09590f150748ff97256ef718aca441 (patch)
tree0126eac69b82895b17cffd1ce5b893c268aa6a5f /oatdump
parentc4a2ee4958c1abe17973233b154874ade01d0a99 (diff)
downloadart-90d706849a09590f150748ff97256ef718aca441.tar.gz
art-90d706849a09590f150748ff97256ef718aca441.tar.bz2
art-90d706849a09590f150748ff97256ef718aca441.zip
Fix oatdumpd.
Bug: 13063529 Change-Id: I777cd7621ed522b8ab84c5bb1a9d2e5583817a08
Diffstat (limited to 'oatdump')
-rw-r--r--oatdump/oatdump.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index 53b07f9d12..2a0d8265ae 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -808,6 +808,10 @@ class ImageDumper {
{
WriterMutexLock mu(self, *Locks::heap_bitmap_lock_);
heap->FlushAllocStack();
+ // Since FlushAllocStack() above resets the (active) allocation
+ // stack. Need to revoke the thread-local allocation stacks that
+ // point into it.
+ heap->RevokeAllThreadLocalAllocationStacks(self);
}
{
std::ostream* saved_os = os_;