Roland Mainz wrote: > Hi! > > ---- > > Is there any document which describes the rules what kind of debug > behaviour is allowed for OS/Net DEBUG builds ? For example: > - Is it allowed to call |assert()| in DEBUG builds, even if this means > that vital components (e.g. /usr/bin/sh or SMF) of a system will fail in
The Kernel is covered in ASSERT calls in DEBUG builds and there is nothing more critical than that since if those asserts in kernel trip the result is a panic. It is understood that a DEBUG kernel is slower than a non DEBUG one since there is a lot more code running and by default a lot more kmem checking. What I believe tends to be frowned on though is spewing out lots of additional "tracing" type stuff to stdout/stderr or log files; but I'm not aware of any policy on that I can point you to. -- Darren J Moffat
