Differences From Artifact [13d8064ed3]:
- File src/OFMutableDictionary_hashtable.m — part of check-in [ce70e17b38] at 2012-01-05 00:56:18 on branch trunk — Update copyright. (user: js, size: 7178) [annotate] [blame] [check-ins using]
To Artifact [959d2e2496]:
- File
src/OFMutableDictionary_hashtable.m
— part of check-in
[f7576a66ce]
at
2012-06-06 13:47:52
on branch trunk
— Slightly change the memory management API.
Also fix a bug where OFBigDataArray would waste memory. (user: js, size: 7177) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
56 57 58 59 60 61 62 | newSize = size >> 1; else return; if (newSize == 0) @throw [OFOutOfRangeException exceptionWithClass: isa]; | | | | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | newSize = size >> 1; else return; if (newSize == 0) @throw [OFOutOfRangeException exceptionWithClass: isa]; newData = [self allocMemoryWithItemSize: sizeof(*newData) count: newSize]; for (i = 0; i < newSize; i++) newData[i] = NULL; for (i = 0; i < size; i++) { if (data[i] != NULL && data[i] != DELETED) { uint32_t j, last; |
︙ | ︙ |