From: Jonghyun Park Date: Wed, 29 Mar 2017 17:25:15 +0000 (+0900) Subject: [x86/Linux] Use Portable ArrayInitializeWorker (dotnet/coreclr#10550) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c37c2faf49387f120acac397edd8443a528c87d3;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [x86/Linux] Use Portable ArrayInitializeWorker (dotnet/coreclr#10550) Commit migrated from https://github.com/dotnet/coreclr/commit/4cd34ab9504fae49506ccaea61b2dbba03710a40 --- diff --git a/src/coreclr/src/classlibnative/bcltype/arraynative.cpp b/src/coreclr/src/classlibnative/bcltype/arraynative.cpp index 53a3654..c54d2f3 100644 --- a/src/coreclr/src/classlibnative/bcltype/arraynative.cpp +++ b/src/coreclr/src/classlibnative/bcltype/arraynative.cpp @@ -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 }