--- a/src/hotspot/share/opto/matcher.cpp Wed Nov 28 11:06:27 2018 +0100
+++ b/src/hotspot/share/opto/matcher.cpp Wed Nov 28 13:24:56 2018 +0300
@@ -1208,9 +1208,7 @@
// Allocate a private array of RegMasks. These RegMasks are not shared.
msfpt->_in_rms = NEW_RESOURCE_ARRAY( RegMask, cnt );
// Empty them all.
- for (uint i = 0; i < cnt; i++) {
- msfpt->_in_rms[i] = RegMask();
- }
+ for (uint i = 0; i < cnt; i++) ::new (&(msfpt->_in_rms[i])) RegMask();
// Do all the pre-defined non-Empty register masks
msfpt->_in_rms[TypeFunc::ReturnAdr] = _return_addr_mask;