Skip to content

Commit

Permalink
Move definition of PersistentInfo::createCounters to cpp file
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Guan <james_mango@yahoo.com>
  • Loading branch information
jamesgua committed Jun 13, 2021
1 parent bb369d1 commit b17a7cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 9 additions & 1 deletion compiler/env/OMRPersistentInfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 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 All @@ -20,9 +20,17 @@
*******************************************************************************/

#include "env/PersistentInfo.hpp"
#include "ras/DebugCounter.hpp"

TR::PersistentInfo *
OMR::PersistentInfo::self()
{
return static_cast<TR::PersistentInfo*>(this);
}

void
OMR::PersistentInfo::createCounters(TR_PersistentMemory *mem)
{
_staticCounters = new (mem) TR::DebugCounterGroup(mem);
_dynamicCounters = new (mem) TR::DebugCounterGroup(mem);
}
6 changes: 0 additions & 6 deletions compiler/ras/DebugCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,3 @@ void TR::DebugCounterGroup::resetAll()

// TODO: Aggregations??
}

void OMR::PersistentInfo::createCounters(TR_PersistentMemory *mem)
{
_staticCounters = new (mem) TR::DebugCounterGroup(mem);
_dynamicCounters = new (mem) TR::DebugCounterGroup(mem);
}

0 comments on commit b17a7cd

Please sign in to comment.