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

Tom Rodriguez never at openjdk.java.net
Mon Oct 25 19:09:03 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.

Marked as reviewed by never (Reviewer).

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

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


More information about the hotspot-compiler-dev mailing list