From 579942fc26f8a0b0ff1d909d19086fca6d2396a3 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Thu, 28 Jan 2016 20:01:28 +0000 Subject: Reduce the size of native debug info generated by JIT. Remove some ELF file overheads: - Do not produce program headers. - Do not page align strtab. - Do not write oat_patches sections. This more than halves the size of JIT native debug info. Since we generate many small entries, the overheads added up. Change-Id: I27d95548c61e2e38c3683d6f5eb870a2db6e812d --- compiler/elf_writer_debug.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/elf_writer_debug.h') diff --git a/compiler/elf_writer_debug.h b/compiler/elf_writer_debug.h index e19da088da..8e8472f678 100644 --- a/compiler/elf_writer_debug.h +++ b/compiler/elf_writer_debug.h @@ -33,7 +33,8 @@ struct MethodDebugInfo; template void WriteDebugInfo(ElfBuilder* builder, const ArrayRef& method_infos, - CFIFormat cfi_format); + CFIFormat cfi_format, + bool write_oat_patches); template void WriteMiniDebugInfo(ElfBuilder* builder, -- cgit v1.2.3-59-g8ed1b