# Copyright (c) 2026-present, the Ladybird developers.
#
# SPDX-License-Identifier: BSD-2-Clause

# ThreadSanitizer suppressions. Use with TSAN_OPTIONS=suppressions=<path to this file>.

# The stylesheet cache is protected by the uninstrumented Rust standard library mutex.
# TSan cannot see that synchronization, so a cache lookup can appear to race with insertion.
race:libweb_rust::css::parser::stylesheet_cache

# FFmpeg's and dav1d's frame threads hand buffers to each other through synchronization inside
# libavcodec, libavutil and libdav1d, which are not instrumented, so touching a buffer another frame
# thread wrote looks like a race.
race:libavcodec.so
race:libavcodec-ladybird.so
race:libavutil.so
race:libavutil-ladybird.so
race:libdav1d.so

# HarfBuzz's language list is lock-free: an item is complete before a compare-and-swap in the uninstrumented library
# publishes it, and it never changes after that. TSan sees the allocation and the reads, but not the atomic.
race:lang_find_or_insert
