mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
GH-112536: Add more TSan tests (#116911)
These may all exercise some non-trivial aspects of thread synchronization.
This commit is contained in:
parent
649857a157
commit
b8d808ddd7
2 changed files with 8 additions and 2 deletions
|
|
@ -1287,8 +1287,8 @@ check_pyobject_forbidden_bytes_is_freed(PyObject *self,
|
|||
static PyObject *
|
||||
check_pyobject_freed_is_freed(PyObject *self, PyObject *Py_UNUSED(args))
|
||||
{
|
||||
/* This test would fail if run with the address sanitizer */
|
||||
#ifdef _Py_ADDRESS_SANITIZER
|
||||
/* ASan or TSan would report an use-after-free error */
|
||||
#if defined(_Py_ADDRESS_SANITIZER) || defined(_Py_THREAD_SANITIZER)
|
||||
Py_RETURN_NONE;
|
||||
#else
|
||||
PyObject *op = PyObject_CallNoArgs((PyObject *)&PyBaseObject_Type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue