summaryrefslogtreecommitdiff
path: root/compiler/llvm/compiler_llvm.cc
diff options
context:
space:
mode:
author Hiroshi Yamauchi <yamauchi@google.com> 2013-11-18 14:49:09 -0800
committer Hiroshi Yamauchi <yamauchi@google.com> 2013-11-18 17:35:11 -0800
commit4ce1f00cc74867188347e463f4a5ecb9fe55cde5 (patch)
treeb93e8176c17be2562c70a14247ddc1e5533ce40a /compiler/llvm/compiler_llvm.cc
parente5eedcb4a634246d1f912992853441f715d705cc (diff)
Fix a per-process dumpsys meminfo crash.
In the InvalidateAllocator() function, DlMallocSpace and RosAllocSpace both null out the underlying allocator pointer at the zygote fork time so that new allocations won't accidentally happen in the zygote space after a zygote fork. However, nulling out the only allocator pointer would cause crashes in non-allocation uses such as GetFootprint() in this particular crash. Fix this by creating a second pointer just for the allocation purpose that gets nulled upon a InvalidateAllocator() call while the original pointer keeps pointing to the allocator. Change-Id: Ie751d9380db39baace9e25712a3824eec9a9969a
Diffstat (limited to 'compiler/llvm/compiler_llvm.cc')
0 files changed, 0 insertions, 0 deletions