Skip to content

Commit

Permalink
Add unsafe symrefs arrays for all access modes
Browse files Browse the repository at this point in the history
This change adds arrays for opaque and acquire/release unsafe symrefs to the
symbol reference table. Instead of having four separate fields, the fields are
combined into an array that can be indexed by the OMR::Symbol::AccessMode enum.

Signed-off-by: Spencer Comin <[email protected]>
  • Loading branch information
Spencer-Comin committed Nov 25, 2024
1 parent 0375fc5 commit c115927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions compiler/compile/OMRSymbolReferenceTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
3 changes: 1 addition & 2 deletions compiler/compile/OMRSymbolReferenceTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,7 @@ class SymbolReferenceTable

TR_Array<TR_BitVector *> _knownObjectSymrefsByObjectIndex;

TR_Array<TR::SymbolReference *> * _unsafeSymRefs;
TR_Array<TR::SymbolReference *> * _unsafeVolatileSymRefs;
TR_Array<TR::SymbolReference *> * _unsafeSymRefs[TR::Symbol::LastMemoryOrdering+1];

List<TR::SymbolReference> _availableAutos;
List<TR::SymbolReference> _vtableEntrySymbolRefs;
Expand Down

0 comments on commit c115927

Please sign in to comment.