1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-23 06:52:33 -05:00

Rewrite memory allocation.

This commit is contained in:
XMRig
2018-04-15 11:08:47 +07:00
parent 4b71b7aa29
commit 9125b6c251
19 changed files with 212 additions and 224 deletions

View File

@@ -76,8 +76,6 @@ App::App(int argc, char **argv) :
App::~App()
{
Mem::release();
uv_tty_reset_mode();
delete m_console;
@@ -101,11 +99,7 @@ int App::exec()
background();
Mem::allocate(m_controller->config()->algorithm(),
m_controller->config()->threadsCount(),
m_controller->config()->isDoubleHash(),
m_controller->config()->isHugePages()
);
Mem::init(m_controller->config()->isHugePages());
Summary::print(m_controller);