Date: Thu, 29 Sep 2005 13:51:32 GMT From: Rob Deker <deker@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 84484 for review Message-ID: <200509291351.j8TDpW5W026185@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=84484 Change 84484 by deker@deker_ibook.columbia.sparta.com on 2005/09/29 13:51:29 Re-insert some seemingly lost Apple assertion code that modifies the implementation of io_free(). Affected files ... .. //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/ipc/ipc_object.h#5 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/ipc/ipc_object.h#5 (text+ko) ==== @@ -146,6 +146,7 @@ #define io_alloc(otype) \ ((ipc_object_t) zalloc(ipc_object_zones[(otype)])) +#if MACH_ASSERT /* * Call the routine for io_free so that checking can be performed. */ @@ -153,6 +154,11 @@ unsigned int otype, ipc_object_t object); +#else /* MACH_ASSERT */ +#define io_free(otype, io) \ + zfree(ipc_object_zones[(otype)], (vm_offset_t) (io)) +#endif /* MACH_ASSERT */ + /* * Here we depend on the ipc_object being first within the ipc_common_data, * which is first within the rpc_common_data, which in turn must be first
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509291351.j8TDpW5W026185>