Commit 42d3e11
committed
code: make code object use deferred reference counting
Code objects are frequently accessed by many threads, so enable deferred
reference counting so that in the future we can skip ref count
operations on code objects during frame evaluation. This requires making
PyCode_Type support GC.1 parent 357a207 commit 42d3e11
3 files changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
553 | | - | |
| 554 | + | |
554 | 555 | | |
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
559 | 560 | | |
| 561 | + | |
| 562 | + | |
560 | 563 | | |
561 | 564 | | |
562 | 565 | | |
| |||
1668 | 1671 | | |
1669 | 1672 | | |
1670 | 1673 | | |
| 1674 | + | |
1671 | 1675 | | |
1672 | 1676 | | |
1673 | 1677 | | |
| |||
1705 | 1709 | | |
1706 | 1710 | | |
1707 | 1711 | | |
1708 | | - | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
1709 | 1720 | | |
1710 | 1721 | | |
1711 | 1722 | | |
| |||
2114 | 2125 | | |
2115 | 2126 | | |
2116 | 2127 | | |
2117 | | - | |
| 2128 | + | |
2118 | 2129 | | |
2119 | | - | |
| 2130 | + | |
2120 | 2131 | | |
2121 | 2132 | | |
2122 | 2133 | | |
| |||
0 commit comments