On Wed, 28 Dec 2022 20:42:15 GMT, Sergey Tsypanov <stsypa...@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