Page MenuHomeFreeBSD

include: add a userland version of __assert_unreachable
ClosedPublic

Authored by kevans on Dec 14 2024, 5:26 AM.
Tags
None
Referenced Files
F112474893: D48077.diff
Tue, Mar 18, 1:01 PM
Unknown Object (File)
Mon, Mar 17, 2:07 PM
Unknown Object (File)
Thu, Mar 6, 7:52 AM
Unknown Object (File)
Thu, Feb 27, 8:51 AM
Unknown Object (File)
Jan 30 2025, 5:34 AM
Unknown Object (File)
Jan 28 2025, 11:29 PM
Unknown Object (File)
Jan 27 2025, 1:41 PM
Unknown Object (File)
Jan 17 2025, 7:03 AM
Subscribers

Details

Summary

The kernel has had a version of this since
c79cee71363d ("kernel: provide panicky version of unreachable"), and
userland can benefit from the same.
unreachable is largely
inadequate because it's *not* an assertion of any sort, so we're not
really alerted to a problem that we could've anticipated.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevans created this revision.
This revision is now accepted and ready to land.Dec 14 2024, 5:32 AM