platform/upstream/coreclr.git
6 years agoFix release build
Carol Eidt [Thu, 22 Mar 2018 00:17:44 +0000 (17:17 -0700)]
Fix release build

6 years agoRemove REG_OPT_RSVD from LSRA's candidate masks if it's reserved.
Carol Eidt [Wed, 21 Mar 2018 22:13:17 +0000 (15:13 -0700)]
Remove REG_OPT_RSVD from LSRA's candidate masks if it's reserved.

6 years agoARM: call compRsvdRegCheck later
Carol Eidt [Tue, 20 Mar 2018 19:19:18 +0000 (12:19 -0700)]
ARM: call compRsvdRegCheck later

For RyuJIT backend, the number of locals can change due to decomposition and lowering.
So, determine whether to reserve a register for accessing large state displacements just prior to register allocation.
This requires ensuring that the stack offset for promoted longs is fixed up, as for promoted reg structs on ARM64.
This is all a bit more difficult on LEGACY_BACKEND because the register allocator can change its mind about whether or not it's going to have a frame, so that is left as before.

6 years agoFix test for GC.GetAllocatedBytesForCurrentThread to be more lenient with the accurac...
Sung Yoon Whang [Fri, 16 Mar 2018 18:56:24 +0000 (11:56 -0700)]
Fix test for GC.GetAllocatedBytesForCurrentThread to be more lenient with the accuracy (#16976)

6 years agoAvoid allocating _IOCompletionCallback when flow is suppressed (#16984)
Stephen Toub [Fri, 16 Mar 2018 18:10:36 +0000 (14:10 -0400)]
Avoid allocating _IOCompletionCallback when flow is suppressed (#16984)

This delegate was showing up in a sockets allocation trace, even though execution flow is suppressed while creating the associated PreAllocatedOverlapped.

6 years agoChange csharp_indent_labels from flush_left to one_less_than_current (#16983)
Ahson Khan [Fri, 16 Mar 2018 18:06:01 +0000 (11:06 -0700)]
Change csharp_indent_labels from flush_left to one_less_than_current (#16983)

6 years agoUpdate CoreClr, CoreFx to preview2-26316-03, preview2-26316-03, respectively (#16988)
dotnet-maestro-bot [Fri, 16 Mar 2018 16:41:33 +0000 (11:41 -0500)]
Update CoreClr, CoreFx to preview2-26316-03, preview2-26316-03, respectively (#16988)

6 years agoJIT: fix return type mismatch inline block for literal argument (#16966)
Andy Ayers [Fri, 16 Mar 2018 15:07:30 +0000 (08:07 -0700)]
JIT: fix return type mismatch inline block for literal argument (#16966)

When we inline a method that returns one of its arguments, we need to make sure
to apply the callee's view of the argument type.

We fixed this for arguments that are caller locals in #11218. This change applies
similar logic to handle the case where the caller passes a literal constant.

Closes #16944.

6 years agoRemove tests from main pipeline.json (#16975)
Matt Mitchell [Fri, 16 Mar 2018 15:04:23 +0000 (08:04 -0700)]
Remove tests from main pipeline.json (#16975)

* Remove tests from main pipeline.json
Tests are now broken out into a separate json file, which means prodcon builds avoid waiting on tests.

6 years agoFix comment in IgnoreCase CompareInfo handling.
Viktor Hofer [Fri, 16 Mar 2018 14:18:16 +0000 (15:18 +0100)]
Fix comment in IgnoreCase CompareInfo handling.

6 years agoUse managed marvin hashing for IgnoreCase comparison (#16945)
Viktor Hofer [Fri, 16 Mar 2018 14:04:50 +0000 (15:04 +0100)]
Use managed marvin hashing for IgnoreCase comparison (#16945)

* Use managed marvin hashing for IgnoreCase comparison

* Return rented buffer & reduce string allocation

* Move Marvin to shared partition & PR feedback

* Marvin input slicing & ToUpper optimization

* Use ToUpperInvariant instead of ToUpper

* Use ToUpperInvariant in favor of the whole manual optimization logic

* Fix typo

* Use ToUpperInvariant length for slicing

6 years agoImplement AVX/AVX2 InsertVector128 and ExtractVector128 intrinsic
Fei Peng [Fri, 16 Mar 2018 07:44:47 +0000 (00:44 -0700)]
Implement AVX/AVX2 InsertVector128 and ExtractVector128 intrinsic

6 years agoImplement AVX Insert/Extract helper-intrinsics in managed code
Fei Peng [Wed, 14 Mar 2018 00:02:14 +0000 (17:02 -0700)]
Implement AVX Insert/Extract helper-intrinsics in managed code

6 years agoAdd tests for AVX Insert/Extract helper-intrinsics
Fei Peng [Wed, 14 Mar 2018 00:01:59 +0000 (17:01 -0700)]
Add tests for AVX Insert/Extract helper-intrinsics

6 years agoAdd tests for AVX Insert/ExtractVector128
Fei Peng [Tue, 13 Mar 2018 05:24:40 +0000 (22:24 -0700)]
Add tests for AVX Insert/ExtractVector128

6 years agoAdd tests and templates for AVX2 Insert/Extract
Fei Peng [Tue, 13 Mar 2018 00:20:42 +0000 (17:20 -0700)]
Add tests and templates for AVX2 Insert/Extract

6 years agoAdd AllReady scenario to JitBench (#16905)
Adam Sitnik [Fri, 16 Mar 2018 12:25:08 +0000 (13:25 +0100)]
Add AllReady scenario to JitBench (#16905)

* reuse MusicStoreBenchmark for AllReady scenario

* bug fix, should set JITBENCH_FRAMEWORK_VERSION, not JITBENCH_TARGET_FRAMEWORK_VERSION

* include informations from AllReady.dll

* temp: point to my fork before the https://github.com/aspnet/JitBench/pull/85 gets merged

* clone the repo and get the submodule, downloading .zip is not enough when working with GIT submodules

* fail benchmark when git command fails

* point to the updated aspnet/JitBench repo, not my fork

6 years ago[Arm64/Ubuntu] Enable official builds (#16981)
Steve MacLean [Fri, 16 Mar 2018 09:51:29 +0000 (05:51 -0400)]
[Arm64/Ubuntu] Enable official builds (#16981)

6 years agoUpdate CoreClr, CoreFx to preview2-26315-05, preview2-26316-01, respectively (#16970)
dotnet-maestro-bot [Fri, 16 Mar 2018 03:33:36 +0000 (22:33 -0500)]
Update CoreClr, CoreFx to preview2-26315-05, preview2-26316-01, respectively (#16970)

6 years agoConvert Sse2 tests to template driven version - part 1
Jacek Blaszczynski [Wed, 14 Mar 2018 22:06:32 +0000 (23:06 +0100)]
Convert Sse2 tests to template driven version - part 1

6 years agoPort SequentialEqual() optimizations to ReadOnlySpan overloads (#28073)
Atsushi Kanamori [Thu, 15 Mar 2018 13:54:58 +0000 (06:54 -0700)]
Port SequentialEqual() optimizations to ReadOnlySpan overloads (#28073)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
6 years agoMerge pull request #16858 from echesakovMSFT/FixGenerateEventLogCrossArchBuildFailure
Egor Chesakov [Thu, 15 Mar 2018 20:54:42 +0000 (13:54 -0700)]
Merge pull request #16858 from echesakovMSFT/FixGenerateEventLogCrossArchBuildFailure

Fix etmdummy.h file not found during Linux/arm crosscomponent build

6 years agoMerge pull request #16969 from jcagme/master
JC Aguilera [Thu, 15 Mar 2018 20:36:15 +0000 (13:36 -0700)]
Merge pull request #16969 from jcagme/master

Replace Agent.HomeDirectory with AgentToolsPath

6 years agoRemove AgentToolsPath
Juan Carlos Aguilera Mendez [Thu, 15 Mar 2018 20:15:30 +0000 (13:15 -0700)]
Remove AgentToolsPath

6 years agoReplace AgentToolsPath
Juan Carlos Aguilera Mendez [Thu, 15 Mar 2018 19:10:18 +0000 (12:10 -0700)]
Replace AgentToolsPath

6 years agoFix error type check in InternalSetThreadPriority (#16959)
Jan Vorlicek [Thu, 15 Mar 2018 18:57:01 +0000 (19:57 +0100)]
Fix error type check in InternalSetThreadPriority (#16959)

The pthread_setschedparam returns error code as a return value and not
in the errno as the existing code supposes. I have found it when a test
in the lab has failed to set the priority and asserted in this code, but
reported errno as 0.

Also fix the flaky DuplicateHandle test7 that was failing rarely due to the
fact that the secondary thread it has created didn't wait until the main thread
finished fiddling with the priority of that thread.

6 years agoUpdate CoreClr, CoreFx to preview2-26315-02, preview2-26315-01, respectively (#16949)
dotnet-maestro-bot [Thu, 15 Mar 2018 18:15:07 +0000 (13:15 -0500)]
Update CoreClr, CoreFx to preview2-26315-02, preview2-26315-01, respectively (#16949)

6 years agoFix etmdummy.h file not found during cross crossarchitecture build
Egor Chesakov [Fri, 9 Mar 2018 18:17:54 +0000 (10:17 -0800)]
Fix etmdummy.h file not found during cross crossarchitecture build

6 years agoFix to not reuse preallocated jump stubs for dynamic methods (#16941)
Koundinya Veluri [Thu, 15 Mar 2018 17:05:42 +0000 (10:05 -0700)]
Fix to not reuse preallocated jump stubs for dynamic methods (#16941)

Fix to not reuse preallocated jump stubs for dynamic methods

Fixes https://github.com/dotnet/coreclr/issues/16940
- Allocate an extra jump stub per temporary entry points chunk that is shared by all precodes in the chunk. This jump stub always points to PrecodeFixupThunk.
- Use that for PrecodeFixupThunk, and use the precode-associated jump stub for pointing to the jitted code
- Considered allocating the extra jump stub only if coreclr is far away, but it involves reallocation which may be common in some environments/scenarios. Figured 12 extra bytes per dynamic type is not too significant.

6 years agoMerge pull request #16813 from CarolEidt/FixDD544983
Carol Eidt [Thu, 15 Mar 2018 15:14:09 +0000 (08:14 -0700)]
Merge pull request #16813 from CarolEidt/FixDD544983

Mark operands of dead FIELD_LIST as unused

6 years ago[Arm64] Fix EmitShuffleThunk reg allocation (#16947)
Steve MacLean [Thu, 15 Mar 2018 09:39:41 +0000 (05:39 -0400)]
[Arm64] Fix EmitShuffleThunk reg allocation (#16947)

6 years agoMerge pull request #16928 from briansull/fix-16892
Brian Sullivan [Thu, 15 Mar 2018 06:57:40 +0000 (23:57 -0700)]
Merge pull request #16928 from briansull/fix-16892

Fix GH Issue 16892 - GC hole due to GT_INDEX_ADDR

6 years agoFix GetTempPath (#16921)
Jeremy Kuhne [Thu, 15 Mar 2018 05:16:00 +0000 (22:16 -0700)]
Fix GetTempPath (#16921)

* Fix GetTempPath

GetTempPath and GetTempFileName weren't updated to handle long paths.
Update to use API properly and stop using StringBuilder. Also tweak
Normalize to allow utilizing an existing Span as input.

* Assert for null, fix ProjectN wrap

* Address more feedback

* One more tweak

* Tweak Normalize to be usable in CoreFX

* Change another span Equals

* Split AsSpan() to avoid risk of losing inlining

6 years agoAdd EventSource TraceLogging Support for EventPipe (#16861)
Brian Robbins [Thu, 15 Mar 2018 02:18:38 +0000 (19:18 -0700)]
Add EventSource TraceLogging Support for EventPipe (#16861)

6 years agoMerge pull request #16794 from echesakovMSFT/DisableFeatureNIBindFallbackByDefault
Egor Chesakov [Thu, 15 Mar 2018 00:43:35 +0000 (17:43 -0700)]
Merge pull request #16794 from echesakovMSFT/DisableFeatureNIBindFallbackByDefault

Disable FEATURE_NI_BIND_FALLBACK by default for all platforms

6 years agoInclude Linux/cross-arch components into NuGet packages (#16859)
Egor Chesakov [Wed, 14 Mar 2018 23:46:44 +0000 (16:46 -0700)]
Include Linux/cross-arch components into NuGet packages (#16859)

* Add __DoCrossArchBuild settings to config.json
* HasCrossTargetComponents computes to 'true' on Linux when __DoCrossArchBuild is 1 in dir.props
* Include cross-architecture libclrjit.so crossgen into NuGet props files when HasCrossTargetComponents is 'true'
* Pass $__DoCrossArchBuild to run.sh when generating NuGet packages in build.sh

6 years agoMerge pull request #16895 from echesakovMSFT/DoNotFragileNGenSystemPrivateCoreLibARM
Egor Chesakov [Wed, 14 Mar 2018 23:45:51 +0000 (16:45 -0700)]
Merge pull request #16895 from echesakovMSFT/DoNotFragileNGenSystemPrivateCoreLibARM

[ARM] Disable fragile NGen when compiling S.P.C.dll for _TARGET_ARM_

6 years agoMark operands of dead FIELD_LIST as unused
Carol Eidt [Wed, 7 Mar 2018 19:12:13 +0000 (11:12 -0800)]
Mark operands of dead FIELD_LIST as unused

This requires fixing the side-effects check in dead code elimination.
Also, fixes gtSetFlags() to be usable from DCE in the non-legacy case.

6 years agoMerge pull request #16909 from jcagme/master
JC Aguilera [Wed, 14 Mar 2018 23:35:29 +0000 (16:35 -0700)]
Merge pull request #16909 from jcagme/master

Use task extensions on SCEP ops

6 years agoMerge branch 'master' of https://github.com/dotnet/coreclr
Juan Carlos Aguilera Mendez [Wed, 14 Mar 2018 23:34:00 +0000 (16:34 -0700)]
Merge branch 'master' of https://github.com/dotnet/coreclr

6 years agoMerge pull request #16923 from brianrob/eventlistener_activityid
Vance Morrison [Wed, 14 Mar 2018 22:23:15 +0000 (15:23 -0700)]
Merge pull request #16923 from brianrob/eventlistener_activityid

Plumb the Activity ID Through to EventListener

6 years agoFix GH Issue 16892 - GC hole due to GT_INDEX_ADDR
Brian Sullivan [Wed, 14 Mar 2018 00:16:44 +0000 (17:16 -0700)]
Fix GH Issue 16892 - GC hole due to GT_INDEX_ADDR
Added test case

6 years agoAdd TaskCanceledException ctor that takes CancellationToken (#16939)
Stephen Toub [Wed, 14 Mar 2018 22:03:35 +0000 (18:03 -0400)]
Add TaskCanceledException ctor that takes CancellationToken (#16939)

To help with maintaining compatibility when implementing types like SocketsHttpHandler, this ctor allows for constructing a TaskCanceledException with the same inputs as an OperationCanceledException.

6 years agoMerge pull request #16832 from dotnetrt/StoreNonTemporal
Carol Eidt [Wed, 14 Mar 2018 21:56:50 +0000 (14:56 -0700)]
Merge pull request #16832 from dotnetrt/StoreNonTemporal

 Implement SSE2 StoreNonTemporal HW intrinsic - complete SSE2 ISA

6 years agoUse $(Agent.HomeDirectory)
Juan Carlos Aguilera Mendez [Wed, 14 Mar 2018 21:42:40 +0000 (14:42 -0700)]
Use $(Agent.HomeDirectory)

6 years agoDIfferent Directory Separator for linux (#16936)
Anirudh Agnihotry [Wed, 14 Mar 2018 21:33:35 +0000 (14:33 -0700)]
DIfferent Directory Separator for linux (#16936)

6 years agoNo need of arguments
Juan Carlos Aguilera Mendez [Wed, 14 Mar 2018 19:10:28 +0000 (12:10 -0700)]
No need of arguments

6 years agoChange after Begin/End approach
Juan Carlos Aguilera Mendez [Wed, 14 Mar 2018 19:08:34 +0000 (12:08 -0700)]
Change after Begin/End approach

6 years agoTurn sizeondisk tests back on (#16937)
Michelle McDaniel [Wed, 14 Mar 2018 18:38:24 +0000 (11:38 -0700)]
Turn sizeondisk tests back on (#16937)

6 years agoUpdate CoreClr to preview2-26314-04 (#16927)
dotnet-maestro-bot [Wed, 14 Mar 2018 17:14:37 +0000 (12:14 -0500)]
Update CoreClr to preview2-26314-04 (#16927)

6 years agoMerge pull request #16797 from dotnetrt/SetAllVector128_Managed
Carol Eidt [Wed, 14 Mar 2018 17:08:31 +0000 (10:08 -0700)]
Merge pull request #16797 from dotnetrt/SetAllVector128_Managed

Managed implementation of SetAllVector128 SSE2 helper HW intrinsic

6 years agoMerge pull request #16853 from dotnetrt/CnvertScInt64
Carol Eidt [Wed, 14 Mar 2018 16:47:27 +0000 (09:47 -0700)]
Merge pull request #16853 from dotnetrt/CnvertScInt64

Fix ConvertScalarToVector128(U)Int64 codegen and improve tests

6 years agoRemove call to GenerateLayoutOnly for throughput runs (#16919)
Michelle McDaniel [Wed, 14 Mar 2018 16:26:20 +0000 (09:26 -0700)]
Remove call to GenerateLayoutOnly for throughput runs (#16919)

6 years agoMark GenericContext test as incompatible with GCStress (#16918)
Andon Andonov [Wed, 14 Mar 2018 10:37:05 +0000 (03:37 -0700)]
Mark GenericContext test as incompatible with GCStress (#16918)

6 years agoConvert implementation of SetAllVector128 SSE HW intrinsic to managed
Jacek Blaszczynski [Wed, 7 Mar 2018 15:58:28 +0000 (16:58 +0100)]
Convert implementation of SetAllVector128 SSE HW intrinsic to managed

6 years agoAdd SSE2 SetAllVector128 helper HW intrinsic tests
Jacek Blaszczynski [Wed, 7 Mar 2018 14:49:25 +0000 (15:49 +0100)]
Add SSE2 SetAllVector128 helper HW intrinsic tests

6 years agoManaged implementation of SSE2 SetAllVector128 helper HW intrinsic
Jacek Blaszczynski [Wed, 7 Mar 2018 14:48:24 +0000 (15:48 +0100)]
Managed implementation of SSE2 SetAllVector128 helper HW intrinsic

6 years agoFix GetHashCode with invariant mode
Tarek Mahmoud Sayed [Tue, 13 Mar 2018 23:44:31 +0000 (16:44 -0700)]
Fix GetHashCode with invariant mode

6 years agoMerge pull request #16907 from dotnet-maestro-bot/master-UpdateDependencies
Wes Haggard [Wed, 14 Mar 2018 00:09:52 +0000 (17:09 -0700)]
Merge pull request #16907 from dotnet-maestro-bot/master-UpdateDependencies

Update CoreFx to preview2-26313-03 (master)

6 years agoRevert "Revert "Fix handling of incorrect assemblies on Unix (#16747)" (#16790)"...
Jan Kotas [Wed, 14 Mar 2018 00:00:50 +0000 (17:00 -0700)]
Revert "Revert "Fix handling of incorrect assemblies on Unix (#16747)" (#16790)" (#16917)

This reverts commit 47bef69b68a35eafa069d08187727684a5f47901.

6 years agoPlumb the activity ID through to EventListener.
Brian Robbins [Tue, 13 Mar 2018 23:18:59 +0000 (16:18 -0700)]
Plumb the activity ID through to EventListener.

6 years agoAdd SSE2 StoreNonTemporal HW intrinsic tests
Jacek Blaszczynski [Thu, 8 Mar 2018 07:28:06 +0000 (08:28 +0100)]
Add SSE2 StoreNonTemporal HW intrinsic tests

6 years agoImplement SSE2 StoreNonTemporal HW intrinsic - complete SSE2 ISA
Jacek Blaszczynski [Thu, 8 Mar 2018 07:27:10 +0000 (08:27 +0100)]
Implement SSE2 StoreNonTemporal HW intrinsic - complete SSE2 ISA

6 years agoMerge pull request #16872 from fiigii/avxpermute
Carol Eidt [Tue, 13 Mar 2018 20:25:08 +0000 (13:25 -0700)]
Merge pull request #16872 from fiigii/avxpermute

Implement AVX Shuffle and Permute intrinsics

6 years agochange bool to bool (#16914)
David Mason [Tue, 13 Mar 2018 19:40:30 +0000 (12:40 -0700)]
change bool to bool (#16914)

6 years agoFix shuffling thunk for Unix AMD64 (#16904)
Jan Vorlicek [Tue, 13 Mar 2018 18:56:34 +0000 (19:56 +0100)]
Fix shuffling thunk for Unix AMD64 (#16904)

The shufflign thunk was generated incorrectly for some edge cases when
a struct was passed in a register or a pair of registers in the
destination, but on stack in the source.
This change implements a new algorithm that ensures that argument slots
are never overwritten before their current value is moved out.

It also adds an extensive regression test that checks various
interesting combinations of arguments that were causing issues before.

6 years agoMerge pull request #16888 from jashook/up_jit_stress_timeout
Bruce Forstall [Tue, 13 Mar 2018 18:42:04 +0000 (11:42 -0700)]
Merge pull request #16888 from jashook/up_jit_stress_timeout

Up the jit stress timeout to 5 hours

6 years agoUnblock official builds (#16913)
Matt Mitchell [Tue, 13 Mar 2018 17:45:45 +0000 (10:45 -0700)]
Unblock official builds (#16913)

Removing arm64 linux cross build for now

6 years agoMerge pull request #16390 from sdmaclea/PR-16176
Carol Eidt [Tue, 13 Mar 2018 17:13:31 +0000 (10:13 -0700)]
Merge pull request #16390 from sdmaclea/PR-16176

[Arm64] Mark removed compare zero nodes unused

6 years agoMerge pull request #16822 from sdmaclea/PR-ARM64-BASE-INTRINSICS
Carol Eidt [Tue, 13 Mar 2018 17:02:45 +0000 (10:02 -0700)]
Merge pull request #16822 from sdmaclea/PR-ARM64-BASE-INTRINSICS

[Arm64] Base HW Intrinsics

6 years agoAdding missing ScepToolsPath variable
Juan Carlos Aguilera Mendez [Tue, 13 Mar 2018 16:31:15 +0000 (09:31 -0700)]
Adding missing ScepToolsPath variable

6 years agoUse task extensions on SCEP ops
Juan Carlos Aguilera Mendez [Tue, 13 Mar 2018 15:52:55 +0000 (08:52 -0700)]
Use task extensions on SCEP ops

6 years agoUpdate CoreFx to preview2-26313-03
dotnet-maestro-bot [Tue, 13 Mar 2018 14:08:20 +0000 (07:08 -0700)]
Update CoreFx to preview2-26313-03

6 years ago[local gc] refactor apis for threading and suspension to avoid redundant calls in...
David Mason [Tue, 13 Mar 2018 08:24:20 +0000 (01:24 -0700)]
[local gc] refactor apis for threading and suspension to avoid redundant calls in to the runtime (#16765)

* [Local GC] Refactor calls involving thread modes, suspension, and alloc contexts to always operate on current thread

* BOOL -> bool for enable/disable preemptive routines, also remove an unused call to GetThread

* avoid one indirection by having GCToEEInterface::EnablePreemptiveGC return a bool indicating whether the mode was changed

* Callback on IGCHeap for the runtime to notify the GC when it is trapping threads

* use g_fSuspensionPending instead of GCToEEInterface::CatchAtSafePoint for allow_fgc

* Remove CatchAtSafePoint

* Remove GetThread from WaitLongerNoInstru

* code review feedback

* code review feedback

* change BOOL to bool

6 years agoUpdate BuildTools, CoreFx to preview2-02612-03, preview2-26313-01, respectively ...
dotnet-maestro-bot [Tue, 13 Mar 2018 05:07:57 +0000 (00:07 -0500)]
Update BuildTools, CoreFx to preview2-02612-03, preview2-26313-01, respectively (#16902)

6 years agoImplement AVX Shuffle and Permute intrinsics
Fei [Tue, 13 Mar 2018 02:56:51 +0000 (18:56 -0800)]
Implement AVX Shuffle and Permute intrinsics

6 years agoFix short path expansion (#16901)
Jeremy Kuhne [Tue, 13 Mar 2018 00:38:26 +0000 (17:38 -0700)]
Fix short path expansion (#16901)

Also make methods internal so I can add better unit tests.

6 years agoMissing Case In Remove Relative Segments (#16869)
Anirudh Agnihotry [Mon, 12 Mar 2018 23:47:47 +0000 (16:47 -0700)]
Missing Case In Remove Relative Segments (#16869)

6 years agoUse a cached canceled task in ValueTask (dotnet/corefx#27967)
Stephen Toub [Mon, 12 Mar 2018 19:25:17 +0000 (15:25 -0400)]
Use a cached canceled task in ValueTask (dotnet/corefx#27967)

When an IValueTaskSource reports it completed due to cancellation by the time we AsTask it, we can use a cached canceled task if a) this is the netstandard build, or b) this is the netcoreapp build and it reported cancellation but threw an exception other than a cancellation exception.  We cache the non-generic one in a readonly static, since there's only one of them, but lazily cache the generic one.

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
6 years agoMerge pull request #16884 from mikedn/lclvar-dead
Carol Eidt [Mon, 12 Mar 2018 21:51:32 +0000 (14:51 -0700)]
Merge pull request #16884 from mikedn/lclvar-dead

Remove unused LclVarDsc members

6 years agoUpdate BuildTools, CoreClr, CoreFx to preview2-02612-02, preview2-26310-01, preview2...
dotnet-maestro-bot [Mon, 12 Mar 2018 17:51:36 +0000 (10:51 -0700)]
Update BuildTools, CoreClr, CoreFx to preview2-02612-02, preview2-26310-01, preview2-26312-02, respectively

6 years ago[Arm64/Ubuntu] Update docker tag to include binutils (#16896)
Steve MacLean [Mon, 12 Mar 2018 19:42:23 +0000 (15:42 -0400)]
[Arm64/Ubuntu] Update docker tag to include binutils (#16896)

6 years agoRun ILLInk on System.Private.CoreLib.dll to remove dead code. (#16876)
Eugene Rozenfeld [Mon, 12 Mar 2018 19:39:02 +0000 (12:39 -0700)]
Run ILLInk on System.Private.CoreLib.dll to remove dead code. (#16876)

We already run ILLInk on corefx assemblies to remove dead code;
this change enables that for System.Private.CoreLib.dll.

The new ILLink.targets file is similar to the one in corefx.

All runtime dependencies were already computed and rooted in an xml file that
was embedded in System.Private.CoreLib.dll. This change adds ILLinkTrim.xml
with a few manual roots. They are also included in the embedded xml.

The dead code found by ILLink that could be removed from sources was already
removed in https://github.com/dotnet/coreclr/pull/16759 The remaining code removed by ILLink
falls into 4 categories:
1. Inlined constants.
2. Private default constructors when there are no other instance constructors.
3. System.Number+DoubleHelper.Sign that needs to stay in the sources for corert mirror.
4. EventListener._EventSourceCreated event methods (the even field is retained).

ILLink also clears initlocals on all methods so I removed the workaround
we had in jitinterface.cpp.

6 years ago[Arm64] Mark removed compare zero nodes unused
Steve MacLean [Wed, 14 Feb 2018 17:27:03 +0000 (12:27 -0500)]
[Arm64] Mark removed compare zero nodes unused

6 years agoOptimize MemoryExtensions SequenceEqual for more T's (dotnet/corefx#27859)
Atsushi Kanamori [Mon, 12 Mar 2018 16:57:10 +0000 (09:57 -0700)]
Optimize MemoryExtensions SequenceEqual for more T's (dotnet/corefx#27859)

* Optimize MemoryExtensions SequenceEqual for more T's

https://github.com/dotnet/corefx/issues/27487

* Add testcoverage for SequenceEqual<long>

* Remove #if BIT64 dependency for netstandard

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
6 years agoMerge pull request #16709 from sdmaclea/PR-ARM64-Bootstrapping
Wes Haggard [Mon, 12 Mar 2018 17:11:25 +0000 (10:11 -0700)]
Merge pull request #16709 from sdmaclea/PR-ARM64-Bootstrapping

Revise init-tools.sh to support bootstrapping

6 years agoDisable fragile NGen when compiling SPC.dll for _TARGET_ARM_
Egor Chesakov [Fri, 9 Feb 2018 00:34:27 +0000 (16:34 -0800)]
Disable fragile NGen when compiling SPC.dll for _TARGET_ARM_

6 years agoMerge pull request #16877 from CarolEidt/Fix16578
Carol Eidt [Mon, 12 Mar 2018 16:02:44 +0000 (09:02 -0700)]
Merge pull request #16877 from CarolEidt/Fix16578

Fix LSRA enregisterLocalVars

6 years agoMerge pull request #16879 from tannergooding/hwintrin-encode
Carol Eidt [Mon, 12 Mar 2018 15:38:20 +0000 (08:38 -0700)]
Merge pull request #16879 from tannergooding/hwintrin-encode

Ensure that `id->idReg2()` is properly encoded for 4-Byte SIMD instructions

6 years agoFix lldb-3.9-dev package name (#16885)
Steve MacLean [Mon, 12 Mar 2018 09:37:26 +0000 (05:37 -0400)]
Fix lldb-3.9-dev package name (#16885)

6 years agoUp the jit stress timeout to 5 hours
jashook [Sun, 11 Mar 2018 04:04:38 +0000 (20:04 -0800)]
Up the jit stress timeout to 5 hours

Current jitx86hwintrinsicnoavx job runs around 4 hours. Which will cause timeouts if over.

6 years agoRemove unused LclVarDsc members
Mike Danes [Sat, 10 Mar 2018 18:47:19 +0000 (20:47 +0200)]
Remove unused LclVarDsc members

6 years agoSet IsGeneratingNgenPDB flag early (#16882)
Jan Kotas [Sun, 11 Mar 2018 02:29:42 +0000 (18:29 -0800)]
Set IsGeneratingNgenPDB flag early (#16882)

Fixes #16864

6 years agoConvert SSE SetVector128 implementation to managed
Jacek Blaszczynski [Fri, 9 Mar 2018 23:26:39 +0000 (00:26 +0100)]
Convert SSE SetVector128 implementation to managed

6 years agoAdd SSE2 SetVector128 HW intrinsic tests
Jacek Blaszczynski [Thu, 8 Mar 2018 00:41:41 +0000 (01:41 +0100)]
Add SSE2 SetVector128 HW intrinsic tests

6 years agoImplement SSE2 SetVector128 HW intrinsics - managed
Jacek Blaszczynski [Wed, 7 Mar 2018 22:58:43 +0000 (23:58 +0100)]
Implement SSE2 SetVector128 HW intrinsics - managed

6 years ago[Arm64] Add Base HW intrinsic tests
Steve MacLean [Thu, 8 Mar 2018 00:07:51 +0000 (19:07 -0500)]
[Arm64] Add Base HW intrinsic tests

6 years agocrossgen plumbing cleanup (#16883)
Jan Kotas [Sat, 10 Mar 2018 21:35:40 +0000 (13:35 -0800)]
crossgen plumbing cleanup (#16883)

* Delete unused ForceFullTrust command line option for crossgen

* Delete ALLOW_LOCAL_WORKER define

* Delete Zapper::m_legacyMode

* Delete ngenparser.inl

6 years agoAdding tests for the Extend, GetLowerHalf, and StaticCast intrinsics
Tanner Gooding [Tue, 6 Mar 2018 00:00:35 +0000 (16:00 -0800)]
Adding tests for the Extend, GetLowerHalf, and StaticCast intrinsics

6 years agoAdding support for the Extend, GetLowerHalf, and StaticCast AVX intrinsics
Tanner Gooding [Mon, 5 Mar 2018 23:11:30 +0000 (15:11 -0800)]
Adding support for the Extend, GetLowerHalf, and StaticCast AVX intrinsics