Thread overview | |||||
---|---|---|---|---|---|
|
June 03, 2014 asserts and release | ||||
---|---|---|---|---|
| ||||
Are asserts supposed to be evaluated in DMD release? I was getting a "privileged instructions error 0xC0000096" which was caused by an assert, when doing some gc programming in druntime |
June 03, 2014 Re: asserts and release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Etienne | On Tuesday, 3 June 2014 at 19:21:08 UTC, Etienne wrote:
> Are asserts supposed to be evaluated in DMD release? I was getting a "privileged instructions error 0xC0000096" which was caused by an assert, when doing some gc programming in druntime
Is this part of the runtime precompiled? If not the compiler switches you've used should be effective.
|
June 03, 2014 Re: asserts and release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Etienne | Etienne:
> Are asserts supposed to be evaluated in DMD release? I was getting a "privileged instructions error 0xC0000096" which was caused by an assert, when doing some gc programming in druntime
assert(0) are not removed in release builds. They are a HALT.
Bye,
bearophile
|
Copyright © 1999-2021 by the D Language Foundation