[mini] Expand clr-memory-model effect (#17093)
commit194506d495a2e2b7b2fad5dbb655f404cecb2c04
authorVlad Brezae <brezaevlad@gmail.com>
Fri, 27 Sep 2019 09:36:04 +0000 (27 12:36 +0300)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2019 09:36:04 +0000 (27 12:36 +0300)
treea59085636e0f7b7730eb5a06dc4d8861e405b30e
parentba093a07b7ea220baddc280942247b828ba0c5d1
[mini] Expand clr-memory-model effect (#17093)

* [mini] Add memory barriers to more stores inside objects

We should now have membars for all stores of an object ref inside another object (for the stores done by the jit). Used by clr-memory-model debug option.

* [mini] Add memory barrier for storing objref in static fields

For clr-memory-model debug option.
mono/mini/intrinsics.c
mono/mini/memory-access.c
mono/mini/method-to-ir.c