diff -r 8f849d3ec1e5 -r d376d86b0a01 src/hotspot/share/opto/matcher.cpp --- a/src/hotspot/share/opto/matcher.cpp Tue Oct 08 15:30:46 2019 +0200 +++ b/src/hotspot/share/opto/matcher.cpp Wed Oct 09 12:30:06 2019 +0000 @@ -1751,6 +1751,13 @@ _shared_nodes.map(leaf->_idx, ex); } + // Have mach nodes inherit GC barrier data + if (leaf->is_LoadStore()) { + mach->set_barrier_data(leaf->as_LoadStore()->barrier_data()); + } else if (leaf->is_Mem()) { + mach->set_barrier_data(leaf->as_Mem()->barrier_data()); + } + return ex; }