Page MenuHomeFreeBSD

malloc: make malloc_large closer to standalone
ClosedPublic

Authored by mjg on Nov 12 2020, 9:11 PM.
Tags
None
Referenced Files
F103216724: D27198.id79616.diff
Fri, Nov 22, 8:05 AM
F103216723: D27198.id.diff
Fri, Nov 22, 8:05 AM
F103216718: D27198.id79575.diff
Fri, Nov 22, 8:05 AM
F103216705: D27198.id79483.diff
Fri, Nov 22, 8:05 AM
F103215359: D27198.diff
Fri, Nov 22, 7:45 AM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 34768

Event Timeline

mjg requested review of this revision.Nov 12 2020, 9:12 PM
markj added inline comments.
sys/kern/kern_malloc.c
590

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.