mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] gh-138661: fix data race in PyCode_Addr2Line (GH-138664) (#138834)
gh-138661: fix data race in `PyCode_Addr2Line` (GH-138664)
(cherry picked from commit ea26f6da39)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
98d33bf19c
commit
bfcd5f25a5
3 changed files with 15 additions and 3 deletions
|
|
@ -274,6 +274,8 @@ extern void _PyLineTable_InitAddressRange(
|
|||
/** API for traversing the line number table. */
|
||||
extern int _PyLineTable_NextAddressRange(PyCodeAddressRange *range);
|
||||
extern int _PyLineTable_PreviousAddressRange(PyCodeAddressRange *range);
|
||||
// This is used in dump_frame() in traceback.c without an attached tstate.
|
||||
extern int _PyCode_Addr2LineNoTstate(PyCodeObject *co, int addr);
|
||||
|
||||
/** API for executors */
|
||||
extern void _PyCode_Clear_Executors(PyCodeObject *code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue