Mercurial > cpython-lru_cache-weakref
diff Include/code.h @ 59705:eea72b81a23c
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!
........
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Thu, 18 Mar 2010 22:46:40 +0000 |
| parents | 79718ee03986 |
| children | 01b96f78fb70 |
line wrap: on
line diff
--- a/Include/code.h Thu Mar 18 22:43:41 2010 +0000 +++ b/Include/code.h Thu Mar 18 22:46:40 2010 +0000 @@ -27,6 +27,7 @@ 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 */
