Commit b16b4e4
authored
* Add PyMemAllocatorName enum
* _PyPreConfig.allocator type becomes PyMemAllocatorName, instead of
char*
* Remove _PyPreConfig_Clear()
* Add _PyMem_GetAllocatorName()
* Rename _PyMem_GetAllocatorsName() to
_PyMem_GetCurrentAllocatorName()
* Remove _PyPreConfig_SetAllocator(): just call
_PyMem_SetupAllocators() directly, we don't have do reallocate the
configuration with the new allocator anymore!
* _PyPreConfig_Write() parameter becomes const, as it should be in
the first place!
1 parent 80ed353 commit b16b4e4Copy full SHA for b16b4e4
File tree
Expand file treeCollapse file tree
12 files changed
+119
-112
lines changedOpen diff view settings
Filter options
- Include
- cpython
- internal
- Lib/test
- Modules
- Objects
- Programs
- Python
Expand file treeCollapse file tree
12 files changed
+119
-112
lines changedOpen diff view settings
Collapse file
Include/cpython/coreconfig.h
Copy file name to clipboardExpand all lines: Include/cpython/coreconfig.h+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
120 | 120 | |
121 | 121 | |
122 | 122 | |
123 | | - |
| 123 | + |
| 124 | + |
| 125 | + |
124 | 126 | |
125 | 127 | |
126 | 128 | |
| ||
137 | 139 | |
138 | 140 | |
139 | 141 | |
140 | | - |
| 142 | + |
141 | 143 | |
142 | 144 | |
143 | 145 | |
|
Collapse file
+14-5Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | 14 | |
19 | | - |
| 15 | + |
20 | 16 | |
21 | 17 | |
22 | 18 | |
| ||
41 | 37 | |
42 | 38 | |
43 | 39 | |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
44 | 53 | |
45 | 54 | |
46 | 55 | |
|
Collapse file
Include/internal/pycore_coreconfig.h
Copy file name to clipboardExpand all lines: Include/internal/pycore_coreconfig.h+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
88 | 88 | |
89 | 89 | |
90 | 90 | |
91 | | - |
92 | 91 | |
93 | 92 | |
94 | 93 | |
95 | 94 | |
96 | 95 | |
97 | 96 | |
98 | 97 | |
99 | | - |
| 98 | + |
100 | 99 | |
101 | 100 | |
102 | 101 | |
|
Collapse file
Include/internal/pycore_pymem.h
Copy file name to clipboardExpand all lines: Include/internal/pycore_pymem.h+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
179 | 179 | |
180 | 180 | |
181 | 181 | |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
182 | 191 | |
183 | 192 | |
184 | 193 | |
|
Collapse file
+9-6Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
| 17 | + |
| 18 | + |
16 | 19 | |
17 | 20 | |
18 | 21 | |
| ||
272 | 275 | |
273 | 276 | |
274 | 277 | |
275 | | - |
| 278 | + |
276 | 279 | |
277 | 280 | |
278 | 281 | |
| ||
564 | 567 | |
565 | 568 | |
566 | 569 | |
567 | | - |
| 570 | + |
568 | 571 | |
569 | 572 | |
570 | 573 | |
| ||
608 | 611 | |
609 | 612 | |
610 | 613 | |
611 | | - |
| 614 | + |
612 | 615 | |
613 | 616 | |
614 | 617 | |
| ||
633 | 636 | |
634 | 637 | |
635 | 638 | |
636 | | - |
| 639 | + |
637 | 640 | |
638 | 641 | |
639 | 642 | |
640 | 643 | |
641 | 644 | |
642 | 645 | |
643 | 646 | |
644 | | - |
| 647 | + |
645 | 648 | |
646 | 649 | |
647 | 650 | |
648 | 651 | |
649 | 652 | |
650 | 653 | |
651 | 654 | |
652 | | - |
| 655 | + |
653 | 656 | |
654 | 657 | |
655 | 658 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4297 | 4297 | |
4298 | 4298 | |
4299 | 4299 | |
4300 | | - |
| 4300 | + |
4301 | 4301 | |
4302 | 4302 | |
4303 | 4303 | |
|
Collapse file
+59-14Lines changed: 59 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
268 | 268 | |
269 | 269 | |
270 | 270 | |
271 | | - |
| 271 | + |
272 | 272 | |
273 | | - |
| 273 | + |
274 | 274 | |
275 | | - |
276 | | - |
| 275 | + |
| 276 | + |
277 | 277 | |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
278 | 305 | |
279 | | - |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | + |
| 312 | + |
| 313 | + |
| 314 | + |
280 | 315 | |
281 | 316 | |
282 | 317 | |
283 | | - |
284 | | - |
| 318 | + |
| 319 | + |
| 320 | + |
285 | 321 | |
286 | 322 | |
287 | 323 | |
288 | | - |
| 324 | + |
| 325 | + |
289 | 326 | |
290 | | - |
| 327 | + |
| 328 | + |
| 329 | + |
291 | 330 | |
292 | 331 | |
293 | 332 | |
294 | 333 | |
295 | 334 | |
296 | 335 | |
297 | 336 | |
298 | | - |
| 337 | + |
299 | 338 | |
300 | 339 | |
| 340 | + |
301 | 341 | |
302 | 342 | |
303 | | - |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
304 | 347 | |
305 | 348 | |
306 | 349 | |
307 | 350 | |
308 | 351 | |
309 | | - |
| 352 | + |
310 | 353 | |
311 | 354 | |
| 355 | + |
312 | 356 | |
313 | | - |
| 357 | + |
| 358 | + |
314 | 359 | |
315 | 360 | |
316 | 361 | |
| ||
326 | 371 | |
327 | 372 | |
328 | 373 | |
329 | | - |
| 374 | + |
330 | 375 | |
331 | 376 | |
332 | 377 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
379 | 379 | |
380 | 380 | |
381 | 381 | |
382 | | - |
| 382 | + |
383 | 383 | |
384 | 384 | |
385 | 385 | |
|
Collapse file
+4-8Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2021 | 2021 | |
2022 | 2022 | |
2023 | 2023 | |
2024 | | - |
| 2024 | + |
2025 | 2025 | |
2026 | 2026 | |
2027 | 2027 | |
2028 | 2028 | |
2029 | 2029 | |
2030 | 2030 | |
2031 | | - |
| 2031 | + |
2032 | 2032 | |
2033 | 2033 | |
2034 | 2034 | |
2035 | 2035 | |
2036 | | - |
| 2036 | + |
2037 | 2037 | |
2038 | 2038 | |
2039 | | - |
2040 | | - |
2041 | | - |
2042 | | - |
2043 | | - |
| 2039 | + |
2044 | 2040 | |
2045 | 2041 | |
2046 | 2042 | |
|
0 commit comments