Open
Description
-
There are at least 3 asserts that are always true, because of a forgotten
!
before the message, when fixed they fail on some tests, see Fix asserts that were always true due to a missed neg. #44095, PTAL @tannergooding. -
PORTABILITY_ASSERT(message)
(108 usages) are quite confusing because they don't check a condition and fail always. They could be replaced byunreached
orunimplemented
methods, also this block looks pretty outdated:
runtime/src/coreclr/src/inc/palclr.h
Lines 103 to 111 in df8e3f6
are not other platforms finished now?
PTAL @BruceForstall, @davidwrighton, you had a similar discussion about IMPL_LIMIT recently, do you have preferences about assert/unimplemented/unreached usages? -
There are 6 usages of
ASSERT(!"message")
and 360 usages ofASSERT("message")
with different defines, probably replace both with better debug onlyunreached("message")
?
cc @dotnet/jit-contrib