Skip to content

Commit 59522c8

Browse files
authored
Merge pull request #2177 from arwinneil/master
Remove genericCallHash from OMRSymbolReferenceTable
2 parents 54493be + 05f3919 commit 59522c8

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

compiler/compile/OMRSymbolReferenceTable.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
#include "infra/BitVector.hpp" // for TR_BitVector, etc
7474
#include "infra/Cfg.hpp" // for CFG, TR_SuccessorIterator, etc
7575
#include "infra/Flags.hpp" // for flags8_t
76-
#include "infra/HashTab.hpp" // for TR_HashTab, TR_HashId
7776
#include "infra/Link.hpp" // for TR_LinkHead, TR_Pair
7877
#include "infra/List.hpp" // for List, ListIterator, etc
7978
#include "infra/CfgEdge.hpp" // for CFGEdge
@@ -132,8 +131,6 @@ OMR::SymbolReferenceTable::SymbolReferenceTable(size_t sizeHint, TR::Compilation
132131
baseArray.element(i) = 0;
133132
_size_hint = sizeHint;
134133

135-
_genericCallHash = new (trHeapMemory()) TR_HashTab(comp->trMemory(), heapAlloc, 60);
136-
137134
}
138135

139136

compiler/compile/OMRSymbolReferenceTable.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ namespace OMR { class SymbolReferenceTable; }
3131
namespace OMR { typedef OMR::SymbolReferenceTable SymbolReferenceTableConnector; }
3232
#endif
3333

34-
#include "infra/HashTab.hpp"
3534
#include "il/symbol/ResolvedMethodSymbol.hpp"
3635

3736
#include <map> // for std::map
@@ -488,8 +487,6 @@ class SymbolReferenceTable
488487

489488
size_t _size_hint;
490489

491-
TR_HashTab *_genericCallHash;
492-
493490
typedef CS2::CompoundHashKey<mcount_t, const char *> OwningMethodAndString;
494491
typedef CS2::HashTable<OwningMethodAndString, TR::SymbolReference *, TR::Allocator> SymrefsByOwningMethodAndString;
495492

compiler/ras/DebugCounter.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include "infra/Assert.hpp"
4646
#include "infra/Monitor.hpp" // for createCounter race conditions
4747
#include "infra/CriticalSection.hpp" // for createCounter race conditions
48+
#include "infra/Bit.hpp"
4849

4950
#if defined(_MSC_VER)
5051
#include <malloc.h> // alloca on Windows

0 commit comments

Comments
 (0)