mirror of
https://github.com/wownero/RandomX.git
synced 2026-10-20 16:58:46 +02:00
Add an option to allocate cache, dataset and VMs all at once
+ Support for 1GB memory pages
This commit is contained in:
+17
-1
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user