diff options
Diffstat (limited to 'chromium/base/profiler/chrome_unwinder_android.cc')
-rw-r--r-- | chromium/base/profiler/chrome_unwinder_android.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/base/profiler/chrome_unwinder_android.cc b/chromium/base/profiler/chrome_unwinder_android.cc index 8eea2a8b5c8..4e19111fa46 100644 --- a/chromium/base/profiler/chrome_unwinder_android.cc +++ b/chromium/base/profiler/chrome_unwinder_android.cc @@ -13,16 +13,17 @@ namespace base { ChromeUnwinderAndroid::ChromeUnwinderAndroid( const ArmCFITable* cfi_table, - const ModuleCache::Module* chrome_module) - : cfi_table_(cfi_table), chrome_module_(chrome_module) { + uintptr_t chrome_module_base_address) + : cfi_table_(cfi_table), + chrome_module_base_address_(chrome_module_base_address) { DCHECK(cfi_table_); - DCHECK(chrome_module_); } ChromeUnwinderAndroid::~ChromeUnwinderAndroid() = default; bool ChromeUnwinderAndroid::CanUnwindFrom(const Frame& current_frame) const { - return current_frame.module == chrome_module_; + return current_frame.module && + current_frame.module->GetBaseAddress() == chrome_module_base_address_; } UnwindResult ChromeUnwinderAndroid::TryUnwind(RegisterContext* thread_context, |