diff options
author | Moonchild <moonchild@palemoon.org> | 2020-11-19 17:48:59 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-11-19 17:48:59 +0000 |
commit | 887fface569f29650e51369cfc2bb3fd23d3f101 (patch) | |
tree | 6a0f22f87779a791947df585db1bb884bf00d365 /mozglue/linker | |
parent | 4782e8dfa2a5863f84c66f405c48eb2b99ac3622 (diff) | |
download | uxp-887fface569f29650e51369cfc2bb3fd23d3f101.tar.gz |
[xpcom] Don't use realloc for shrinking nsTArrays when allowRealloc is false.
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.
Diffstat (limited to 'mozglue/linker')
0 files changed, 0 insertions, 0 deletions