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