[Bug 259076] pthread_mutex_init fails with limited AS

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 15 Oct 2021 16:37:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259076

--- Comment #8 from Denis Koreshkov <dynamic-wind@mail.ru> ---
(In reply to Konstantin Belousov from comment #7)
If you meant these lines, they do not help in the case mmap returns MAP_FAILED.

+       if (pagepool_start == MAP_FAILED)
+               pagepool_start = 0;
        offset = (uintptr_t)pagepool_start - rounddown2(
            (uintptr_t)pagepool_start, pagesz);

        pagepool_start = mmap(0, n * pagesz, PROT_READ | PROT_WRITE,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-- 
You are receiving this mail because:
You are the assignee for the bug.