Add an option to allocate cache, dataset and VMs all at once

+ Support for 1GB memory pages
This commit is contained in:
tevador
2019-12-05 23:05:13 +01:00
parent 30969c0e25
commit caa016434c
20 changed files with 553 additions and 84 deletions
+17 -1
View File
@@ -57,4 +57,20 @@ namespace randomx {
freePagedMemory(ptr, count);
};
}
void* NullAllocator::allocMemory(size_t count) {
return nullptr;
}
void NullAllocator::freeMemory(void* ptr, size_t count) {
};
void* MonsterPageAllocator::allocMemory(size_t count) {
return allocMonsterPagesMemory(count);
}
void MonsterPageAllocator::freeMemory(void* ptr, size_t count) {
freePagedMemory(ptr, count);
};
}