summaryrefslogtreecommitdiff
path: root/test/utils/python/generate_java_main.py
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2016-05-18 13:09:54 -0700
committerAndreas Gampe <agampe@google.com>2016-05-19 08:28:27 -0700
commit4075f830c58e38f1ac88a6b3c663fafefdb4b414 (patch)
tree21023435f210dafdcc5134bd1775a3b88399a6be /test/utils/python/generate_java_main.py
parent6c313600e995ac81a6e68e84b64761a10fb1311c (diff)
ART: Optimize PreSetup pass for oat-file open
The PreSetup pass for opening an oatfile with dlopen parses all shared objects and tries to retrieve the corresponding mem map (so as to have a fake MemMap to reserve the space for any scanning operations and so on). Optimistically optimize this pass by counting the number of shared objects before the dlopen, and skipping as many afterwards. This saves about half a millisecond on an N6P. Bug: 28801010 (cherry picked from commit 9821cceebf077cb747aed543582b3d740a03ea7f) Change-Id: I70156f9875e89c5af3c9e36e8f01c5662e3f736e
Diffstat (limited to 'test/utils/python/generate_java_main.py')
0 files changed, 0 insertions, 0 deletions