This PR proposes to swap the pattern-matching switch in `LazyConstant` with an if rake to reduce startup time.
The PR also adds a missing `@DontInline` annotation on the slow path. Performance runs across several platforms suggest a ~20-30% startup improvement for noop. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Revert "Remove the word 'may'" - Remove the word 'may' - Remove pattern matching switch Changes: https://git.openjdk.org/jdk/pull/31275/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31275&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8385013 Stats: 24 lines in 1 file changed: 1 ins; 0 del; 23 mod Patch: https://git.openjdk.org/jdk/pull/31275.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31275/head:pull/31275 PR: https://git.openjdk.org/jdk/pull/31275
