[Bug 210093] Redundant sq initialization in kern/subr_sleepqueue

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210093

Konstantin Belousov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Konstantin Belousov <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.