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
Avoid all compiler optimization on embedded apphost hash
We assume that there is a single copy of the apphost hash in the apphost
binary. And that it hasn't been modified by the compiler. However, the
compiler can optimize the hash multiple ways, including re-ordering
elements of the hash or duplicating the contents of the hash. This can
currently happen under certain compiler versions and optimization flags.
Try and avoid that by marking the hash as a volatile string and
implementing comparisons/copying/initialization that respects that.
Fixes: dotnet#109611
0 commit comments