diff options
author | Mark Shannon <mark@hotpy.org> | 2023-09-08 09:34:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 09:34:40 (GMT) |
commit | 15d4c9fabce67b8a1b5bd9dec9612014ec18291a (patch) | |
tree | 1c728c98663c224ec93022b0bdd0dd685c9fdf38 /Include | |
parent | 00cf626cd41f806062c22a913b647b4efa84c476 (diff) | |
download | cpython-15d4c9fabce67b8a1b5bd9dec9612014ec18291a.zip cpython-15d4c9fabce67b8a1b5bd9dec9612014ec18291a.tar.gz cpython-15d4c9fabce67b8a1b5bd9dec9612014ec18291a.tar.bz2 |
GH-108716: Turn off deep-freezing of code objects. (GH-108722)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/import.h | 1 | ||||
-rw-r--r-- | Include/internal/pycore_code.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_interp.h | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/Include/cpython/import.h b/Include/cpython/import.h index cdfdd15..7daf0b8 100644 --- a/Include/cpython/import.h +++ b/Include/cpython/import.h @@ -17,7 +17,6 @@ struct _frozen { const unsigned char *code; int size; int is_package; - PyObject *(*get_code)(void); }; /* Embedding apps may change this pointer to point to their favorite diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index b3f480c..257b058 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -465,8 +465,6 @@ adaptive_counter_backoff(uint16_t counter) { return adaptive_counter_bits(value, backoff); } -extern uint32_t _Py_next_func_version; - /* Comparison bit masks. */ diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index e0b7a32..ba5764e 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -186,6 +186,7 @@ struct _is { _PyOptimizerObject *optimizer; uint16_t optimizer_resume_threshold; uint16_t optimizer_backedge_threshold; + uint32_t next_func_version; _Py_GlobalMonitors monitors; bool f_opcode_trace_set; |