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().
This commit is contained in:
Brian Behlendorf 2009-07-30 13:52:11 -07:00
parent 6ae7fef5b9
commit c65d62d8bf
1 changed files with 9 additions and 1 deletions

View File

@ -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) \