HomeFreeBSD

ctfmerge: fix segfault when building on macOS

Description

ctfmerge: fix segfault when building on macOS

The barrier code was using semaphores which have been deprecated in
macOS and not working at all, causing a race condition. Since macOS
does not have pthread_barrier_*(), this change uses a condition
variable instead.

PR: 290958
Reported by: wosch
Reviewed by: imp, markj
Differential Revision: https://reviews.freebsd.org/D54018

(cherry picked from commit 732b4aa05d78ca6831d02e67a43f34ad104f4f01)

Details

Provenance
mpAuthored on Dec 1 2025, 8:50 PM
Reviewer
imp
Differential Revision
D54018: ctfmerge: fix segfault when building on macOS
Parents
rG2cfa240c0bda: vfs_cache: Fix the SDT definition of vfs:fplookup:lookup:done
Branches
Unknown
Tags
Unknown