Page MenuHomeFreeBSD

Only clear TDP_NERRNO when needed
ClosedPublic

Authored by trasz on Sep 30 2020, 7:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 6:30 AM
Unknown Object (File)
Jan 7 2024, 10:15 AM
Unknown Object (File)
Dec 20 2023, 7:18 AM
Unknown Object (File)
Nov 16 2023, 9:30 AM
Unknown Object (File)
Oct 8 2023, 11:19 PM
Unknown Object (File)
Sep 7 2023, 9:23 AM
Unknown Object (File)
Sep 7 2023, 9:22 AM
Unknown Object (File)
Sep 1 2023, 9:26 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.