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

Fix on-demand initialization race conditions [sgen].

Extracted from https://github.com/mono/mono/pull/18150 which reviewer said was too big.

Commit migrated from https://github.com/mono/mono/commit/9cefdf59adc59b085ff8cf187fabb17aa9a40737
src/mono/mono/metadata/sgen-toggleref.c