Fix on-demand initialization race conditions [reflection.c]. (mono/mono#18167)
authorJay Krell <jaykrell@microsoft.com>
Thu, 12 Dec 2019 23:45:36 +0000 (15:45 -0800)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 12 Dec 2019 23:45:36 +0000 (00:45 +0100)
commit2c81a2f11819e1f4c116fe167ec4909f539717da
treec6ee1c8f3315b6818732dab5eaa7bae93a8d75dc
parentad675a6ebcc6246c76d2a78a740f95397c7762f2
Fix on-demand initialization race conditions [reflection.c]. (mono/mono#18167)

Fix on-demand initialization race conditions [reflection.c].

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

Commit migrated from https://github.com/mono/mono/commit/1fe3d7eda6e7eaacd3b742823c97b04a13c37720
src/mono/mono/metadata/reflection.c