mirror of
https://github.com/python/cpython.git
synced 2024-11-22 13:28:21 +01:00
7641743d48
The functions look thread-safe and I haven't seen any warnings issued when running the tests locally.
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
# This file contains suppressions for the free-threaded build. It contains the
|
|
# suppressions for the default build and additional suppressions needed only in
|
|
# the free-threaded build.
|
|
#
|
|
# reference: https://github.com/google/sanitizers/wiki/ThreadSanitizerSuppressions
|
|
|
|
## Default build suppresssions
|
|
|
|
race:get_allocator_unlocked
|
|
race:set_allocator_unlocked
|
|
|
|
## Free-threaded suppressions
|
|
|
|
|
|
# These entries are for warnings that trigger in a library function, as called
|
|
# by a CPython function.
|
|
|
|
# https://gist.github.com/swtaarrs/8e0e365e1d9cecece3269a2fb2f2b8b8
|
|
race:sock_recv_impl
|
|
# https://gist.github.com/swtaarrs/08dfe7883b4c975c31ecb39388987a67
|
|
race:free_threadstate
|
|
|
|
|
|
# These warnings trigger directly in a CPython function.
|
|
|
|
race_top:_PyEval_EvalFrameDefault
|
|
race_top:assign_version_tag
|
|
race_top:new_reference
|
|
race_top:_multiprocessing_SemLock_acquire_impl
|
|
race_top:list_get_item_ref
|
|
race_top:make_pending_calls
|
|
race_top:_Py_slot_tp_getattr_hook
|
|
race_top:add_threadstate
|
|
race_top:dump_traceback
|
|
race_top:fatal_error
|
|
race_top:_multiprocessing_SemLock_release_impl
|
|
race_top:_PyFrame_GetCode
|
|
race_top:_PyFrame_Initialize
|
|
race_top:PyInterpreterState_ThreadHead
|
|
race_top:_PyObject_TryGetInstanceAttribute
|
|
race_top:PyThreadState_Next
|
|
race_top:PyUnstable_InterpreterFrame_GetLine
|
|
race_top:tstate_delete_common
|
|
race_top:tstate_is_freed
|
|
race_top:type_modified_unlocked
|
|
race_top:write_thread_id
|
|
race_top:PyThreadState_Clear
|
|
# Only seen on macOS, sample: https://gist.github.com/aisk/dda53f5d494a4556c35dde1fce03259c
|
|
race_top:set_default_allocator_unlocked
|
|
|
|
# https://gist.github.com/mpage/6962e8870606cfc960e159b407a0cb40
|
|
thread:pthread_create
|