RFR: 8356255: Add Stable Field Updaters to allow efficient lazy field evaluations [v5]
Per Minborg
pminborg at openjdk.org
Wed May 7 13:55:08 UTC 2025
> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 15 additional commits since the last revision:
- Add low level variants
- Merge branch 'master' into stable-updaters
- Reformat
- Revert changes in public classes
- Add a method handle based field updater
- Fix raw long updater under 32-bit mode
- Address comments
- Document field alignment assumption
- Add unhecked call test
- Move raw factories into inner class Raw
- ... and 5 more: https://git.openjdk.org/jdk/compare/de41c1f3...6342fbd8
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25040/files
- new: https://git.openjdk.org/jdk/pull/25040/files/4a42b271..6342fbd8
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25040&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25040&range=03-04
Stats: 14466 lines in 388 files changed: 9105 ins; 3251 del; 2110 mod
Patch: https://git.openjdk.org/jdk/pull/25040.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25040/head:pull/25040
PR: https://git.openjdk.org/jdk/pull/25040
More information about the net-dev
mailing list