summaryrefslogtreecommitdiff
path: root/test/MultiDex/main.jpp
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2019-04-11 13:37:10 -0700
committerMathieu Chartier <mathieuc@google.com>2019-04-17 00:16:15 +0000
commit40b1ba4543cf33e54f32e31cd2f276700c1be63c (patch)
tree97c1461551ae8fa09ab91bba67f4b6b2d1cc7569 /test/MultiDex/main.jpp
parent88f9a6ee854850e04e858b971d71429516e34007 (diff)
Optimize FindClass ClassNotFoundException case
With the current class loaders, there are many exceptions thrown for each ClassNotFoundexception from FindClass calling ClassLoader.loadClass. This CL reduces that by throwing directly from FindClass to avoid these extra exceptions. Numbers are from logging time taken by QuickDeliverException. Time spent in exception throwing during startup goes down (Pixel 2 XL): Camera: 20ms -> 5ms Calculator: 5ms -> 2ms Maps: 20ms -> 10ms Added option -XX:FastClassNotFoundException=<bool> to enable or disable the feature. Bug: 130310316 Bug: 130293184 Bug: 130209120 Test: test-art-host Change-Id: If013a2f2f330684e4f6ab000c19ef3822990e613
Diffstat (limited to 'test/MultiDex/main.jpp')
0 files changed, 0 insertions, 0 deletions