Commit 8f2ffe1
committed
gh-102304: Fix Py_INCREF() stable ABI in debug mode
When Python is built in debug mode (if the Py_REF_DEBUG macro is
defined), the Py_INCREF() and Py_DECREF() function are now always
implemented as opaque functions to avoid leaking implementation
details like the "_Py_RefTotal" variable.
Remove _Py_IncRefTotal_DO_NOT_USE_THIS() and
_Py_DecRefTotal_DO_NOT_USE_THIS() from the stable ABI.1 parent 85e5d03 commit 8f2ffe1
2 files changed
+5
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
| 589 | + | |
594 | 590 | | |
595 | 591 | | |
596 | 592 | | |
| |||
616 | 612 | | |
617 | 613 | | |
618 | 614 | | |
619 | | - | |
620 | | - | |
| 615 | + | |
| 616 | + | |
621 | 617 | | |
622 | 618 | | |
623 | 619 | | |
| |||
647 | 643 | | |
648 | 644 | | |
649 | 645 | | |
650 | | - | |
651 | | - | |
| 646 | + | |
| 647 | + | |
652 | 648 | | |
653 | 649 | | |
654 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2409 | 2409 | | |
2410 | 2410 | | |
2411 | 2411 | | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
2418 | | - | |
2419 | | - | |
2420 | | - | |
0 commit comments