Implemented virtual memory free

Removed legacy AES code
This commit is contained in:
tevador
2019-03-08 11:46:03 +01:00
parent 6e8c83fdb6
commit 096a7c0d7b
9 changed files with 44 additions and 134 deletions
+9 -1
View File
@@ -109,4 +109,12 @@ void* allocLargePagesMemory(std::size_t bytes) {
throw std::runtime_error("allocLargePagesMemory - mmap failed");
#endif
return mem;
}
}
void freePagedMemory(void* ptr, std::size_t bytes) {
#ifdef _WIN32
VirtualFree(ptr, 0, MEM_RELEASE);
#else
munmap(ptr, bytes);
#endif
}