Integrated: 7414: Avoid volatile writes from Atomics default values

Christoph Dreis github.com+6304496+dreis2211 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

This pull request has now been integrated.

Changeset: 14b8357c
Author:    Christoph Dreis <christoph.dreis at freenet.de>
Committer: Marcus Hirt <hirt at openjdk.org>
URL:       https://git.openjdk.java.net/jmc/commit/14b8357cc33faec2047279761281c697a5a3dc8b
Stats:     5 lines in 5 files changed: 0 ins; 0 del; 5 mod

7414: Avoid volatile writes from Atomics default values

Reviewed-by: hirt

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

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


More information about the jmc-dev mailing list