RFR: 8356255: Add Stable Field Updaters to allow efficient lazy field evaluations [v11]

Per Minborg pminborg at openjdk.org
Fri May 9 08:38:39 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 24 additional commits since the last revision:

 - Revert unintended change
 - Revert unintended change
 - Remove unused factories and add comment
 - Merge branch 'master' into stable-updaters
 - Add composition of functions and MHs
 - Revert changes in stable classes
 - Add lazy CallSite methods
 - Reformat
 - Add convenience methods and documentations
 - Add low level variants
 - ... and 14 more: https://git.openjdk.org/jdk/compare/6916dfd3...9a58db6a

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25040/files
  - new: https://git.openjdk.org/jdk/pull/25040/files/1628b264..9a58db6a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25040&range=10
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25040&range=09-10

  Stats: 3102 lines in 128 files changed: 2035 ins; 528 del; 539 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