summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannahostrowski@gmail.com>2024-09-05 17:56:07 (GMT)
committerGitHub <noreply@github.com>2024-09-05 17:56:07 (GMT)
commit1fbc118c5d3916e920a57cda3cb6d9a0292de26e (patch)
treef7a653f7ae00f8297b8b8434306ce2016dab14ec /Python
parentaa1339aaaa6363c38186defaa079d069b4cb08b2 (diff)
downloadcpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.zip
cpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.tar.gz
cpython-1fbc118c5d3916e920a57cda3cb6d9a0292de26e.tar.bz2
GH-123545: Remove duplicate Py_DECREF when handling _PyOptimizer_Optimize errors (GH-123546)
Diffstat (limited to 'Python')
-rw-r--r--Python/bytecodes.c4
-rw-r--r--Python/executor_cases.c.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index c4cc812..b5a642d 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -4739,8 +4739,6 @@ dummy_func(
if (optimized <= 0) {
exit->temperature = restart_backoff_counter(temperature);
if (optimized < 0) {
- Py_DECREF(current_executor);
- tstate->previous_executor = Py_None;
GOTO_UNWIND();
}
tstate->previous_executor = (PyObject *)current_executor;
@@ -4822,8 +4820,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);
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index d4be790..6d687bb 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -5305,8 +5305,6 @@
if (optimized <= 0) {
exit->temperature = restart_backoff_counter(temperature);
if (optimized < 0) {
- Py_DECREF(current_executor);
- tstate->previous_executor = Py_None;
GOTO_UNWIND();
}
tstate->previous_executor = (PyObject *)current_executor;
@@ -5437,8 +5435,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);