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
Unknown Object (File)
Fri, Jan 17, 7:03 AM
Unknown Object (File)
Tue, Jan 14, 9:34 PM
Unknown Object (File)
Mon, Jan 13, 12:42 AM
Unknown Object (File)
Thu, Jan 9, 3:54 AM
Unknown Object (File)
Dec 17 2024, 4:20 PM
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