Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 026e557

Browse files
author
Anselm Kruis
committed
Stackless issue #254: bpo-36710: Add runtime variable in pystate.c
Adapt Stackless to upstream commit 10c8e6a.
1 parent daa625d commit 026e557

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/pystate.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,14 @@ _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime)
157157
#ifdef STACKLESS
158158
void
159159
slp_head_lock(void) {
160-
HEAD_LOCK();
160+
_PyRuntimeState *runtime = &_PyRuntime;
161+
HEAD_LOCK(runtime);
161162
}
162163

163164
void
164165
slp_head_unlock(void) {
165-
HEAD_UNLOCK();
166+
_PyRuntimeState *runtime = &_PyRuntime;
167+
HEAD_UNLOCK(runtime);
166168
}
167169
#endif
168170

0 commit comments

Comments
 (0)