Fix on-demand initialization race conditions [marshal-ilgen.c] (mono/mono#18160)
authorJay Krell <jaykrell@microsoft.com>
Fri, 13 Dec 2019 16:29:30 +0000 (08:29 -0800)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 13 Dec 2019 16:29:30 +0000 (17:29 +0100)
commit1ac0edf2873814fa34eab81a5c0e32ffd4166c89
tree9d1f523f48d348d0c3489b3665507b1c2612733d
parent41ce288ebd8494288a231e5c435958a10d32b2b1
Fix on-demand initialization race conditions [marshal-ilgen.c] (mono/mono#18160)

* Fix on-demand initialization race conditions [marshal-ilgen.c]

* PR: Feedback more MONO_STATIC_POINTER_INIT instead of manual mono_atomic_store_seq.

* PR feedback: Narrow scope of from_oadate.

* One more MONO_STATIC_POINTER_INIT vs. mono_atomic_store_seq post-review.

* Repair whitespace.

* Alternate formating.

Commit migrated from https://github.com/mono/mono/commit/b637c1db670c0d7355ae4f43f2e4ea1d0b162434
src/mono/mono/metadata/marshal-ilgen.c