Fix concurrent allocation issue on DragonFly (unsupported).

Thanks to sigttou. #1525
This commit is contained in:
Mike Pall 2026-10-13 11:59:26 +02:00
parent a9981441d9
commit 3f549af5e9

View File

@ -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