Merge "Avoid using thread cache in unwinder." into sc-dev

This commit is contained in:
Christopher Ferris 2021-06-25 00:03:51 +00:00 committed by Android (Google) Code Review
commit a705c040ea
1 changed files with 3 additions and 0 deletions

View File

@ -593,6 +593,9 @@ void engrave_tombstone_ucontext(int tombstone_fd, int proto_fd, uint64_t abort_m
};
unwindstack::UnwinderFromPid unwinder(kMaxFrames, pid, unwindstack::Regs::CurrentArch());
auto process_memory =
unwindstack::Memory::CreateProcessMemoryCached(getpid());
unwinder.SetProcessMemory(process_memory);
if (!unwinder.Init()) {
async_safe_fatal("failed to init unwinder object");
}