Skip to content

Replace volatile usage with VarHandle release/acquire for better performance #4598

@hmottestad

Description

@hmottestad

We typically use volatile for variables that can be updated and read by multiple threads. Unless we need total order for read/write to multiple variables then it is may be safe to use release/acquire (RA.

See:

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions