]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Use spinlocks for inode cache memory synchronization (#1229)
authorOleg Sidorkin <osidorkin@gmail.com>
Wed, 4 Jan 2023 13:53:21 +0000 (16:53 +0300)
committerGitHub <noreply@github.com>
Wed, 4 Jan 2023 13:53:21 +0000 (14:53 +0100)
commit95e6375813f7970ff1dd80126d18a1bd3b2c3bd3
treef79a901a1c7dfb60490bc301adddb6b6070c1983
parent76227519c1ae93f5492087d893fe7c491cfa5399
fix: Use spinlocks for inode cache memory synchronization (#1229)

Changed the inode cache implementation to use spinlocks instead of pthread
mutexes. This makes the inode cache work on FreeBSD and other systems where the
pthread mutexes are destroyed when the last memory mapping containing the
mutexes is unmapped.

Also added tmpfs, ufs and zfs to the list of supported filesystems on macOS and
BSDs.

See also ccache discussion #1228.
src/InodeCache.cpp
src/InodeCache.hpp
test/suites/inode_cache.bash
unittest/test_InodeCache.cpp