On Thu, 2 Oct 2025 10:51:08 GMT, Per Minborg <[email protected]> wrote:
> Implement JEP 526: Lazy Constants (Second Preview) > > The lazy list/map implementations are broken out from `ImmutableCollections` > to a separate class. > > The old benchmarks are not moved/renamed to allow comparison with previous > releases. > > `java.util.Optional` is updated so that its field is annotated with > `@Stable`. This is to allow `Optional` instances to be held in lazy > constants and still provide constant folding. This pull request has now been integrated. Changeset: f9464499 Author: Per Minborg <[email protected]> URL: https://git.openjdk.org/jdk/commit/f94644999766e752f7d60ce52c14a7db79005035 Stats: 8347 lines in 60 files changed: 3738 ins; 4490 del; 119 mod 8366178: Implement JEP 526: Lazy Constants (Second Preview) 8371882: Improve documentation for JEP 526: Lazy Constants Reviewed-by: jvernee, mcimadamore ------------- PR: https://git.openjdk.org/jdk/pull/27605
