[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looks like jit does not respect the System.IgnoreOverflow flag when generating code


Le 14/10/2025 à 01:10, Brian G a écrit :
When making a function fast, the jit compiler does not respect the ignore overflow  flag.

Is this deliberate or is there some other way to do this when making a functions fast


It cannot, because 'System.Overflow' is dynamic, whereas the JIT compilation is static.

Only the 'UNSAFE' keyword tells the JIT compiler not to do overflow checks.

Regards,

--
Benoît Minisini.