# \`GlobalAlloc::dealloc\` is too restrictive, provide additional method with weaker requirements

**URL:** <https://internals.rust-lang.org/t/globalalloc-dealloc-is-too-restrictive-provide-additional-method-with-weaker-requirements/22620>\
**Category:** libs\
**Created:** [March 22, 2025, 5:03am UTC](https://internals.rust-lang.org/t/globalalloc-dealloc-is-too-restrictive-provide-additional-method-with-weaker-requirements/22620 "2025-03-22T05:03:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jrose](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/jrose/32/9591_2.png) [@jrose](https://internals.rust-lang.org/u/jrose)\
**Post date:** [March 22, 2025, 5:32am UTC](https://internals.rust-lang.org/t/globalalloc-dealloc-is-too-restrictive-provide-additional-method-with-weaker-requirements/22620/2 "2025-03-22T05:32:30Z")

</div>

Yes, asking for overaligned memory often results in a different allocation strategy than for normally-aligned memory, which the deallocator would need to know. Some deallocators can figure that out after the fact, others take advantage of not having to do so.

…hypothetically. I have no citations to show you at the moment.

---

_[View the full topic](https://internals.rust-lang.org/t/globalalloc-dealloc-is-too-restrictive-provide-additional-method-with-weaker-requirements/22620)._
