On Mon, 25 May 2026 12:43:49 GMT, Per Minborg <[email protected]> wrote:

> 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).

This pull request has now been integrated.

Changeset: bf14f24f
Author:    Per Minborg <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/bf14f24f76fee928f9911b07b0676731fc47417c
Stats:     24 lines in 1 file changed: 1 ins; 0 del; 23 mod

8385013: Startup regression ~30% / 7-10ms with noop

Reviewed-by: liach

-------------

PR: https://git.openjdk.org/jdk/pull/31275

Reply via email to