diff options
author | Christopher Ferris <cferris@google.com> | 2017-10-17 14:12:52 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-10-30 13:37:50 -0700 |
commit | 086baf981d696cb80c564df9c34affdcd2458504 (patch) | |
tree | c8d6350c5947fdeb0f9e4b3692cfa706ad5b1317 /libbacktrace/UnwindMap.cpp | |
parent | d9f183b83b17795cf8b075da44b9d85c166217af (diff) | |
download | system_core-086baf981d696cb80c564df9c34affdcd2458504.tar.gz system_core-086baf981d696cb80c564df9c34affdcd2458504.tar.bz2 system_core-086baf981d696cb80c564df9c34affdcd2458504.zip |
Switch libbacktrace new unwinder.
Update the backtrace leak tests to share a map since this is the most
common way it will be used, and it runs much faster.
Remove the CreateNew functions, and references to them.
Remove benchmarks of CreateNew functions.
Test: Builds, ran new unit tests, ran art tests.
Change-Id: I4a25a412f1a74c6d43aebbebbf32ead20ead8f94
Diffstat (limited to 'libbacktrace/UnwindMap.cpp')
-rw-r--r-- | libbacktrace/UnwindMap.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libbacktrace/UnwindMap.cpp b/libbacktrace/UnwindMap.cpp index 0b8232b2f..3cab0d1b0 100644 --- a/libbacktrace/UnwindMap.cpp +++ b/libbacktrace/UnwindMap.cpp @@ -146,24 +146,3 @@ void UnwindMapLocal::FillIn(uintptr_t addr, backtrace_map_t* map) { } } } - -//------------------------------------------------------------------------- -// BacktraceMap create function. -//------------------------------------------------------------------------- -BacktraceMap* BacktraceMap::Create(pid_t pid, bool uncached) { - BacktraceMap* map; - - if (uncached) { - // Force use of the base class to parse the maps when this call is made. - map = new BacktraceMap(pid); - } else if (pid == getpid()) { - map = new UnwindMapLocal(); - } else { - map = new UnwindMapRemote(pid); - } - if (!map->Build()) { - delete map; - return nullptr; - } - return map; -} |