diff --git a/compiler/compile/OMRSymbolReferenceTable.cpp b/compiler/compile/OMRSymbolReferenceTable.cpp index 050aeefaf3e..848fbee6ef6 100644 --- a/compiler/compile/OMRSymbolReferenceTable.cpp +++ b/compiler/compile/OMRSymbolReferenceTable.cpp @@ -102,8 +102,7 @@ OMR::SymbolReferenceTable::SymbolReferenceTable(size_t sizeHint, TR::Compilation _numInternalPointers(0), _ObjectNewInstanceImplSymRef(0), _knownObjectSymrefsByObjectIndex(comp->trMemory()), - _unsafeSymRefs(0), - _unsafeVolatileSymRefs(0), + _unsafeSymRefs{}, _availableAutos(comp->trMemory()), _vtableEntrySymbolRefs(comp->trMemory()), _classLoaderSymbolRefs(comp->trMemory()), diff --git a/compiler/compile/OMRSymbolReferenceTable.hpp b/compiler/compile/OMRSymbolReferenceTable.hpp index 48f551a1ef7..bac769f6bd7 100644 --- a/compiler/compile/OMRSymbolReferenceTable.hpp +++ b/compiler/compile/OMRSymbolReferenceTable.hpp @@ -941,8 +941,7 @@ class SymbolReferenceTable TR_Array _knownObjectSymrefsByObjectIndex; - TR_Array * _unsafeSymRefs; - TR_Array * _unsafeVolatileSymRefs; + TR_Array * _unsafeSymRefs[TR::Symbol::LastMemoryOrdering+1]; List _availableAutos; List _vtableEntrySymbolRefs;