Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Commitb24c916
authored
The GC keeps track of the number of allocations (less deallocations)since the last GC. This buffers the count in thread-local state and usesatomic operations to modify the per-interpreter count. The thread-localbuffering avoids contention on shared state.A consequence is that the GC scheduling is not as precise, so"test_sneaky_frame_object" is skipped because it requires that the GC berun exactly after allocating a frame object.
1 parentf92857a commitb24c916
File tree
7 files changed
+71
-16
lines changed- Include/internal
- Lib/test
- Modules
- Objects
- Python
7 files changed
+71
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
263 | 270 | | |
264 | 271 | | |
265 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
204 | 214 | | |
205 | 215 | | |
206 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1835 | 1835 | | |
1836 | 1836 | | |
1837 | 1837 | | |
| 1838 | + | |
| 1839 | + | |
1838 | 1840 | | |
1839 | 1841 | | |
1840 | 1842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
959 | 964 | | |
960 | 965 | | |
961 | 966 | | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
962 | 1002 | | |
963 | 1003 | | |
964 | 1004 | | |
| |||
981 | 1021 | | |
982 | 1022 | | |
983 | 1023 | | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
984 | 1027 | | |
985 | 1028 | | |
986 | 1029 | | |
| |||
1090 | 1133 | | |
1091 | 1134 | | |
1092 | 1135 | | |
1093 | | - | |
1094 | 1136 | | |
1095 | 1137 | | |
1096 | 1138 | | |
| |||
1530 | 1572 | | |
1531 | 1573 | | |
1532 | 1574 | | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
| 1575 | + | |
1542 | 1576 | | |
1543 | 1577 | | |
1544 | 1578 | | |
| |||
1564 | 1598 | | |
1565 | 1599 | | |
1566 | 1600 | | |
1567 | | - | |
| 1601 | + | |
1568 | 1602 | | |
1569 | 1603 | | |
1570 | 1604 | | |
| |||
1646 | 1680 | | |
1647 | 1681 | | |
1648 | 1682 | | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
1653 | 1686 | | |
1654 | 1687 | | |
1655 | 1688 | | |
| |||
0 commit comments
Comments
(0)