diff options
| author | Mark Shannon <mark@hotpy.org> | 2024-01-05 09:45:22 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 09:45:22 (GMT) |
| commit | 0ae60b66dea5140382190463a676bafe706608f5 (patch) | |
| tree | f3cb44d3f9b90ec14d6cddde5687f72ca4e776f3 /Python/specialize.c | |
| parent | ed6ea3ea79fac68b127c7eb457c7ecb996461010 (diff) | |
| download | cpython-0ae60b66dea5140382190463a676bafe706608f5.zip cpython-0ae60b66dea5140382190463a676bafe706608f5.tar.gz cpython-0ae60b66dea5140382190463a676bafe706608f5.tar.bz2 | |
GH-113486: Do not emit spurious PY_UNWIND events for optimized calls to classes. (GH-113680)
Diffstat (limited to 'Python/specialize.c')
| -rw-r--r-- | Python/specialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index 369b962..7b63393 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -2534,7 +2534,7 @@ const struct _PyCode_DEF(8) _Py_InitCleanup = { .co_consts = (PyObject *)&_Py_SINGLETON(tuple_empty), .co_names = (PyObject *)&_Py_SINGLETON(tuple_empty), .co_exceptiontable = (PyObject *)&_Py_SINGLETON(bytes_empty), - .co_flags = CO_OPTIMIZED, + .co_flags = CO_OPTIMIZED | CO_NO_MONITORING_EVENTS, .co_localsplusnames = (PyObject *)&_Py_SINGLETON(tuple_empty), .co_localspluskinds = (PyObject *)&_Py_SINGLETON(bytes_empty), .co_filename = &_Py_ID(__init__), |
