Page MenuHomeFreeBSD

malloc: make malloc_large closer to standalone
ClosedPublic

Authored by mjg on Nov 12 2020, 9:11 PM.
Tags
None
Referenced Files
F103474354: D27198.diff
Mon, Nov 25, 12:13 PM
Unknown Object (File)
Fri, Nov 22, 8:05 AM
Unknown Object (File)
Fri, Nov 22, 8:05 AM
Unknown Object (File)
Fri, Nov 22, 8:05 AM
Unknown Object (File)
Fri, Nov 22, 8:05 AM
Unknown Object (File)
Fri, Nov 22, 7:45 AM
Unknown Object (File)
Thu, Oct 31, 7:37 AM
Unknown Object (File)
Oct 20 2024, 3:16 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

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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

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.