summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2010-03-18 21:54:01 +0000
committerCollin Winter <collinw@gmail.com>2010-03-18 21:54:01 +0000
commite90e7036d4982837cbcf1dfde1854eab7217c445 (patch)
treeaa2b6902250a794fb713705df55d2365e0016c9a /Include
parent40a4e1616a577f09ec967ffb8373b64fc0f416ea (diff)
downloadcpython-e90e7036d4982837cbcf1dfde1854eab7217c445.tar.gz
Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.
Patch by Reid Kleckner!
Diffstat (limited to 'Include')
-rw-r--r--Include/code.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/code.h b/Include/code.h
index 260c5f05f7..38b2958046 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -26,6 +26,7 @@ typedef struct {
PyObject *co_lnotab; /* string (encoding addr<->lineno mapping) See
Objects/lnotab_notes.txt for details. */
void *co_zombieframe; /* for optimization only (see frameobject.c) */
+ PyObject *co_weakreflist; /* to support weakrefs to code objects */
} PyCodeObject;
/* Masks for co_flags above */