Re: syscall renaming

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Fri Dec 11 1998 - 20:40:25 EST


Godmar Back writes:
> I'm almost done with malloc, if you want to do the rest that would be great.

OK, I'll wait for your checkin.

One thing though :-)

I was going to replace instaces of malloc() and free() in the code
with KMALLOC() and KFREE(), which were simply macros:

#define KMALLOC(x) jmalloc
#define KFREE(p) jfree
#define KCALLOC(a,b) jmalloc((a)*(b))

The reason is because we may want to do this:

#ifdef DEBUG

#undef KFREE
#define KFREE(p) do { jfree(p); (p) = (void*)0; } while (0)

#endif

This helps find bogus references through pointers that have been free'd.

-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:12 EDT