aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/bit_ops.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-28 12:10:53 -0500
committerJack Lloyd <[email protected]>2018-12-28 12:17:46 -0500
commit752dcf335d06c75605313630f87beaa78db5e50d (patch)
tree6987d2768ea391c286b3b02e6842865851cfb8d4 /src/lib/utils/bit_ops.h
parent1d1f9a91a4f4805abda9590ee552ef6bb000b259 (diff)
Use posix_memalign instead of mmap for creating the locking pool
As described in #602, using mmap with fork causes problems because the mmap remains shared in the child instead of being copy-on-write, then the parent and child stomp on each others memory. However we really do not need mmap semantics, we just want a block of memory that is page-aligned, which can be done with posix_memalign instead. This was added in POSIX.1-2001 and seems to be implemented by all modern systems. Closes #602
Diffstat (limited to 'src/lib/utils/bit_ops.h')
0 files changed, 0 insertions, 0 deletions