diff options
Diffstat (limited to 'usr/src/lib/libumem/common/envvar.c')
-rw-r--r-- | usr/src/lib/libumem/common/envvar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/lib/libumem/common/envvar.c b/usr/src/lib/libumem/common/envvar.c index 0c4d872814..6c57d9553e 100644 --- a/usr/src/lib/libumem/common/envvar.c +++ b/usr/src/lib/libumem/common/envvar.c @@ -26,6 +26,7 @@ /* * Copyright (c) 2012 Joyent, Inc. All rights reserved. + * Copyright (c) 2015 by Delphix. All rights reserved. */ #include <ctype.h> @@ -226,6 +227,10 @@ static umem_env_item_t umem_debug_items[] = { "Enables writing all logged messages to stderr", &umem_output, 2 }, + { "checknull", "Private", ITEM_FLAG, + "Abort if an allocation would return null", + &umem_flags, UMF_CHECKNULL + }, { NULL, "-- end of UMEM_DEBUG --", ITEM_INVALID } }; |