]> git.ipfire.org Git - thirdparty/tor.git/commit
equix: Add NetBSD to "huge pages not supported" path
authorMicah Elizabeth Scott <beth@torproject.org>
Fri, 25 Aug 2023 17:08:41 +0000 (10:08 -0700)
committerMicah Elizabeth Scott <beth@torproject.org>
Mon, 28 Aug 2023 17:11:00 +0000 (10:11 -0700)
commit9cac0a85b4f62caf458bd44d5030ce6edfd12365
treeabcd42014c60542bfb60b0706380d931574d6426
parent4119a7f971e732a7b3a0fa2548e8c80e8a5bf080
equix: Add NetBSD to "huge pages not supported" path

As suggested by @wiz on #40843, let's add an explicit check to
hashx_vm_alloc_huge() that avoids using a Linux-style default
on NetBSD targets.

This doesn't change the questionable Linux-style default,
but a future patch will disable this code by default so it's not a
portability liability.

(This code is in hashx's VM layer but it's actually only relevant to
equix.)

This addresses bug #40843. Another patch will disable huge pages
by default entirely, but this patch is sufficient to fix the NetBSD
build.
src/ext/equix/hashx/src/virtual_memory.c