[Bug 268532] [libthr] pthread_mutex_destroy/pshared_gc slow when destroying many process shared locks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Sep 2026 23:51:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268532
--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=4472a048cf95c9c1593a8b04655a59096b44b0c9
commit 4472a048cf95c9c1593a8b04655a59096b44b0c9
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-09-27 22:16:33 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-09-27 22:30:00 +0000
libthr: GC pshared locks not more than each 25msecs by default
Provide a tunable env variable to request immediate GC on destroy
to allow to return to the previous behavior.
Based on the report and patch by Atle Solbakken <atle.solbakken@gmail.com>.
PR: 268532
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
lib/libthr/thread/thr_init.c | 3 +++
lib/libthr/thread/thr_private.h | 1 +
lib/libthr/thread/thr_pshared.c | 25 ++++++++++++++++++++++---
3 files changed, 26 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.