Commit 6f0d611
committed
gh-117755: Fix mimalloc for huge allocation on s390x
Fix mimalloc allocator for huge memory allocation (around
8,589,934,592 GiB) on s390x.
* Abort allocation early in mimalloc if the number of slices doesn't
fit into uint32_t, to prevent a integer overflow (cast 64-bit
size_t to uint32_t).
* Add test_large_alloc() to test_bigaddrspace (test skipped on 32-bit
platforms).
* Reenable test_maxcontext_exact_arith() of test_decimal on s390x.
* Reenable test_constructor() tests of test_io on s390x.1 parent a9107fe commit 6f0d611
File tree
5 files changed
+70
-16
lines changed- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Objects/mimalloc
5 files changed
+70
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
17 | 33 | | |
18 | 34 | | |
19 | 35 | | |
| |||
52 | 68 | | |
53 | 69 | | |
54 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
55 | 115 | | |
56 | 116 | | |
57 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
5651 | 5650 | | |
5652 | 5651 | | |
5653 | 5652 | | |
5654 | | - | |
5655 | | - | |
5656 | | - | |
5657 | 5653 | | |
5658 | 5654 | | |
5659 | 5655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
1701 | 1700 | | |
1702 | 1701 | | |
1703 | 1702 | | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | 1703 | | |
1708 | 1704 | | |
1709 | 1705 | | |
| |||
2072 | 2068 | | |
2073 | 2069 | | |
2074 | 2070 | | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
2078 | 2071 | | |
2079 | 2072 | | |
2080 | 2073 | | |
| |||
2597 | 2590 | | |
2598 | 2591 | | |
2599 | 2592 | | |
2600 | | - | |
2601 | | - | |
2602 | | - | |
2603 | 2593 | | |
2604 | 2594 | | |
2605 | 2595 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
| |||
865 | 868 | | |
866 | 869 | | |
867 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
868 | 874 | | |
869 | 875 | | |
870 | 876 | | |
| |||
0 commit comments