[x86/Linux] Use Portable ArrayInitializeWorker (dotnet/coreclr#10550)
authorJonghyun Park <parjong@gmail.com>
Wed, 29 Mar 2017 17:25:15 +0000 (02:25 +0900)
committerJan Kotas <jkotas@microsoft.com>
Wed, 29 Mar 2017 17:25:15 +0000 (10:25 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/4cd34ab9504fae49506ccaea61b2dbba03710a40

src/coreclr/src/classlibnative/bcltype/arraynative.cpp

index 53a3654..c54d2f3 100644 (file)
@@ -175,7 +175,7 @@ void ArrayInitializeWorker(ARRAYBASEREF * arrayRef,
 
     PCODE ctorFtn = pCanonMT->GetSlot(slot);
 
-#ifdef _X86_
+#if defined(_TARGET_X86_) && !defined(FEATURE_PAL)
     BEGIN_CALL_TO_MANAGED();
 
 
@@ -206,7 +206,7 @@ void ArrayInitializeWorker(ARRAYBASEREF * arrayRef,
     }
 
     END_CALL_TO_MANAGED();
-#else // _X86_
+#else // _TARGET_X86_ && !FEATURE_PAL
     //
     // This is quite a bit slower, but it is portable.
     //
@@ -230,7 +230,7 @@ void ArrayInitializeWorker(ARRAYBASEREF * arrayRef,
 
         offset += size;
     }
-#endif // _X86_
+#endif // !_TARGET_X86_ || FEATURE_PAL
 }