@@ -1353,7 +1353,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
13531353 .. versionadded:: 3.11
13541354
13551355
1356- .. c:function:: int PyUnstable_ThreadState_SetStack (PyThreadState *tstate, void *stack_start_addr, size_t stack_size)
1356+ .. c:function:: int PyUnstable_ThreadState_SetStackProtection (PyThreadState *tstate, void *stack_start_addr, size_t stack_size)
13571357
13581358 Set the stack start address and stack size of a Python thread state.
13591359
@@ -1367,24 +1367,24 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
13671367 normally gets from the operating system.
13681368 When the stack is changed, for example using context switching techniques like the
13691369 Boost library's ``boost::context``, you must call
1370- :c:func:`~PyUnstable_ThreadState_SetStack ` to inform CPython of the change.
1370+ :c:func:`~PyUnstable_ThreadState_SetStackProtection ` to inform CPython of the change.
13711371
1372- Call :c:func:`~PyUnstable_ThreadState_SetStack ` either before
1372+ Call :c:func:`~PyUnstable_ThreadState_SetStackProtection ` either before
13731373 or after changing the stack.
13741374 Do not call any other Python C API between the call and the stack
13751375 change.
13761376
1377- See :c:func:`PyUnstable_ThreadState_ResetStack ` for undoing this operation.
1377+ See :c:func:`PyUnstable_ThreadState_ResetStackProtection ` for undoing this operation.
13781378
13791379 .. versionadded:: next
13801380
13811381
1382- .. c:function:: void PyUnstable_ThreadState_ResetStack (PyThreadState *tstate)
1382+ .. c:function:: void PyUnstable_ThreadState_ResetStackProtection (PyThreadState *tstate)
13831383
13841384 Reset the stack start address and stack size of a Python thread state to
13851385 the operating system defaults.
13861386
1387- See :c:func:`PyUnstable_ThreadState_SetStack ` for an explanation.
1387+ See :c:func:`PyUnstable_ThreadState_SetStackProtection ` for an explanation.
13881388
13891389 .. versionadded:: next
13901390
0 commit comments