summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Pirama Arumuga Nainar <pirama@google.com> 2017-06-07 15:57:30 -0700
committer Pirama Arumuga Nainar <pirama@google.com> 2017-06-07 16:10:10 -0700
commitf96a2dba65640255a2ebfe4dc00e2d7a91521feb (patch)
tree356d6e70f88be1cbcbb24346b92aa2b1db98d3f5
parent3b8bbb9927a38561fa37e38d5d9ddcf02608d60b (diff)
Store a copy of MethodDebugInfo in ElfWriter
Bug: http://b/62418787 Store a copy of the debug info instead of a reference, since this is written in the background by a separate thread. Test: make -j36 PRODUCT-aosp_x86_64-eng dist checkbuild \ ASAN_OPTIONS=detect_leaks=0 SANITIZE_HOST=address \ FORCE_BUILD_LLVM_COMPONENTS=true doesn't have dex2oat asan failures that are otherwise seen. Change-Id: I2599f5b607f956191db01924730a2e98421b5d77
-rw-r--r--compiler/elf_writer_quick.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/elf_writer_quick.cc b/compiler/elf_writer_quick.cc
index 738f5a2b29..1ef722feca 100644
--- a/compiler/elf_writer_quick.cc
+++ b/compiler/elf_writer_quick.cc
@@ -80,7 +80,7 @@ class DebugInfoTask : public Task {
const InstructionSetFeatures* instruction_set_features_;
size_t rodata_section_size_;
size_t text_section_size_;
- const ArrayRef<const debug::MethodDebugInfo>& method_infos_;
+ const ArrayRef<const debug::MethodDebugInfo> method_infos_;
std::vector<uint8_t> result_;
};