mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-139653: Add PyUnstable_ThreadState_SetStackProtection() (#139668)
Add PyUnstable_ThreadState_SetStackProtection() and PyUnstable_ThreadState_ResetStackProtection() functions to set the stack base address and stack size of a Python thread state. Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
d7862e9b1b
commit
b99db92dde
10 changed files with 199 additions and 7 deletions
|
|
@ -37,6 +37,10 @@ typedef struct _PyThreadStateImpl {
|
|||
uintptr_t c_stack_soft_limit;
|
||||
uintptr_t c_stack_hard_limit;
|
||||
|
||||
// PyUnstable_ThreadState_ResetStackProtection() values
|
||||
uintptr_t c_stack_init_base;
|
||||
uintptr_t c_stack_init_top;
|
||||
|
||||
PyObject *asyncio_running_loop; // Strong reference
|
||||
PyObject *asyncio_running_task; // Strong reference
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue