The ConstantReflectionProvider allows the read constants out of constant objects. Currently reads are performed with Unsafe using the standard get<Type> methods.
Using the get<Type>Volatile methods for volatile fields would allow users of the ConstantReflectionProvider to have some guarantees when looking at volatile fields (e.g., reading fields in program order would yield a state that the program could observe).
Using the get<Type>Volatile methods for volatile fields would allow users of the ConstantReflectionProvider to have some guarantees when looking at volatile fields (e.g., reading fields in program order would yield a state that the program could observe).
- duplicates
-
JDK-8209625 [JVMCI] Make sure volatile fields are read as volatile
-
- Closed
-