OSDN Git Service

ART: Add very-large threshold to dex2oat
authorAndreas Gampe <agampe@google.com>
Sat, 25 Jun 2016 04:05:23 +0000 (21:05 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 30 Jun 2016 03:03:40 +0000 (20:03 -0700)
commit67f02829d08c2045090a9061c08c15f162fb72f0
tree73de29d2c7094033da293fa0ee4622537c1be93e
parent0d38e26dad942e51bd540a28c7fbd526f663b0ff
ART: Add very-large threshold to dex2oat

Add a variable threshold to dex2oat. If the total dex file size for
an app reaches this threshold, dex2oat will punt all compilation and
compile the app with verify-at-runtime. This ensures smaller compile
time and memory thrashing, while still extracting the dex files and
thus helping with dirty memory later.

Added tests.

Bug: 29557002
Bug: 29790079
Test: m test-art-host-gtest-dex2oat_test
Change-Id: I78870e4a80ccaafcbbe56839e61ced0acd2ca05e
(cherry picked from commit 338a1d206c16427cf61bd42171fa0c8b9cea8165)
dex2oat/dex2oat.cc
dex2oat/dex2oat_test.cc