Skip to content

Commit 67821dc

Browse files
committed
update
1 parent 137a1bf commit 67821dc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Misc/NEWS.d/next/Core_and_Builtins/2026-06-16-13-50-13.gh-issue-151377.mCqrGg.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Python/instrumentation.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,12 @@ call_one_instrument(
989989
if (res == NULL) {
990990
return -1;
991991
}
992-
int is_disable = (res == &_PyInstrumentation_DISABLE);
992+
if (res == &_PyInstrumentation_DISABLE) {
993+
assert(_Py_IsImmortal(res));
994+
return 1;
995+
}
993996
Py_DECREF(res);
994-
return is_disable;
997+
return 0;
995998
}
996999

9971000
static const int8_t MOST_SIGNIFICANT_BITS[16] = {

0 commit comments

Comments
 (0)