INVARIANTS (was Re: RELENG_4 -> 5 -> 6: significant performance regression)

Ulrich Spoerlein uspoerlein at gmail.com
Sun May 14 11:54:03 PDT 2006


Matthew D. Fuller wrote:
> On Sat, May 13, 2006 at 11:58:26AM -0400 I heard the voice of
> Kris Kennaway, and lo! it spake thus:
> > 
> > FYI, INVARIANTS adds checks but does not (is not supposed to) divert
> > code paths.
> 
> It does at least in UMA; it does a lot of bzero()/NULL'ing out of
> memory, which might hide later uninitialized-use bugs that could bite
> you without it

Shouldn't it write something like 0xdeadc0de or 0x0d0d0d0d to memory
-- like user-land memory debugging tools do -- to catch read-before-write
bugs?

Ulrich Spoerlein
-- 
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060514/f6b7be54/attachment.pgp


More information about the freebsd-stable mailing list