mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
gh-117657: Fix small issues with instrumentation and TSAN (#118064)
Small TSAN fixups for instrumentation
This commit is contained in:
parent
1f16b4ce56
commit
4a1cf66c5c
7 changed files with 25 additions and 13 deletions
|
@ -162,7 +162,7 @@ GETITEM(PyObject *v, Py_ssize_t i) {
|
|||
/* The integer overflow is checked by an assertion below. */
|
||||
#define INSTR_OFFSET() ((int)(next_instr - _PyCode_CODE(_PyFrame_GetCode(frame))))
|
||||
#define NEXTOPARG() do { \
|
||||
_Py_CODEUNIT word = *next_instr; \
|
||||
_Py_CODEUNIT word = {.cache = FT_ATOMIC_LOAD_UINT16_RELAXED(*(uint16_t*)next_instr)}; \
|
||||
opcode = word.op.code; \
|
||||
oparg = word.op.arg; \
|
||||
} while (0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue