mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-13 01:52:50 -05:00
Added initial memory pool support.
This commit is contained in:
@@ -23,15 +23,17 @@
|
||||
*/
|
||||
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
||||
#include "backend/cpu/Cpu.h"
|
||||
#include "core/Controller.h"
|
||||
#include "backend/cpu/Cpu.h"
|
||||
#include "core/config/Config.h"
|
||||
#include "core/Miner.h"
|
||||
#include "crypto/common/VirtualMemory.h"
|
||||
#include "net/Network.h"
|
||||
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
||||
xmrig::Controller::Controller(Process *process) :
|
||||
Base(process)
|
||||
{
|
||||
@@ -41,6 +43,8 @@ xmrig::Controller::Controller(Process *process) :
|
||||
xmrig::Controller::~Controller()
|
||||
{
|
||||
delete m_network;
|
||||
|
||||
VirtualMemory::destroy();
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +52,10 @@ int xmrig::Controller::init()
|
||||
{
|
||||
Base::init();
|
||||
|
||||
VirtualMemory::init(config()->cpu().isHugePages(), -1);
|
||||
|
||||
m_network = new Network(this);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user