Page MenuHomeFreeBSD

malloc: make malloc_large closer to standalone
ClosedPublic

Authored by mjg on Nov 12 2020, 9:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 31, 7:37 AM
Unknown Object (File)
Oct 20 2024, 3:16 AM
Unknown Object (File)
Oct 18 2024, 1:12 AM
Unknown Object (File)
Sep 26 2024, 9:25 PM
Unknown Object (File)
Sep 26 2024, 6:58 PM
Unknown Object (File)
Sep 24 2024, 11:36 PM
Unknown Object (File)
Sep 20 2024, 2:47 AM
Unknown Object (File)
Sep 19 2024, 2:58 PM
Subscribers

Details

Summary

This moves entire large alloc handling out of all consumers, apart from deciding to go there.

Apart from shortening malloc as it is it makes it feasible to replace the allocation code with smaller helpers to create a fast path.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mjg requested review of this revision.Nov 12 2020, 9:12 PM
markj added inline comments.
sys/kern/kern_malloc.c
590 ↗(On Diff #79483)

Below it is ifdef DEBUG_REDZONE, would be nice to make it consistent.

This revision is now accepted and ready to land.Nov 13 2020, 3:47 PM
  • fix a redzone bug. malloc_dbg can bump the size over kmem_zmax, meaning it has to happen before checking for malloc_large
This revision now requires review to proceed.Nov 16 2020, 12:34 AM
This revision is now accepted and ready to land.Nov 16 2020, 5:01 PM
This revision was automatically updated to reflect the committed changes.