summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-02-05 16:20:54 (GMT)
committerGitHub <noreply@github.com>2024-02-05 16:20:54 (GMT)
commit992446dd5bd3fff92ea0f8064fb19eebfe105cef (patch)
tree95df0aa7212a7773c1345c264c8a15972877e25b /Include
parent87cd20a567aca56369010689e22a524bc1f1ac03 (diff)
downloadcpython-992446dd5bd3fff92ea0f8064fb19eebfe105cef.zip
cpython-992446dd5bd3fff92ea0f8064fb19eebfe105cef.tar.gz
cpython-992446dd5bd3fff92ea0f8064fb19eebfe105cef.tar.bz2
GH-113462: Limit the number of versions that a single class can use. (GH-114900)
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index c939316..7512bb7 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -229,6 +229,7 @@ struct _typeobject {
/* bitset of which type-watchers care about this type */
unsigned char tp_watched;
+ uint16_t tp_versions_used;
};
/* This struct is used by the specializer