mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 08:17:55 +00:00
Fixed RandomX VM initialization
This commit is contained in:
parent
57bc38d2bb
commit
c8a2a256e7
1 changed files with 3 additions and 2 deletions
|
@ -247,8 +247,9 @@ void RandomX_Hasher::set_seed(const hash& seed)
|
|||
MutexLock lock3(m_vm[FULL_DATASET_VM].mutex);
|
||||
|
||||
if (!m_vm[FULL_DATASET_VM].vm) {
|
||||
const randomx_flags flags = randomx_get_flags();
|
||||
m_vm[FULL_DATASET_VM].vm = randomx_create_vm(flags | RANDOMX_FLAG_LARGE_PAGES | RANDOMX_FLAG_FULL_MEM, nullptr, m_dataset);
|
||||
const randomx_flags flags = randomx_get_flags() | RANDOMX_FLAG_FULL_MEM;
|
||||
|
||||
m_vm[FULL_DATASET_VM].vm = randomx_create_vm(flags | RANDOMX_FLAG_LARGE_PAGES, nullptr, m_dataset);
|
||||
if (!m_vm[FULL_DATASET_VM].vm) {
|
||||
LOGWARN(1, "couldn't allocate RandomX VM using large pages");
|
||||
m_vm[FULL_DATASET_VM].vm = randomx_create_vm(flags, nullptr, m_dataset);
|
||||
|
|
Loading…
Reference in a new issue