You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a previous PR, the type invariant for `Error` is enforced using
a runtime check. This is non-zero cost.
However we may decide to trust the return value of certain kernel C
functions. In such cases, no runtime check is required to enforce the
type invariant. So we can return to zero-cost.
This patch removes invariant checks from kernel C functions that
return a positive value on success, or a non-zero errno on failure.
Signed-off-by: Sven Van Asbroeck <[email protected]>
0 commit comments