mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
mmap on FreeBSD doesn't have MAP_HUGETLB
This commit is contained in:
parent
110f110181
commit
ccb2ab2b7b
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ void slow_hash_allocate_state(void)
|
|||
hp_state = (uint8_t *) VirtualAlloc(hp_state, MEMORY, MEM_LARGE_PAGES |
|
||||
MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
||||
#else
|
||||
#if defined(__APPLE__)
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
hp_state = mmap(0, MEMORY, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANON, 0, 0);
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue