Skip to content

Commit 49b4c8c

Browse files
committed
remove interface Imemory manager
1 parent 37c5b49 commit 49b4c8c

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

Source/Library/MemoryManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace sd
4444
return std::make_tuple((uint8_t *)highLimit - 10, (uint8_t *)lowLimit, rsp);
4545
}
4646
#endif
47-
#ifdef LINUX
47+
#ifdef LINUX
4848
auto getStackBounds()
4949
{
5050
auto rsp = getStackRsp();

Source/Library/h/MemoryManager.hpp

+3-12
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@
77

88
namespace sd
99
{
10-
11-
struct IMemoryManager
12-
{
13-
virtual size_t garbageCollect() = 0;
14-
virtual size_t getAllocatedMemory() const = 0;
15-
16-
virtual ~IMemoryManager() {}
17-
};
18-
19-
class MemoryManager : public IMemoryManager
10+
class MemoryManager
2011
{
2112
#pragma region HelperClasses
2213
private:
@@ -138,12 +129,12 @@ namespace sd
138129
/**
139130
* Runs manually garbage collection, returns bytes freed during this collection
140131
*/
141-
size_t garbageCollect() override;
132+
size_t garbageCollect();
142133

143134
/**
144135
* Get number of bytes currently allocated by memory manager.
145136
*/
146-
size_t getAllocatedMemory() const override;
137+
size_t getAllocatedMemory() const;
147138

148139
private:
149140
void destroyObject(IObjectHolder &objectHolder);

0 commit comments

Comments
 (0)