OSDN Git Service

Optimize IMT
authorNelli Kim <nelli.kim@samsung.com>
Fri, 13 May 2016 10:08:53 +0000 (13:08 +0300)
committerMatthew Gharrity <gharrma@google.com>
Tue, 14 Jun 2016 17:05:47 +0000 (10:05 -0700)
commitbadee9820fcf5dca5f8c46c3215ae1779ee7736e
tree982948a67a88a1f9a734c935f919f8d307969f48
parent614968198625a6693666bdc1e5609e2f663f5638
Optimize IMT

* Remove IMT for classes which do not implement interfaces
* Remove IMT for array classes
* Share same IMT

Saved memory (measured on hammerhead):
boot.art:
Total number of classes: 3854
Number of affected classes: 1637
Saved memory: 409kB

Chrome (excluding classes in boot.art):
Total number of classes: 2409
Number of affected classes: 1259
Saved memory: 314kB

Google Maps (excluding classes in boot.art):
Total number of classes: 6988
Number of affected classes: 2574
Saved memory: 643kB

Performance regression on benchmarks/InvokeInterface.java benchmark
(measured timeCall10Interface)
1st launch: 9.6%
2nd launch: 6.8%

Change-Id: If07e45390014a6ee8f3c1c4ca095b43046f0871f
27 files changed:
compiler/driver/compiler_driver.cc
compiler/image_writer.cc
compiler/image_writer.h
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_arm64.cc
compiler/optimizing/code_generator_mips.cc
compiler/optimizing/code_generator_mips64.cc
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86_64.cc
compiler/optimizing/inliner.cc
patchoat/patchoat.cc
patchoat/patchoat.h
runtime/art_method.h
runtime/class_linker.cc
runtime/class_linker.h
runtime/class_linker_test.cc
runtime/entrypoints/entrypoint_utils-inl.h
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/gc/space/image_space.cc
runtime/image-inl.h
runtime/image.cc
runtime/image.h
runtime/imtable.h [new file with mode: 0644]
runtime/interpreter/interpreter_common.h
runtime/mirror/class-inl.h
runtime/mirror/class.cc
runtime/mirror/class.h