[interp] Remove assertions from release and add more to debug builds (#37160)
authorVlad Brezae <brezaevlad@gmail.com>
Fri, 29 May 2020 22:09:11 +0000 (01:09 +0300)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 22:09:11 +0000 (01:09 +0300)
commit7bd5ec866b1ef39199989018216f24648498f9c3
tree0455e0fed9010d093788a711b6ec9f16875898cc
parentb5d4605396e5a2efa0317f925d62e1e14a38cb15
[interp] Remove assertions from release and add more to debug builds (#37160)

* [interp] Remove some assertions from hot path

We can keep them only for debug builds, where in the future we can add more verbose assertions, like ones for stack overflows.

* [interp] Add more assertions on debug build

Most of the weird interp bugs are due to overflows in the interp stacks. Since we now test interp on CI with debug build, try to catch them early.
src/mono/mono/mini/interp/interp.c