There was an error while loading. Please reload this page.
_PyInstrumentation_DISABLE
1 parent 82905dd commit 52bed26Copy full SHA for 52bed26
1 file changed
Python/instrumentation.c
@@ -989,8 +989,12 @@ call_one_instrument(
989
if (res == NULL) {
990
return -1;
991
}
992
+ if (res == &_PyInstrumentation_DISABLE) {
993
+ assert(_Py_IsImmortal(res));
994
+ return 1;
995
+ }
996
Py_DECREF(res);
- return (res == &_PyInstrumentation_DISABLE);
997
+ return 0;
998
999
1000
static const int8_t MOST_SIGNIFICANT_BITS[16] = {
0 commit comments