mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-27 02:51:06 +00:00
887fface56
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.