You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nothing special is currently done, so volatile on a field shows up as modreq(System.Runtime.CompilerServices.IsVolatile) on the field type.
(Reasons that it should be highly visible either way, besides the fact that it's a modreq: If you access a volatile field, the compiler emits a volatile. prefix before the stfld/ldfld instructions. It should show up in a dramatic way in your public API if the volatility changes because it's a breaking change. It's a binary behavioral breaking change because libraries compiled against an older version of your library will not use volatile. when they should, and it's a compile-time break because errors begin showing up if you take a ref to a suddenly-volatile field.)
The text was updated successfully, but these errors were encountered:
Nothing special is currently done, so
volatile
on a field shows up asmodreq(System.Runtime.CompilerServices.IsVolatile)
on the field type.(Reasons that it should be highly visible either way, besides the fact that it's a modreq: If you access a volatile field, the compiler emits a
volatile.
prefix before the stfld/ldfld instructions. It should show up in a dramatic way in your public API if the volatility changes because it's a breaking change. It's a binary behavioral breaking change because libraries compiled against an older version of your library will not usevolatile.
when they should, and it's a compile-time break because errors begin showing up if you take a ref to a suddenly-volatile field.)The text was updated successfully, but these errors were encountered: