diff options
author | Alex Rønne Petersen <alexrp@xamarin.com> | 2013-09-25 19:06:24 +0200 |
---|---|---|
committer | Jo Shields <directhex@apebox.org> | 2013-10-23 15:05:57 +0100 |
commit | 73ec43769736026857d726ef6ea23536e0e086ee (patch) | |
tree | f994d3069cf31192c940fcaac64cb616a86af992 | |
parent | a6689809fd38bdb5fbbcf6ad0a5174ce9152617e (diff) | |
download | mono-73ec43769736026857d726ef6ea23536e0e086ee.tar.gz |
Use mono_memory_barrier () for Thread.MemoryBarrier ().
This gets rid of the rather hacky lock-based barrier.
(cherry picked from commit e601897f3f14145f9ff2d48981f87f8a0c7fef4a)
-rwxr-xr-x | mono/metadata/threads.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c index 3282a4014f..7ffb1aba9b 100755 --- a/mono/metadata/threads.c +++ b/mono/metadata/threads.c @@ -2040,8 +2040,7 @@ ves_icall_System_Threading_Interlocked_Read_Long (gint64 *location) void ves_icall_System_Threading_Thread_MemoryBarrier (void) { - mono_threads_lock (); - mono_threads_unlock (); + mono_memory_barrier (); } void |