summaryrefslogtreecommitdiffstats
path: root/Modules/_xxinterpchannelsmodule.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-10-19 14:52:02 (GMT)
committerGitHub <noreply@github.com>2023-10-19 14:52:02 (GMT)
commitd23a2f988771f4abd771ab4274529dcbf60dae37 (patch)
treef8b38d16b5b1216f271a8e0b1fca055106e219ee /Modules/_xxinterpchannelsmodule.c
parent6741d5af32101c27c3f930bfc575a7e567f9bf20 (diff)
downloadcpython-d23a2f988771f4abd771ab4274529dcbf60dae37.zip
cpython-d23a2f988771f4abd771ab4274529dcbf60dae37.tar.gz
cpython-d23a2f988771f4abd771ab4274529dcbf60dae37.tar.bz2
gh-76785: Make interpreters.*Channel Objects Shareable (gh-110607)
This restores their shareability, which was disabled by gh-110318 due to ref leaks.
Diffstat (limited to 'Modules/_xxinterpchannelsmodule.c')
-rw-r--r--Modules/_xxinterpchannelsmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_xxinterpchannelsmodule.c b/Modules/_xxinterpchannelsmodule.c
index 8dd8050..11fe8cd 100644
--- a/Modules/_xxinterpchannelsmodule.c
+++ b/Modules/_xxinterpchannelsmodule.c
@@ -441,6 +441,10 @@ _get_current_module_state(void)
static int
traverse_module_state(module_state *state, visitproc visit, void *arg)
{
+ /* external types */
+ Py_VISIT(state->send_channel_type);
+ Py_VISIT(state->recv_channel_type);
+
/* heap types */
Py_VISIT(state->ChannelInfoType);
Py_VISIT(state->ChannelIDType);