Fix on-demand initialization race conditions [sgen]. (#18170)
commit9cefdf59adc59b085ff8cf187fabb17aa9a40737
authorJay Krell <jaykrell@microsoft.com>
Fri, 13 Dec 2019 03:55:58 +0000 (12 19:55 -0800)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 13 Dec 2019 03:55:58 +0000 (13 04:55 +0100)
treef3b3add24645ea86527d0ca2e4cc28b9162648f4
parenta93e4712ecdc3f35306c53377dbb5d22a80ae201
Fix on-demand initialization race conditions [sgen]. (#18170)

Fix on-demand initialization race conditions [sgen].

Extracted from https://github.com/mono/mono/pull/18150 which reviewer said was too big.
mono/metadata/sgen-toggleref.c