[x86/linux] Fix "Undefined Reference" error in CLR release build. (dotnet/coreclr...
authorragmani <ragmani0216@gmail.com>
Tue, 7 Mar 2017 22:28:58 +0000 (07:28 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Tue, 7 Mar 2017 22:28:58 +0000 (23:28 +0100)
Replace "IncCantStopCount()" and "DecCantStopCount()" functions with
nothing(#define IncCantStopCount()) to call in methods of UTSemReadWrite
on x86/Linux.

Commit migrated from https://github.com/dotnet/coreclr/commit/47487b06044e7defc5ba66e096bb207eced03d9a

src/coreclr/src/utilcode/utsem.cpp

index 087a3ae..4a76bbd 100644 (file)
@@ -22,10 +22,10 @@ Revision History:
 #include "contract.h"
 
 // Consider replacing this with a #ifdef INTEROP_DEBUGGING
-#if !defined(SELF_NO_HOST) && defined(_TARGET_X86_)
+#if !defined(SELF_NO_HOST) && defined(_TARGET_X86_) && !defined(FEATURE_PAL)
 // For Interop debugging, the UTSemReadWrite class must inform the debugger
 // that this thread can't be suspended currently.  See vm\util.hpp for the
-// implementation of these methods.  
+// implementation of these methods.
 void IncCantStopCount();
 void DecCantStopCount();
 #else