uma_zalloc() not checking flags

2003-07-18 Thread Harti Brandt
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

Re: uma_zalloc() not checking flags

2003-07-18 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Harti Brandt write s: 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