On Mon, 4 May 2026 14:07:26 GMT, Per Minborg <[email protected]> wrote:
>> Implement JEP 531: Lazy Constants (Third Preview) >> >> This PR replaces _draft_ https://github.com/openjdk/jdk/pull/29507 >> >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Per Minborg has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 69 commits: > > - Reshuffle examples and fix typo > - Merge branch 'master' into > implement-lazy-constants-third-prewiew-exceptions > - Merge branch 'openjdk:master' into master > - Merge master > - Merge branch 'openjdk:master' into master > - Add exampels and reinforce testing > - Restrict method and class visitbility > - Clean up and add IR tests > - Address additional comments > - Merge branch 'master' into > implement-lazy-constants-third-prewiew-exceptions > - ... and 59 more: https://git.openjdk.org/jdk/compare/3c69c969...bdf79df1 src/java.base/share/classes/java/lang/LazyConstant.java line 159: > 157: * the initialized constant's content is read. Hence, the initialized > constant's content, > 158: * including any {@code final} fields of any newly created objects, is > safely published. > 159: * As subsequent reading of the content might be elided, there are no > other memory I feel like "reading" might be better replaced with "retrieval" ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30194#discussion_r3182490966
