PERFORCE change 84484 for review
Rob Deker
deker at FreeBSD.org
Thu Sep 29 13:51:32 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=84484
Change 84484 by deker at 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
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list