This is slightly more optimized than checking panicstr directly. For
most of these instances performance doesn't matter, but let's make
KERNEL_PANICKED() the common idiom.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 45798 Build 42686: arc lint + arc unit
Event Timeline
sys/kern/subr_msan.c | ||
---|---|---|
181 | the latter is a part of a bigger statement i would argue the KERNEL_PANICKED || kdb_active thing should also be short-circuited into one macro which performs one branch |
sys/kern/subr_asan.c | ||
---|---|---|
390 | It is not obvious from this review, but KERNEL_PANICKED() expands to __predict_false(panicked). |
sys/kern/subr_asan.c | ||
---|---|---|
390 | Yea, I was wondering about the difference treatment... Though I misread the parens in at least one place. |