]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140550: Use a bool for the Py_mod_gil value (GH-141519)
authorPetr Viktorin <encukou@gmail.com>
Fri, 14 Nov 2025 09:38:49 +0000 (10:38 +0100)
committerGitHub <noreply@github.com>
Fri, 14 Nov 2025 09:38:49 +0000 (10:38 +0100)
commita4dd66275b62453bec055d730a8ce7173e519b6d
tree988c7ec42312347d895cafd93cbc5297e4585c33
parent4885ecfbda4cc792691e5d488ef6cb09727eb417
gh-140550: Use a bool for the Py_mod_gil value (GH-141519)

This needs a single bit, but was stored as a void* in the module
struct. This didn't matter due to packing, but now that there's
another bool in the struct, we can save a bit of memory by
making md_gil a bool.

Variables that changed type are renamed, to detect conflicts.
Include/internal/pycore_moduleobject.h
Lib/test/test_sys.py
Objects/moduleobject.c
Python/import.c