Skip to content

Commit 9719a1c

Browse files
Yhg1smeta-codesync[bot]
authored andcommitted
Sync main's 03-add-parallel-gc-hooks patch with 3.15's.
Reviewed By: itamaro Differential Revision: D114626314 fbshipit-source-id: 578c8a81710a38519efc06f4297a5afb5aa72c30
1 parent a72e13e commit 9719a1c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Include/pystate.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE);
119119
*/
120120
PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
121121

122+
#ifndef Py_LIMITED_API
122123
// Sets the thread state for multi-threaded GC
123-
PyAPI_FUNC(void) Ci_SetTStateForGC(PyThreadState *tstate);
124+
PyAPI_FUNC(void) _Ci_PySetTStateForGC(PyThreadState *tstate);
125+
#endif
124126

125127
/* PEP 788 -- Protection against interpreter finalization */
126128

Python/pystate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ current_fast_set(_PyRuntimeState *Py_UNUSED(runtime), PyThreadState *tstate)
9797
}
9898

9999
void
100-
Ci_SetTStateForGC(PyThreadState *tstate)
100+
_Ci_PySetTStateForGC(PyThreadState *tstate)
101101
{
102102
current_fast_set(&_PyRuntime, tstate);
103103
}

0 commit comments

Comments
 (0)