]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145497: Use same size of static_types array in all builds (GH-149139)
authorPetr Viktorin <encukou@gmail.com>
Fri, 1 May 2026 07:41:28 +0000 (09:41 +0200)
committerGitHub <noreply@github.com>
Fri, 1 May 2026 07:41:28 +0000 (09:41 +0200)
commitfcd53b68726e147a5604848573494a5fd8958b45
tree093911030dd5d4e3af93ef97ea8f369808b71aad
parent8066db57535161dda316a70c1b00a89581bf3399
gh-145497: Use same size of static_types array in all builds (GH-149139)

When someone adds a new type but doesn't increment
`_Py_MAX_MANAGED_STATIC_BUILTIN_TYPES` or
`_Py_MAX_MANAGED_STATIC_EXT_TYPES`, JIT tests fail,
because JIT builds define an extra type.
But the JIT tests don't necessarily run for the commit
that causes the failure.

As a workaround, use the same size for the array for all
builds, potentially with an empty spot.
Include/internal/pycore_interp_structs.h
Objects/object.c