|
100 | 100 |
|
101 | 101 | If you don't like either of these options, you can define |
102 | 102 | CORRUPTION_ERROR_ACTION and USAGE_ERROR_ACTION to do anything |
103 | | - else. And if if you are sure that your program using malloc has |
| 103 | + else. And if you are sure that your program using malloc has |
104 | 104 | no errors or vulnerabilities, you can define INSECURE to 1, |
105 | 105 | which might (or might not) provide a small performance improvement. |
106 | 106 |
|
@@ -2279,12 +2279,12 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
2279 | 2279 | of the same size are arranged in a circularly-linked list, with only |
2280 | 2280 | the oldest chunk (the next to be used, in our FIFO ordering) |
2281 | 2281 | actually in the tree. (Tree members are distinguished by a non-null |
2282 | | - parent pointer.) If a chunk with the same size an an existing node |
| 2282 | + parent pointer.) If a chunk with the same size as an existing node |
2283 | 2283 | is inserted, it is linked off the existing node using pointers that |
2284 | 2284 | work in the same way as fd/bk pointers of small chunks. |
2285 | 2285 |
|
2286 | 2286 | Each tree contains a power of 2 sized range of chunk sizes (the |
2287 | | - smallest is 0x100 <= x < 0x180), which is is divided in half at each |
| 2287 | + smallest is 0x100 <= x < 0x180), which is divided in half at each |
2288 | 2288 | tree level, with the chunks in the smaller half of the range (0x100 |
2289 | 2289 | <= x < 0x140 for the top nose) in the left subtree and the larger |
2290 | 2290 | half (0x140 <= x < 0x180) in the right subtree. This is, of course, |
@@ -3943,7 +3943,7 @@ static void* sys_alloc(mstate m, size_t nb) { |
3943 | 3943 | least-preferred order): |
3944 | 3944 | 1. A call to MORECORE that can normally contiguously extend memory. |
3945 | 3945 | (disabled if not MORECORE_CONTIGUOUS or not HAVE_MORECORE or |
3946 | | - or main space is mmapped or a previous contiguous call failed) |
| 3946 | + main space is mmapped or a previous contiguous call failed) |
3947 | 3947 | 2. A call to MMAP new space (disabled if not HAVE_MMAP). |
3948 | 3948 | Note that under the default settings, if MORECORE is unable to |
3949 | 3949 | fulfill a request, and HAVE_MMAP is true, then mmap is |
@@ -5748,5 +5748,3 @@ int mspace_mallopt(int param_number, int value) { |
5748 | 5748 | structure of old version, but most details differ.) |
5749 | 5749 |
|
5750 | 5750 | */ |
5751 | | - |
5752 | | - |
0 commit comments