diff options
author | Brian Behlendorf <[email protected]> | 2009-07-30 13:52:11 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-30 13:52:11 -0700 |
commit | c65d62d8bfbc3e800e17a580267fa77de5d01d6b (patch) | |
tree | b6ef13f84221988c49ab4364867aff1c458161b5 /include | |
parent | 6ae7fef5b94275e50cc1dcd48c4ecf3b70d7f9d9 (diff) |
Disable stack overflow checking by default.
The run time stack overflow checking is being disabled by default
because it is not safe for use with 2.6.29 and latter kernels. These
kernels do now have their own stack overflow checking so this support
has become redundant anyway. It can be re-enabled for older kernels or
arches without stack overflow checking by redefining CHECK_STACK().
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/debug.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/sys/debug.h b/include/sys/debug.h index 8da76863c..639b4cc28 100644 --- a/include/sys/debug.h +++ b/include/sys/debug.h @@ -282,7 +282,15 @@ do { \ } \ } while (0) -#define CHECK_STACK() __CHECK_STACK(__FILE__, __func__, __LINE__) +/* NOTE: The run time stack overflow checking is being disabled by default + * because it is not safe for use with 2.6.29 and latter kernels. These + * kernels do now have their own stack overflow checking so this support + * has become redundant anyway. It can be re-enabled for older kernels or + * arches without stack overflow checking by redefining CHECK_STACK(). + * + * #define CHECK_STACK() __CHECK_STACK(__FILE__, __func__, __LINE__) + */ +#define CHECK_STACK() ((void)0) /* ASSERTION that is safe to use within the debug system */ #define __ASSERT(cond) \ |