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)
Fri, Nov 28, 2:06 AM
Unknown Object (File)
Wed, Nov 26, 4:34 AM
Unknown Object (File)
Tue, Nov 25, 6:56 PM
Unknown Object (File)
Sun, Nov 23, 11:44 AM
Unknown Object (File)
Fri, Nov 21, 8:42 AM
Unknown Object (File)
Nov 18 2025, 1:06 PM
Unknown Object (File)
Nov 9 2025, 10:20 PM
Unknown Object (File)
Nov 3 2025, 12:41 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