summaryrefslogtreecommitdiffstats
path: root/xpcom/glue/nsTArray-inl.h
Commit message (Collapse)AuthorAgeLines
* [xpcom] Don't use realloc for shrinking nsTArrays when allowRealloc is false.Moonchild2020-11-19-5/+21
| | | | | | | | | The original patch handled the grow case but not the shrink case. When the current and new allocation sizes are in different size classes, jemalloc's realloc will move the allocation when shrinking, not just truncate the existing one. Based on work by Jon Coppeard.
* Add overflow checks for extending nsTArrays.wolfbeast2018-11-02-10/+22
| | | | | | Surprisingly, this was previously not done. Also, some of this code seems to be incorrect or, at the very least, wasn't clear what it was trying to do.
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+463