From 9d07e3d128ccfa0ef7670feadd424a825e447d1d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 31 Mar 2016 12:02:28 +0100 Subject: Clean up OatQuickMethodHeader after Quick removal. This reduces the size of the pre-header by 8 bytes, reducing oat file size and mmapped .text section size. The memory needed to store a CompiledMethod by dex2oat is also reduced, for 32-bit dex2oat by 8B and for 64-bit dex2oat by 16B. The aosp_flounder-userdebug 32-bit and 64-bit boot.oat are each about 1.1MiB smaller. Disable the broken StubTest.IMT, b/27991555 . Change-Id: I05fe45c28c8ffb7a0fa8b1117b969786748b1039 --- compiler/compiled_method.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'compiler/compiled_method.cc') diff --git a/compiler/compiled_method.cc b/compiler/compiled_method.cc index 9551d2298b..f06d90c81c 100644 --- a/compiler/compiled_method.cc +++ b/compiler/compiled_method.cc @@ -106,9 +106,7 @@ CompiledMethod::CompiledMethod(CompilerDriver* driver, const uint32_t core_spill_mask, const uint32_t fp_spill_mask, const ArrayRef& src_mapping_table, - const ArrayRef& mapping_table, const ArrayRef& vmap_table, - const ArrayRef& native_gc_map, const ArrayRef& cfi_info, const ArrayRef& patches) : CompiledCode(driver, instruction_set, quick_code), @@ -116,9 +114,7 @@ CompiledMethod::CompiledMethod(CompilerDriver* driver, fp_spill_mask_(fp_spill_mask), src_mapping_table_( driver->GetCompiledMethodStorage()->DeduplicateSrcMappingTable(src_mapping_table)), - mapping_table_(driver->GetCompiledMethodStorage()->DeduplicateMappingTable(mapping_table)), vmap_table_(driver->GetCompiledMethodStorage()->DeduplicateVMapTable(vmap_table)), - gc_map_(driver->GetCompiledMethodStorage()->DeduplicateGCMap(native_gc_map)), cfi_info_(driver->GetCompiledMethodStorage()->DeduplicateCFIInfo(cfi_info)), patches_(driver->GetCompiledMethodStorage()->DeduplicateLinkerPatches(patches)) { } @@ -131,15 +127,20 @@ CompiledMethod* CompiledMethod::SwapAllocCompiledMethod( const uint32_t core_spill_mask, const uint32_t fp_spill_mask, const ArrayRef& src_mapping_table, - const ArrayRef& mapping_table, const ArrayRef& vmap_table, - const ArrayRef& native_gc_map, const ArrayRef& cfi_info, const ArrayRef& patches) { SwapAllocator alloc(driver->GetCompiledMethodStorage()->GetSwapSpaceAllocator()); CompiledMethod* ret = alloc.allocate(1); - alloc.construct(ret, driver, instruction_set, quick_code, frame_size_in_bytes, core_spill_mask, - fp_spill_mask, src_mapping_table, mapping_table, vmap_table, native_gc_map, + alloc.construct(ret, + driver, + instruction_set, + quick_code, + frame_size_in_bytes, + core_spill_mask, + fp_spill_mask, + src_mapping_table, + vmap_table, cfi_info, patches); return ret; } @@ -154,9 +155,7 @@ CompiledMethod::~CompiledMethod() { CompiledMethodStorage* storage = GetCompilerDriver()->GetCompiledMethodStorage(); storage->ReleaseLinkerPatches(patches_); storage->ReleaseCFIInfo(cfi_info_); - storage->ReleaseGCMap(gc_map_); storage->ReleaseVMapTable(vmap_table_); - storage->ReleaseMappingTable(mapping_table_); storage->ReleaseSrcMappingTable(src_mapping_table_); } -- cgit v1.2.3-59-g8ed1b