diff options
author | Vladimir Marko <vmarko@google.com> | 2020-10-02 13:52:00 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2020-10-05 08:28:08 +0000 |
commit | 4904d5d65de32237790e5370bd076a9bccc22aa1 (patch) | |
tree | f1a6e6126200d40ba10f3411c1c0bb51f826af1b /test/ProfileTestMultiDex/Second.java | |
parent | 463255b4f1fcc8c34856a6b0780cf5ef238941c2 (diff) |
Optimize JNI:GetStringRegion() for compressed strings.
Looking at the disassembly, it seems clang++ was unable to
optimize this properly, probably due to possible aliasing,
despite inlining the String::CharAt() and seeing all the
String::IsCompressed() expressions.
Explicitly use the fact that the string is compressed to
optimize the function and similar patterns in JNI.
Test: m test-art-host-gtest
Bug: 169674485
Change-Id: I35dd2540a1e79611a65d2d84f2a557c826120409
Diffstat (limited to 'test/ProfileTestMultiDex/Second.java')
0 files changed, 0 insertions, 0 deletions