Buffer initialization in ValueTypeNode::allocate and ValueTypeNode::finish_larval needs a barrier similar to what we do for the clone intrinsic:
// Do not let stores that initialize this object be reordered with
// a subsequent store that would make this object accessible by
// other threads.
// Do not let stores that initialize this object be reordered with
// a subsequent store that would make this object accessible by
// other threads.
- relates to
-
JDK-8271280 [lworld] Revisit memory barrier requirements around inline type allocations
- Open
-
JDK-8237741 ensure that store-store barriers precede publication of buffered values
- Open
-
JDK-8236522 NonTearable marker interface for inline classes to enforce atomicity
- Resolved