summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2010-03-18 21:54:01 (GMT)
committerCollin Winter <collinw@gmail.com>2010-03-18 21:54:01 (GMT)
commit001a3952c973c645d961b4d688fc79d556fd580d (patch)
tree79213b980c9beda258b833ac5274b23c98d20084 /Include
parent2e0a53fdf6dd84ab5418ae4faec330eaed443bd6 (diff)
downloadcpython-001a3952c973c645d961b4d688fc79d556fd580d.zip
cpython-001a3952c973c645d961b4d688fc79d556fd580d.tar.gz
cpython-001a3952c973c645d961b4d688fc79d556fd580d.tar.bz2
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 260c5f0..38b2958 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 */