mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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!
This commit is contained in:
parent
2e0a53fdf6
commit
001a3952c9
6 changed files with 40 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue