From 013e3f33495dcc31dba19c9de128d23ed441d7d3 Mon Sep 17 00:00:00 2001 From: Matthew Gharrity Date: Thu, 16 Jun 2016 11:49:23 -0700 Subject: [PATCH] Change IMT size from 64 to 43 Data shows that this change can save around 2MB with an estimated less than 2% regression in interface method invokation speed. Further investigation is needed to measure the performance impact in practice, particularly for much smaller IMT sizes. We are making this initial change to 43 to see if it affects runtime perf benchmarks. Change-Id: Ic0e036091c5da0e6b93f519fc695e9b48ab5ec46 --- build/Android.common_build.mk | 4 ++-- runtime/oat.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk index fc4dd55d6..123bcaa3b 100644 --- a/build/Android.common_build.mk +++ b/build/Android.common_build.mk @@ -296,8 +296,8 @@ art_asflags := ifdef ART_IMT_SIZE art_cflags += -DIMT_SIZE=$(ART_IMT_SIZE) else - # Default is 64 - art_cflags += -DIMT_SIZE=64 + # Default is 43 + art_cflags += -DIMT_SIZE=43 endif ifeq ($(ART_HEAP_POISONING),true) diff --git a/runtime/oat.h b/runtime/oat.h index 286394e55..52d4c4209 100644 --- a/runtime/oat.h +++ b/runtime/oat.h @@ -32,7 +32,7 @@ class InstructionSetFeatures; class PACKED(4) OatHeader { public: static constexpr uint8_t kOatMagic[] = { 'o', 'a', 't', '\n' }; - static constexpr uint8_t kOatVersion[] = { '0', '8', '0', '\0' }; + static constexpr uint8_t kOatVersion[] = { '0', '8', '1', '\0' }; static constexpr const char* kImageLocationKey = "image-location"; static constexpr const char* kDex2OatCmdLineKey = "dex2oat-cmdline"; -- 2.11.0