There was an error while loading. Please reload this page.
_PyInstrumentation_DISABLE
1 parent d8c20a5 commit 2e19855Copy full SHA for 2e19855
1 file changed
Python/instrumentation.c
@@ -960,8 +960,12 @@ call_one_instrument(
960
if (res == NULL) {
961
return -1;
962
}
963
+ if (res == &_PyInstrumentation_DISABLE) {
964
+ assert(_Py_IsImmortal(res));
965
+ return 1;
966
+ }
967
Py_DECREF(res);
- return (res == &_PyInstrumentation_DISABLE);
968
+ return 0;
969
970
971
static const int8_t MOST_SIGNIFICANT_BITS[16] = {
0 commit comments