summaryrefslogtreecommitdiffstats
path: root/libunwindstack/Elf.cpp
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2019-04-05 18:23:32 +0000
committerDavid Srbecky <dsrbecky@google.com>2019-04-12 12:55:50 +0000
commite5c4d62ba3fca09fed86ec605542b2be74a59851 (patch)
treeda853107155df86b564454aad59b8ca9a5fcf598 /libunwindstack/Elf.cpp
parent84ababefb7b7ec04027b741d7a6fe937cffee54b (diff)
downloadsystem_core-e5c4d62ba3fca09fed86ec605542b2be74a59851.tar.gz
system_core-e5c4d62ba3fca09fed86ec605542b2be74a59851.tar.bz2
system_core-e5c4d62ba3fca09fed86ec605542b2be74a59851.zip
Revert "Check for data races when reading JIT/DEX entries."
This reverts commit 85b5fecec920208ec43b42488f08d4c2e5aaeda2. Reason for revert: Breaks ART tests, reverting to investigate. Exempt-From-Owner-Approval: Revert. (cherry picked from commit b9cc4fbb268652744c812415cb2e5d1fbe04879a) Bug: 130406806 Change-Id: I634e37060b97484d627fc544e3b406fd90aaa784
Diffstat (limited to 'libunwindstack/Elf.cpp')
-rw-r--r--libunwindstack/Elf.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/libunwindstack/Elf.cpp b/libunwindstack/Elf.cpp
index 5b402ed13..4b93abb43 100644
--- a/libunwindstack/Elf.cpp
+++ b/libunwindstack/Elf.cpp
@@ -243,24 +243,6 @@ bool Elf::IsValidPc(uint64_t pc) {
return false;
}
-bool Elf::GetTextRange(uint64_t* addr, uint64_t* size) {
- if (!valid_) {
- return false;
- }
-
- if (interface_->GetTextRange(addr, size)) {
- *addr += load_bias_;
- return true;
- }
-
- if (gnu_debugdata_interface_ != nullptr && gnu_debugdata_interface_->GetTextRange(addr, size)) {
- *addr += load_bias_;
- return true;
- }
-
- return false;
-}
-
ElfInterface* Elf::CreateInterfaceFromMemory(Memory* memory) {
if (!IsValidElf(memory)) {
return nullptr;