Don't assert in Interlocked.Add () icalls on 64-bit systems.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 26 Oct 2013 22:52:09 +0000 (00:52 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 26 Oct 2013 22:52:09 +0000 (00:52 +0200)
commitb37ba14801aba24bf6a58dbe12800bb9416e3ef6
tree6fea076a9add10be0d7727549c3e91aa9d22fb32
parent4b6494f0c64092cc067a9511217f01644973d4dc
Don't assert in Interlocked.Add () icalls on 64-bit systems.

The checks here were wrong in the first place; they should have
checked for MONO_ARCH_HAVE_ATOMIC_ADD rather than SIZEOF_VOID_P.
But regardless, these methods need to work when invoked via
reflection, which they wouldn't previously.
mono/metadata/threads.c