summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-12-07 21:03:47 (GMT)
committerGitHub <noreply@github.com>2021-12-07 21:03:47 (GMT)
commit313f92a57bc3887026ec16adb536bb2b7580ce47 (patch)
tree65ddd994ed926fb46d2c24628b94f24667f6f385 /Python/thread.c
parent8262c96bcc1841188866c1b022d9087e89639d98 (diff)
downloadcpython-313f92a57bc3887026ec16adb536bb2b7580ce47.zip
cpython-313f92a57bc3887026ec16adb536bb2b7580ce47.tar.gz
cpython-313f92a57bc3887026ec16adb536bb2b7580ce47.tar.bz2
bpo-46008: Move thread-related interpreter state into a sub-struct. (gh-29971)
This parallels _PyRuntimeState.interpreters. Doing this helps make it more clear what part of PyInterpreterState relates to its threads. https://bugs.python.org/issue46008
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c
index dfe28b6..b1c0cfe 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -109,7 +109,7 @@ _PyThread_debug_deprecation(void)
size_t
PyThread_get_stacksize(void)
{
- return _PyInterpreterState_GET()->pythread_stacksize;
+ return _PyInterpreterState_GET()->threads.stacksize;
}
/* Only platforms defining a THREAD_SET_STACKSIZE() macro