Skip to content

Commit 7a572d9

Browse files
authored
gh-143108: Don't instrument some faulthandler related functions for TSan (#143450)
1 parent 240a6c3 commit 7a572d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/traceback.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ _Py_DumpTraceback(int fd, PyThreadState *tstate)
11861186

11871187

11881188
// Write the thread name
1189-
static void
1189+
static void _Py_NO_SANITIZE_THREAD
11901190
write_thread_name(int fd, PyThreadState *tstate)
11911191
{
11921192
#ifndef MS_WINDOWS
@@ -1239,7 +1239,7 @@ write_thread_name(int fd, PyThreadState *tstate)
12391239
12401240
This function is signal safe (except on Windows). */
12411241

1242-
static void
1242+
static void _Py_NO_SANITIZE_THREAD
12431243
write_thread_id(int fd, PyThreadState *tstate, int is_current)
12441244
{
12451245
if (is_current)

0 commit comments

Comments
 (0)