RFR: 8356255: Add Stable Field Updaters to allow efficient lazy field evaluations [v2]
Daniel Fuchs
dfuchs at openjdk.org
Tue May 6 15:39:19 UTC 2025
On Tue, 6 May 2025 14:40:46 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> This sketch shows how "Stable Updaters" can be used to create stable computations of `@Stable` fields. Only one updater is needed per class, similar to `AtomicIntegerFieldUpdater`.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix raw long updater under 32-bit mode
src/java.base/share/classes/java/net/URI.java line 558:
> 556:
> 557: // Used reflectively by HASH_UPDATER
> 558: @Stable
What are the effect of this change on startup time? I remember that @cl4es made a number of changes to URI to improve startup. Maybe this change should be dropped out of this PR for now.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25040#discussion_r2075743220
More information about the net-dev
mailing list