[TSan] Yet another idea about whitelisting data races (#5310)
authorArmin Hasitzka <cherusker@users.noreply.github.com>
Thu, 10 Aug 2017 14:16:02 +0000 (16:16 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Thu, 10 Aug 2017 14:16:02 +0000 (16:16 +0200)
commitbc843021962c29afaee306a430c7e3c01c84677b
tree849c6f2cf61d1087b0b5c14b5eabb06276e0539e
parenta46c58788023c80fe43bd63ce413c84ae95d2ea5
[TSan] Yet another idea about whitelisting data races (#5310)

* Introduce racing.h
- introduce the `RacingIncrement* ()` functions
- test the `RacingIncrement* ()` functions with races of `mono_stats` in class.c
- add racing.h to Makefile.am, libmonoutils.vcxproj and msvc/libmonoutils.vcxproj.filters

* [fixup!] Rename "racing" to "unlocked"
- rename racing.h to unlocked.h
- update new file name in Makefile.am and *.vcxproj* files
- rename the functions from Racing* to Unlocked*
- update the macro logic
mono/metadata/class-internals.h
mono/metadata/class.c
mono/utils/Makefile.am
mono/utils/mono-compiler.h
mono/utils/unlocked.h [new file with mode: 0644]
msvc/libmonoutils.vcxproj
msvc/libmonoutils.vcxproj.filters