[Bug 210093] Redundant sq initialization in kern/subr_sleepqueue

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 13 15:53:33 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210093

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib at FreeBSD.org

--- Comment #2 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Bulat from comment #1)
Earlier assignment is performed only under invariants, i.e. in the debugging
kernel.  Later one is for the normal control flow.

So yes, for the invariants-enabled kernel the second assignment is excessive,
but there is no point of optimizing for INVARIANTS, which performs lot of
algorithmically unneeded work to make more robust checks.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-threads mailing list