]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-143108: Don't instrument some faulthandler related functions for TSan (#143450)
authorSam Gross <colesbury@gmail.com>
Mon, 5 Jan 2026 21:13:29 +0000 (16:13 -0500)
committerGitHub <noreply@github.com>
Mon, 5 Jan 2026 21:13:29 +0000 (22:13 +0100)
Python/traceback.c

index 40e19c7cc82075d1f79cfe81ff91459d5f81763f..74360a1c73c2713858a40ff5af81e24b08f2179c 100644 (file)
@@ -1186,7 +1186,7 @@ _Py_DumpTraceback(int fd, PyThreadState *tstate)
 
 
 // Write the thread name
-static void
+static void _Py_NO_SANITIZE_THREAD
 write_thread_name(int fd, PyThreadState *tstate)
 {
 #ifndef MS_WINDOWS
@@ -1239,7 +1239,7 @@ write_thread_name(int fd, PyThreadState *tstate)
 
    This function is signal safe (except on Windows). */
 
-static void
+static void _Py_NO_SANITIZE_THREAD
 write_thread_id(int fd, PyThreadState *tstate, int is_current)
 {
     if (is_current)