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 01:21:05 +0000 (18:21 -0700)
commit338a1d206c16427cf61bd42171fa0c8b9cea8165
tree793018ab764a10f1a63e9af1e8fa58274bea90f5
parent624a1559009c6f0962fa9d381ce160b04cd9eabd
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
dex2oat/dex2oat.cc
dex2oat/dex2oat_test.cc