aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/gc_free_threading.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-08-21 15:52:04 +0100
committerGitHub <noreply@github.com>2024-08-21 15:52:04 +0100
commita4fd7aa4a6420cef1c22ec64eab54d8aea41cc57 (patch)
tree026af8576d2d3e05b56c475574606f13f69cf040 /Python/gc_free_threading.c
parent4b7c4880a0b264373e65235701bb78cbf19266b5 (diff)
downloadcpython-a4fd7aa4a6420cef1c22ec64eab54d8aea41cc57.tar.gz
cpython-a4fd7aa4a6420cef1c22ec64eab54d8aea41cc57.zip
GH-115776: Allow any fixed sized object to have inline values (GH-123192)
Diffstat (limited to 'Python/gc_free_threading.c')
-rw-r--r--Python/gc_free_threading.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/gc_free_threading.c b/Python/gc_free_threading.c
index b95456519dc..54de0c2671a 100644
--- a/Python/gc_free_threading.c
+++ b/Python/gc_free_threading.c
@@ -1810,6 +1810,9 @@ _PyObject_GC_New(PyTypeObject *tp)
return NULL;
}
_PyObject_Init(op, tp);
+ if (tp->tp_flags & Py_TPFLAGS_INLINE_VALUES) {
+ _PyObject_InitInlineValues(op, tp);
+ }
return op;
}