[Bug 259076] pthread_mutex_init fails with limited AS

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 Oct 2021 19:38:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259076

Denis Koreshkov <dynamic-wind@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|CURRENT                     |13.0-RELEASE

--- Comment #3 from Denis Koreshkov <dynamic-wind@mail.ru> ---
(In reply to Konstantin Belousov from comment #1)
Sorry, I cannot confirm, but after some more testing I think that fixing rtld
won't help much.

Please have a look at the attached program. On 11.2-RELEASE it prints
alloc 51712 Kbytes
freed 51712 Kbytes
612224 mutexes: 76528 Kbytes
Whereas on 13.0-RELEASE the result is
alloc 45312 Kbytes
freed 45312 Kbytes
0 mutexes: 0 Kbytes
(It MUST be compiled with -pthread)

Apparently jemalloc does not unmap free pages on the second system, which is
where I noticed pthread_mutex_init failures.

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