From 80198d314e516fc15f553b73c0880a33f1bf4548 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 27 Apr 2023 08:27:09 +0300 Subject: Suppress a data race report in debug-related GC_n_set_marks There could be a race between GC_clear_hdr_marks and GC_n_set_marks but the latter is for a debug purpose. * reclaim.c [USE_MARK_BYTES] (GC_n_set_marks): Add GC_ATTR_NO_SANITIZE_THREAD attribute; update comment. --- reclaim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reclaim.c b/reclaim.c index 5b9498c7..7b0e573c 100644 --- a/reclaim.c +++ b/reclaim.c @@ -488,6 +488,9 @@ struct Print_stats /* Return the number of set mark bits in the given header. */ /* Remains externally visible as used by GNU GCJ currently. */ +/* There could be a race between GC_clear_hdr_marks and this */ +/* function but the latter is for a debug purpose. */ +GC_ATTR_NO_SANITIZE_THREAD unsigned GC_n_set_marks(hdr *hhdr) { unsigned result = 0; -- cgit v1.2.1