[x86/Linux] Port 'ThrowControlForThread' (dotnet/coreclr#11641)
authorJonghyun Park <parjong@gmail.com>
Mon, 12 Jun 2017 15:40:24 +0000 (00:40 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 12 Jun 2017 15:40:24 +0000 (17:40 +0200)
Commit migrated from https://github.com/dotnet/coreclr/commit/b386a62a3b191d01723fa9a5c65fa4914dcb4854

src/coreclr/src/vm/i386/unixstubs.cpp
src/coreclr/src/vm/threadsuspend.cpp

index a9b1094..2a7b3af 100644 (file)
@@ -6,11 +6,6 @@
 
 extern "C"
 {
-    void ThrowControlForThread(FaultingExceptionFrame *pfef)
-    {
-        PORTABILITY_ASSERT("Implement for PAL");
-    }
-
     void ProfileEnterNaked(FunctionIDOrClientID functionIDOrClientID)    
     {
         PORTABILITY_ASSERT("Implement for PAL");
index 36eb9f3..c04b0dc 100644 (file)
@@ -5339,6 +5339,7 @@ int RedirectedThrowControlExceptionFilter(
     return (EXCEPTION_CONTINUE_EXECUTION);
 }
 #endif
+#endif // !FEATURE_PAL
 
 // Resume a thread at this location, to persuade it to throw a ThreadStop.  The
 // exception handler needs a reasonable idea of how large this method is, so don't
@@ -5413,7 +5414,6 @@ ThrowControlForThread(
     // Here we raise an exception.
     RaiseComPlusException();
 }
-#endif // !FEATURE_PAL
 
 #if defined(FEATURE_HIJACK) && !defined(PLATFORM_UNIX)
 // This function is called by UserAbort and StopEEAndUnwindThreads.