When a concurrent GC is in use (G1 or CMS), we must generate store_release instructions when setting an object's klass field.
The runtime was updated to store_release instructions when creating objects through the slow path and to do load_acquire instructions when reading the klass field from concurrent readers SeeJDK-8160369 and sub-tasks.
The runtime was updated to store_release instructions when creating objects through the slow path and to do load_acquire instructions when reading the klass field from concurrent readers See
- relates to
-
JDK-8172157 Tighten up contract between concurrent GCs and runtime regarding object allocation and header initialization
-
- Open
-