RFR: JDK-8262994: Refactor String.split to help method inlining
Christian Wimmer
cwimmer at openjdk.org
Mon Jan 9 20:06:53 UTC 2023
On Wed, 28 Dec 2022 20:42:15 GMT, Sergey Tsypanov <stsypanov at openjdk.org> wrote:
> Is there any benchmark proving the benefit?
The Graal compiler can do the inlining and constant folding. That is especially important when doing AOT compilation as part of GraalVM Native Image builds, in which case the regular expression engine of the JDK remains unreachable in many cases, leading to smaller binaries.
Currently, GraalVM uses a substitution to patch the JDK, but that is not a good long-term solution: https://github.com/oracle/graal/pull/5732/files#diff-422e3fa386126a69506423650c878a251e18cc6e6cfdb39d87923a88a97628a3R209
-------------
PR: https://git.openjdk.org/jdk/pull/11791
More information about the core-libs-dev
mailing list