uma_zalloc() not checking flags

Harti Brandt brandt at fokus.fraunhofer.de
Fri Jul 18 04:29:48 PDT 2003


Given that uma_zalloc() has the same flags as malloc(9) shouldn't it check
these flags like malloc(9) does? I would think we could copy the #ifdef
INVARIANTS section at the beginning of malloc(9) to uma_zalloc_arg().

I just found a large number of calls in the ATM code that have just
M_ZERO or even 0 flags.

Anything against this check?
harti
--
harti brandt,
http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private
brandt at fokus.fraunhofer.de, harti at freebsd.org


More information about the freebsd-hackers mailing list