From f96a2dba65640255a2ebfe4dc00e2d7a91521feb Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Wed, 7 Jun 2017 15:57:30 -0700 Subject: 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 --- compiler/elf_writer_quick.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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& method_infos_; + const ArrayRef method_infos_; std::vector result_; }; -- cgit v1.2.3-59-g8ed1b