OSDN Git Service

Smarter image layout
authorMathieu Chartier <mathieuc@google.com>
Tue, 20 Sep 2016 22:33:31 +0000 (15:33 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 23 Sep 2016 16:38:57 +0000 (09:38 -0700)
commit4e9c4e746617bad6a012d799d2f5cf9e01d24ea2
treeab589711e2517481e6b7c9eeb7e93a0d9ccb4426
parent41be588f4f2a84c9c0bb1bcf49da018100bc7bf0
Smarter image layout

Put strings in the dex file that resolves them.

Depth first traversal with overrides for class and dex cache. The
work list keeps track of what oat_index with each pushed item. This
means the static fields of a class will usually be in the same image.

Added layout test to image_test to make sure things are somewhat
reasonably attributed.

Bug: 28640955

Test: test-art-host

Change-Id: I67a536c33aeed603b252d8e0f75622c9efbf2559
build/Android.gtest.mk
compiler/common_compiler_test.cc
compiler/image_test.cc
compiler/image_writer.cc
compiler/image_writer.h
runtime/class_linker.h
runtime/class_table.cc
runtime/class_table.h
runtime/common_runtime_test.h
test/ImageLayoutA/ImageLayoutA.java [new file with mode: 0644]
test/ImageLayoutB/ImageLayoutB.java [new file with mode: 0644]