RFR: 8275874: [JVMCI] use volatile accessors for all unaligned reads in c2v_readFieldValue

David Holmes dholmes at openjdk.java.net
Tue Oct 26 05:23:07 UTC 2021


On Mon, 25 Oct 2021 14:33:27 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

> [JDK-8275645](https://bugs.openjdk.java.net/browse/JDK-8275645) resulted in loosing single-copy atomicity for reads in `c2v_readFieldValue`. This PR fixes that by using `<type>_field_acquire` accessors for all aligned reads and only using `<type>_field` accessors for unaligned reads.

Isn't the title of this issue expressed incorrectly?

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

PR: https://git.openjdk.java.net/jdk/pull/6109



More information about the build-dev mailing list