< prev index next >
src/hotspot/share/opto/parse1.cpp
Print this page
rev 55962 : 8229422: Taskqueue: Outdated selection of weak memory model platforms
Reviewed-by:
@@ -994,12 +994,14 @@
// such unusual early publications. But no barrier is needed on
// exceptional returns, since they cannot publish normally.
//
if (method()->is_initializer() &&
(wrote_final() ||
- PPC64_ONLY(wrote_volatile() ||)
- (AlwaysSafeConstructors && wrote_fields()))) {
+ (AlwaysSafeConstructors && wrote_fields()) ||
+ (support_IRIW_for_not_multiple_copy_atomic_cpu && wrote_volatile())
+ )
+ ) {
_exits.insert_mem_bar(Op_MemBarRelease, alloc_with_final());
// If Memory barrier is created for final fields write
// and allocation node does not escape the initialize method,
// then barrier introduced by allocation node can be removed.
< prev index next >