[x86/Linux] Remove unnecessary x86-specific part (dotnet/coreclr#9627)
authorHanjoung Lee <waterets@gmail.com>
Fri, 17 Feb 2017 11:39:26 +0000 (20:39 +0900)
committerJan Kotas <jkotas@microsoft.com>
Fri, 17 Feb 2017 11:39:25 +0000 (04:39 -0700)
This inlined assembly is no longer necessary for x86.

Commit migrated from https://github.com/dotnet/coreclr/commit/6570085031f7a03bd42cca3ffd82b00122d5e2a3

src/coreclr/src/gc/gc.cpp

index 66c8b6a..9f098fe 100644 (file)
@@ -32173,16 +32173,7 @@ static void spin_lock ()
 inline
 void EnterAllocLock()
 {
-#if defined(_TARGET_X86_)
-    __asm {
-        inc dword ptr m_GCLock
-        jz gotit
-        call spin_lock
-            gotit:
-    }
-#else //_TARGET_X86_
     spin_lock();
-#endif //_TARGET_X86_
 }
 
 inline