Integrated: 7414: Avoid volatile writes from Atomics default values

Marcus Hirt hirt at openjdk.java.net
Mon Oct 4 09:16:22 UTC 2021


On Sat, 2 Oct 2021 05:37:16 GMT, Christoph Dreis <github.com+6304496+dreis2211 at openjdk.org> wrote:

> Hi,
> 
> this PR changes calls like `new AtomicInteger(0)` to `new AtomicInteger()` in order to avoid volatile writes.
> 
> This would need a ticket in the bug tracker and I hope you can create this for me. OCA should be signed already, but let me know if I need to confirm something again.
> 
> In case you think this is worthwhile, I would appreciate it if this is sponsored.
> 
> Cheers,
> Christoph

Marked as reviewed by hirt (Lead).

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

PR: https://git.openjdk.java.net/jmc/pull/315


More information about the jmc-dev mailing list