Page MenuHomeFreeBSD

malloc: retire malloc_last_fail
ClosedPublic

Authored by mjg on Nov 9 2020, 12:44 AM.
Tags
None
Referenced Files
F149105433: D27143.id79482.diff
Sun, Mar 22, 7:50 AM
F149090829: D27143.id79482.diff
Sun, Mar 22, 6:04 AM
Unknown Object (File)
Sat, Mar 21, 5:13 PM
Unknown Object (File)
Thu, Mar 5, 6:29 PM
Unknown Object (File)
Thu, Mar 5, 12:16 PM
Unknown Object (File)
Tue, Mar 3, 4:29 PM
Unknown Object (File)
Nov 28 2025, 2:06 AM
Unknown Object (File)
Nov 26 2025, 4:34 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