to KASSERT || !KASSERT
widawsky at gmail.com
Thu Feb 18 18:24:51 UTC 2010
I'm trying to decide whether or not to leave invariants turned on for
a production system. The target system will be an embedded device
where performance is already at a premium. I would have a mechanism to
remotely obtain panic information after an assertion failed.
I'm primarily interested in performance implications (has anyone done
any benchmarks?), and are invariants worth the cost?
Opinions on whether or not invariants should ever be left in
production code are also welcome.
More information about the freebsd-questions