Withdrawn: 8254807: Optimize startsWith() for String.substring()
Xin Liu
xliu at openjdk.java.net
Mon Dec 21 20:32:55 UTC 2020
On Sat, 31 Oct 2020 05:22:39 GMT, Xin Liu <xliu at openjdk.org> wrote:
> The optimization transforms code from s=substring(base, beg, end); s.startsWith(prefix)
> to substring(base, beg, end) | base.startsWith(prefix, beg).
>
> it reduces uses of substring. hopefully c2 optimizer can remove the used substring.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jdk/pull/974
More information about the hotspot-compiler-dev
mailing list