Fix concurrent allocation issue on DragonFly (unsupported).
Thanks to sigttou. #1525
This commit is contained in:
parent
a9981441d9
commit
3f549af5e9
@ -219,7 +219,7 @@ static int CALL_MUNMAP(void *ptr, size_t size)
|
||||
|
||||
#if LJ_ALLOC_MMAP_PROBE
|
||||
|
||||
#ifdef MAP_TRYFIXED
|
||||
#if defined(MAP_TRYFIXED) && !defined(__DragonFly__)
|
||||
#define MMAP_FLAGS_PROBE (MMAP_FLAGS|MAP_TRYFIXED)
|
||||
#else
|
||||
#define MMAP_FLAGS_PROBE MMAP_FLAGS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user