By extracting the code that creates the exception, the CodeSize of these methods is less than the default FreqInlineSize 325. and for the scenario where the most commonly used radix is not specified and the String coder is LATIN1, fast-path can improves the performance 10% of parseInt(String)/parseLong(String).
------------- Commit messages: - fix from @schlosna 's review - Optimization for Integer.parseX & Long.parseX Changes: https://git.openjdk.org/jdk/pull/16112/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16112&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8317980 Stats: 234 lines in 6 files changed: 174 ins; 24 del; 36 mod Patch: https://git.openjdk.org/jdk/pull/16112.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/16112/head:pull/16112 PR: https://git.openjdk.org/jdk/pull/16112