commit | 8a39e7fe02e9a81853dc7a75cb50d9ece07a9b37 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Sep 04 18:33:17 2014 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Mon Sep 08 17:44:56 2014 -0700 |
tree | 2855e9117349705f264fc5cbbef6a9aece147efd | |
parent | 2c63eee334bca18536060eea2e4a2f7883ef8eb9 [diff] |
Add fast path for FindClass using the type dex file. If we are using the PathClassLoader with a BootClassLoader parent, we can handle the common case in the FindClass function without needing to go back to java code. Around 10% speedup measured of maps launch, could be noise due to large variation of app launch times. Eliminates defineClassNative from being anywhere near the top of sampling profiles. Bug: 17397179 Bug: 16828525 Change-Id: Ide0db2b5f6cf5b96fc46e89178e0799de667cb88