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

Per Minborg pminborg at openjdk.org
Wed May 7 11:04:14 UTC 2025


On Tue, 6 May 2025 12:23:44 GMT, Chen Liang <liach at openjdk.org> wrote:

>> This would require another implementation to be written. Maybe we can add that later?
>
> I feel like declaring a function is declaring redundant classes when we can just reuse a DirectMethodHandle pointing to an actual method. Also the zero alternative should be handled by the provided computing function/method instead of handled by this utility.

There is an MH variant now. The use of the zero alternative is optional, as if you put in `0`, it will have no effect.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25040#discussion_r2077372099


More information about the net-dev mailing list