Added 1GB hugepages support for Linux

This commit is contained in:
SChernykh
2019-12-05 19:39:47 +01:00
parent 7050eaa272
commit 0a5c12295d
28 changed files with 156 additions and 50 deletions

View File

@@ -57,4 +57,12 @@ namespace randomx {
freePagedMemory(ptr, count);
};
void* OneGbPageAllocator::allocMemory(size_t count) {
return allocOneGbPagesMemory(count);
}
void OneGbPageAllocator::freeMemory(void* ptr, size_t count) {
freePagedMemory(ptr, count);
};
}