summaryrefslogtreecommitdiff
path: root/compiler/oat_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-03-31 12:02:28 +0100
committer Vladimir Marko <vmarko@google.com> 2016-04-04 17:50:20 +0100
commit9d07e3d128ccfa0ef7670feadd424a825e447d1d (patch)
treedfb677fd75f0f297fef9bc49311cf1d22c770f56 /compiler/oat_test.cc
parenteb98c0ded592cfca8187c744393c82efd1020b2a (diff)
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
Diffstat (limited to 'compiler/oat_test.cc')
-rw-r--r--compiler/oat_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/oat_test.cc b/compiler/oat_test.cc
index eaf0e179a5..73b16d5b46 100644
--- a/compiler/oat_test.cc
+++ b/compiler/oat_test.cc
@@ -442,7 +442,7 @@ TEST_F(OatTest, OatHeaderSizeCheck) {
// it is time to update OatHeader::kOatVersion
EXPECT_EQ(72U, sizeof(OatHeader));
EXPECT_EQ(4U, sizeof(OatMethodOffsets));
- EXPECT_EQ(28U, sizeof(OatQuickMethodHeader));
+ EXPECT_EQ(20U, sizeof(OatQuickMethodHeader));
EXPECT_EQ(132 * GetInstructionSetPointerSize(kRuntimeISA), sizeof(QuickEntryPoints));
}