Page MenuHomeFreeBSD

malloc: retire malloc_last_fail
ClosedPublic

Authored by mjg on Nov 9 2020, 12:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 20, 1:24 AM
Unknown Object (File)
Apr 11 2026, 9:23 PM
Unknown Object (File)
Apr 2 2026, 7:57 AM
Unknown Object (File)
Apr 1 2026, 4:29 PM
Unknown Object (File)
Mar 28 2026, 6:08 AM
Unknown Object (File)
Mar 25 2026, 5:54 AM
Unknown Object (File)
Mar 25 2026, 3:00 AM
Unknown Object (File)
Mar 22 2026, 7:50 AM
Subscribers

Details

Summary

The primitive is not very useful as most consumers call malloc with M_WAITOK and plenty of memory comes from zones anyway, finally it only reports a timestamp.

The only consumer is GBDE which phk promised to take care of, this will wait with landing until it happens.

This eliminates a branch and is a minor step towards fast path.

Diff Detail

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