tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sys/malloc.h



On Tue, Jul 02, 2019 at 07:18:31AM -0700, Jason Thorpe wrote:
> There is a lot of code still using the old names, but using #define is the wrong way to provide it.
> 
> I would suggest changing it to a static inline __unused function instead.
> 
> -- thorpej
> Sent from my iPhone.
> 
> > On Jul 2, 2019, at 5:03 AM, coypu%sdf.org@localhost wrote:
> > 
> > This was confusing for a bit, but apparently is due to sys/malloc.h:
> > 
> > #define    free(addr, type)        kern_free(addr)
> > 
> > This feels like a recipe for subtle bugs.
> > What's our plan for this code?
> 

I run into serious issues with needing to provide the malloc types from
this.


Home | Main Index | Thread Index | Old Index