usr/src/cmd/zfs/zfs_main.c
changeset 6865 176d18c623cc
parent 6643 3a34b0dbb107
child 6993 ccf0a8c4b9a5
--- a/usr/src/cmd/zfs/zfs_main.c	Thu Jun 12 13:25:54 2008 -0700
+++ b/usr/src/cmd/zfs/zfs_main.c	Thu Jun 12 14:37:08 2008 -0700
@@ -81,9 +81,10 @@
 static int zfs_do_unallow(int argc, char **argv);
 
 /*
- * These libumem hooks provide a reasonable set of defaults for the allocator's
- * debugging facilities.
+ * Enable a reasonable set of defaults for libumem debugging on DEBUG builds.
  */
+
+#ifdef DEBUG
 const char *
 _umem_debug_init(void)
 {
@@ -95,6 +96,7 @@
 {
 	return ("fail,contents"); /* $UMEM_LOGGING setting */
 }
+#endif
 
 typedef enum {
 	HELP_CLONE,