]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
malloc: retire malloc_last_fail
authorMateusz Guzik <mjg@FreeBSD.org>
Thu, 12 Nov 2020 20:22:58 +0000 (20:22 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Thu, 12 Nov 2020 20:22:58 +0000 (20:22 +0000)
commit9aa6d792b54934b896e3b4a1c21a2cfaa5f88e9d
treefd849a16d0c89d8cb325d99641a18853eecdc23f
parentd5127d1ae2e13b1d91c0d7f932e7b8753c02852e
malloc: retire malloc_last_fail

The routine does not serve any practical purpose.

Memory can be allocated in many other ways and most consumers pass the
M_WAITOK flag, making malloc not fail in the first place.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D27143
sys/kern/kern_malloc.c
sys/sys/malloc.h
sys/sys/param.h