RFR: 8355369: Remove setAccessible usage for setting final fields in java.util.concurrent [v2]

Per Minborg pminborg at openjdk.org
Thu Apr 24 11:19:56 UTC 2025


On Wed, 23 Apr 2025 15:22:37 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> This Pull Request replaces the uses of Field + setAccessible to modify final fields in java.util.concurrent with Unsafe.
>
> Viktor Klang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Adding a releaseFence() to ConcurrentskipListSet.clone()

I think these changes look good. Before we integrate, could you please raise an issue with the future improvements of `clone()` and friends so that we do not forget that?

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

Marked as reviewed by pminborg (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24821#pullrequestreview-2790715897


More information about the core-libs-dev mailing list