mirror of https://github.com/python/cpython
[3.13] GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123759)
(cherry picked from commit 1fbc118c5d
)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
This commit is contained in:
parent
d053204b73
commit
eac2fdacfb
|
@ -0,0 +1 @@
|
|||
Fix a double decref in rare cases on experimental JIT builds.
|
|
@ -4322,8 +4322,6 @@ dummy_func(
|
|||
if (optimized <= 0) {
|
||||
exit->temperature = restart_backoff_counter(exit->temperature);
|
||||
if (optimized < 0) {
|
||||
Py_DECREF(current_executor);
|
||||
tstate->previous_executor = Py_None;
|
||||
GOTO_UNWIND();
|
||||
}
|
||||
GOTO_TIER_ONE(target);
|
||||
|
|
|
@ -4390,8 +4390,6 @@
|
|||
if (optimized <= 0) {
|
||||
exit->temperature = restart_backoff_counter(exit->temperature);
|
||||
if (optimized < 0) {
|
||||
Py_DECREF(current_executor);
|
||||
tstate->previous_executor = Py_None;
|
||||
GOTO_UNWIND();
|
||||
}
|
||||
GOTO_TIER_ONE(target);
|
||||
|
|
Loading…
Reference in New Issue