From: Sam Gross Date: Mon, 5 Jan 2026 21:13:29 +0000 (-0500) Subject: gh-143108: Don't instrument some faulthandler related functions for TSan (#143450) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a572d9f21dd7b665b95f4f96e1d40c6b72754ad;p=thirdparty%2FPython%2Fcpython.git gh-143108: Don't instrument some faulthandler related functions for TSan (#143450) --- diff --git a/Python/traceback.c b/Python/traceback.c index 40e19c7cc820..74360a1c73c2 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -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)