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 Dec 11, 2024
1 parent 009393b commit 3b459d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions compiler/compile/OMRSymbolReferenceTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ OMR::SymbolReferenceTable::SymbolReferenceTable(size_t sizeHint, TR::Compilation
_numInternalPointers(0),
_ObjectNewInstanceImplSymRef(0),
_knownObjectSymrefsByObjectIndex(comp->trMemory()),
_unsafeSymRefs(0),
_unsafeVolatileSymRefs(0),
_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 3b459d7

Please sign in to comment.