JDK-8165489 : Missing G1 barrier in Unsafe_GetObjectVolatile
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-09-06
  • Updated: 2019-01-14
  • Resolved: 2016-09-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u192Fixed 9 b139Fixed
Description
Unsafe_GetObject already contains the G1 barrier for SATB. The same is needed in Unsafe_GetObjectVolatile.
Comments
Backportable to 8u: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2018-April/007384.html
13-04-2018

Sorry, fixed my copy&paste bug in the description.
09-09-2016

It's Unsafe_GetObject that has the barrier, not get_volatile, which is only used for primitive type access.
06-09-2016