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)
Tue, Jul 21, 5:59 AM
Unknown Object (File)
Tue, Jul 7, 8:54 PM
Unknown Object (File)
Mon, Jul 6, 10:47 PM
Unknown Object (File)
Jun 22 2026, 5:16 AM
Unknown Object (File)
Jun 17 2026, 4:51 AM
Unknown Object (File)
Jun 13 2026, 1:44 PM
Unknown Object (File)
Jun 13 2026, 5:37 AM
Unknown Object (File)
Jun 11 2026, 2:10 PM
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