Page MenuHomeFreeBSD

Only clear TDP_NERRNO when needed
ClosedPublic

Authored by trasz on Sep 30 2020, 7:07 PM.
Tags
None
Referenced Files
F149157112: D26612.diff
Sun, Mar 22, 3:35 PM
Unknown Object (File)
Fri, Mar 20, 6:32 AM
Unknown Object (File)
Thu, Mar 19, 5:58 AM
Unknown Object (File)
Wed, Mar 18, 6:49 AM
Unknown Object (File)
Fri, Mar 13, 8:42 AM
Unknown Object (File)
Wed, Mar 4, 5:11 PM
Unknown Object (File)
Wed, Mar 4, 5:37 AM
Unknown Object (File)
Dec 31 2025, 2:44 PM
Subscribers

Details

Summary

Only clear TDP_NERRNO when needed, ie when it's previously been set.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz requested review of this revision.Sep 30 2020, 7:07 PM
This revision is now accepted and ready to land.Sep 30 2020, 7:13 PM

this adds a branch which likely pessimizes the code

In D26612#592862, @mjg wrote:

this adds a branch which likely pessimizes the code

The branch is already there, you had to check td_pflags anyway. Not to mention that previously the branch was statically mispredicted (the common case is for (td_pflags & TDP_NERRNO) to be 0.