summaryrefslogtreecommitdiffstats
path: root/Include/code.h
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2010-03-18 22:46:40 (GMT)
committerCollin Winter <collinw@gmail.com>2010-03-18 22:46:40 (GMT)
commit4222e9c07cc9a223ac756f8cc1c1cd2f9212765e (patch)
treed9d477df9e477ed208bee9b3748f7ad1492e8f86 /Include/code.h
parentb3a482962d12871db122dbc843476eea054b2782 (diff)
downloadcpython-4222e9c07cc9a223ac756f8cc1c1cd2f9212765e.zip
cpython-4222e9c07cc9a223ac756f8cc1c1cd2f9212765e.tar.gz
cpython-4222e9c07cc9a223ac756f8cc1c1cd2f9212765e.tar.bz2
Merged revisions 79060 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79060 | collin.winter | 2010-03-18 14:54:01 -0700 (Thu, 18 Mar 2010) | 4 lines 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/code.h')
-rw-r--r--Include/code.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/code.h b/Include/code.h
index c93d861..f0f88cd 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -27,6 +27,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 */