]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Slightly more sanitary thread dispatch
authorTony Finch <fanf@isc.org>
Wed, 3 May 2023 14:44:36 +0000 (15:44 +0100)
committerTony Finch <fanf@isc.org>
Fri, 12 May 2023 19:48:31 +0000 (20:48 +0100)
Tell thread sanitizer that the thread wrapper is released before
passing it to a new thread.

lib/isc/thread.c

index aca7c38332f927fa59aa4ac3925bced4def305af..b0e0875acaf0b902da7c128e7382eb6428becabf 100644 (file)
@@ -61,7 +61,7 @@ thread_wrap(isc_threadfunc_t func, void *arg) {
                .func = func,
                .arg = arg,
        };
-
+       __tsan_release(wrap);
        return (wrap);
 }