Skip to content

Commit

Permalink
Remove deprecated GlobalAllocator
Browse files Browse the repository at this point in the history
Signed-off-by: Daryl Maier <maier@ca.ibm.com>
  • Loading branch information
0xdaryl committed Feb 14, 2021
1 parent 64dbab2 commit 33b3bc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions compiler/env/FEBase.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -74,7 +74,7 @@ class FEBase : public FECommon
JitConfig _config;
TR::CodeCacheManager _codeCacheManager;

// these two are deprecated in favour of TR::GlobalAllocator and TR::Allocator
// this is deprecated in favour of TR::Allocator
TR_PersistentMemory _persistentMemory; // global memory

public:
Expand Down
10 changes: 0 additions & 10 deletions compiler/env/TRMemory.hpp
Expand Up @@ -1029,22 +1029,12 @@ namespace TR
static GlobalSingletonAllocator *_instance;
};

typedef CS2::shared_allocator < GlobalSingletonAllocator > GlobalAllocator;

static GlobalAllocator globalAllocator(const char *name = NULL)
{
return GlobalAllocator(GlobalSingletonAllocator::instance());
}

/*
* some common CS2 datatypes
*/
typedef CS2::ASparseBitVector<TR::Allocator> SparseBitVector;
typedef CS2::ABitVector<TR::Allocator> BitVector;

typedef CS2::ASparseBitVector<TR::GlobalAllocator> GlobalSparseBitVector;
typedef CS2::ABitVector<TR::GlobalAllocator> GlobalBitVector;

class AllocatedMemoryMeter
{
private:
Expand Down
4 changes: 2 additions & 2 deletions compiler/optimizer/UseDefInfo.cpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -1711,7 +1711,7 @@ void TR_UseDefInfo::insertData(TR::Block *block, TR::Node *node,TR::Node *parent
aux._defsForSymbol[j]->set(k);
aux._expandedAtoms[k] = std::make_pair(node, treeTop);
}
TR::GlobalSparseBitVector *mustKill = NULL;

TR::Symbol *callSym = NULL;
TR::Method *callMethod = NULL;

Expand Down

0 comments on commit 33b3bc7

Please sign in to comment.