platform/upstream/coreclr.git
6 years agoImplement SSE4.1 LoadAlignedVector128NonTemporal
Fei Peng [Thu, 15 Feb 2018 23:25:09 +0000 (15:25 -0800)]
Implement SSE4.1 LoadAlignedVector128NonTemporal

6 years agoMerge pull request #16160 from sdmaclea/PR-ARM64-SIMD-INSERT
Carol Eidt [Thu, 15 Feb 2018 15:30:29 +0000 (07:30 -0800)]
Merge pull request #16160 from sdmaclea/PR-ARM64-SIMD-INSERT

[Arm64] Implement Simd.Insert

6 years agoImplement RuntimeHelpers.PrepareMethod/PrepareDelegate for CoreCLR (#16382)
Jan Kotas [Thu, 15 Feb 2018 06:19:16 +0000 (20:19 -1000)]
Implement RuntimeHelpers.PrepareMethod/PrepareDelegate for CoreCLR (#16382)

* Implement RuntimeHelpers.PrepareMethod/PrepareDelegate for CoreCLR

CoreCLR implementation of this method triggers jiting of the given method only.
It does not walk a subset of callgraph to provide CER guarantees because of CERs
are not supported by CoreCLR.

Fixes #15522

6 years agoTypos (dotnet/corert#5386)
John Doe [Wed, 14 Feb 2018 16:08:24 +0000 (08:08 -0800)]
Typos (dotnet/corert#5386)

* acces -> access

* accesss -> access

* acknowleges -> acknowledges

* actitivy -> activity

* Additonally -> Additionally

* Activable -> Activatable

* adjustting -> adjusting

* Aggresive -> Aggressive

* agressively -> aggressively

* agressive -> aggressive

* Aleady -> Already

* alernate -> alternate

* aligh -> align

* Alloctor -> Allocator

* allready -> already

* Althought -> Although

* Amonst -> Amongst

* anthing -> anything

* Anthyhing -> Anything

* Aquired -> Acquired

* aquire -> acquire

* Architecure -> Architecture

* Arthimatic -> Arithmetic

* artiface -> artifact

* artifical -> artificial

* Arugment -> Argument

* assigining -> assigning

* atomicly -> atomically

* auxillary -> auxiliary

* avilability -> availability

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 years agoStringComparer Create(culture, CompareOptions) overload (#16334)
Anirudh Agnihotry [Thu, 15 Feb 2018 01:47:14 +0000 (17:47 -0800)]
StringComparer Create(culture, CompareOptions) overload (#16334)

* String Create options overlaod

* Minor Change

* Feedback

* validation on options

* obsolete removed

* Implementing Iserializable and removing ignorecase

* HashCode and serialization changes

* made inline

* Space Corrected

6 years agosigsegv_handler: handle case when it is called on original stack (#16276)
Konstantin Baladurin [Thu, 15 Feb 2018 01:25:32 +0000 (04:25 +0300)]
sigsegv_handler: handle case when it is called on original stack (#16276)

* CatchHardwareExceptionHolder: use GetCurrentPalThread instead of
InternalGetCurrentThread in IsEnabled method.

InternalGetCurrentThread tries to create pal thread if it doesn't
exist for the current thread. It's unnecessary because in this case
there are no hardware exception handlers for such thread.

Also CatchHardwareExceptionHolder::IsEnable is called from signal
handlers and during pal thread creation non-async-signal-safe
function are called.

* vm/threads: change tls model for gCurrentThreadInfo variable

We should use initial-exec tls model to avoid memory allocations
during first access to this variable because it may ocuur in
signal handlers.

* sigsegv_handler: handle case when it is called on original stack

If sigsegv_handler is called on original stack (for example, if segmentation
fault occurs in native application's thread that hasn't alternate signal stack)
we should call common_signal_handler directly othersize sigsegv_handler's
stackframe will be corrupted.

6 years agoAdding Argument name to the Exception (#16372)
Anirudh Agnihotry [Wed, 14 Feb 2018 23:54:18 +0000 (15:54 -0800)]
Adding Argument name to the Exception (#16372)

6 years ago[RyuJit] Stack level setter (#15597)
Sergey Andreenko [Wed, 14 Feb 2018 23:38:58 +0000 (15:38 -0800)]
[RyuJit] Stack level setter (#15597)

* create a new phase: StackLevelSetter

* add repro

* Fix grammar mistakes

* use the default hash

* delete values from the map.

* create gentree::OperIsPutArgStkOrSplit

* fix more comments

* delete an extra condition that is always true

* use GTSTRUCT_2_SPECIAL for PutArgStk

* extract fgUseThrowHelperBlocks

* optimize memory for amd64 and additional checks for x86

* change checks

The previous version was wrong, because morph can call fgAddCodeRef several times for the same instruction during different phases.

* fix comments

* fix genJumpToThrowHlpBlk

* small ref in genJumpToThrowHlpBlk

* fix rebase problems.

* use fgUseThrowHelperBlocks instead of !opts.compDbgCode

* add throwHelperBlocksUsed for throughput.

6 years ago[armel tizen] Fixed dynamic code allocation and code pitching for ARM (#16352)
sergey ignatov [Wed, 14 Feb 2018 22:35:21 +0000 (01:35 +0300)]
[armel tizen] Fixed dynamic code allocation and code pitching for ARM (#16352)

* [armel tizen] Fixed dynamic code allocation for ARM

* Added comment

* Used ThumbCodeToDataPointer

* Changed to PCODEToPINSTR

6 years agoMerge pull request #16367 from briansull/vso-566984
Brian Sullivan [Wed, 14 Feb 2018 22:03:27 +0000 (14:03 -0800)]
Merge pull request #16367 from briansull/vso-566984

Fix for CSE - Assertion failed '!"Badly linked tree"'

6 years agoMark sharedgenerics test as GCStressIncompatible (#16391)
Michal Strehovský [Wed, 14 Feb 2018 21:04:47 +0000 (22:04 +0100)]
Mark sharedgenerics test as GCStressIncompatible (#16391)

6 years agoMerge pull request #16380 from kbaladurin/fix-uaf
Bruce Forstall [Wed, 14 Feb 2018 20:11:49 +0000 (12:11 -0800)]
Merge pull request #16380 from kbaladurin/fix-uaf

Histogram: doesn't allocate additional memory to store counts

6 years agoFix the fired asset in CompareInfo.IndexOf (#16373)
Tarek Mahmoud Sayed [Wed, 14 Feb 2018 18:54:14 +0000 (10:54 -0800)]
Fix the fired asset in CompareInfo.IndexOf (#16373)

6 years agoImplement WaitHandle.SignalAndWait on Unix (#16383)
Koundinya Veluri [Wed, 14 Feb 2018 18:27:32 +0000 (10:27 -0800)]
Implement WaitHandle.SignalAndWait on Unix (#16383)

Part of fix for https://github.com/dotnet/coreclr/issues/10441

6 years agoAdd VSD additional param for DIRECT calls. (#16267)
Sergey Andreenko [Wed, 14 Feb 2018 17:39:21 +0000 (09:39 -0800)]
Add VSD additional param for DIRECT calls. (#16267)

* add a virtualStubParamInfo as an argument

* try to delete duplicates

expect many failures for arm in lower because we delete: // Change the call type, so we can add the extra indirection here, rather than in codegen

* Revert legacy workaround from lower.

* Fix GetNonStandardAddedArgCount

6 years ago[Arm64] Additional Insert comments
Steve MacLean [Wed, 14 Feb 2018 17:06:59 +0000 (12:06 -0500)]
[Arm64] Additional Insert comments

6 years agoHistoram: doesn't allocate additional memory to store counts
Konstantin Baladurin [Wed, 14 Feb 2018 07:46:19 +0000 (10:46 +0300)]
Historam: doesn't allocate additional memory to store counts

It allows to remove deallocation in destuctor that can lead to uaf
for static Historgam's objects during shutdown.

6 years agoFix for issue #13153 - change SetGCConcurrent to TemporaryDisableConcurrentGC for...
David Mason [Wed, 14 Feb 2018 10:18:39 +0000 (02:18 -0800)]
Fix for issue #13153 - change SetGCConcurrent to TemporaryDisableConcurrentGC for profiler startup path. (#16314)

6 years agoHandle ELEMENT_TYPE_PTR in ILCodeStream::EmitLDIND/EmitSTIND (#16381)
Michal Strehovský [Wed, 14 Feb 2018 10:16:09 +0000 (11:16 +0100)]
Handle ELEMENT_TYPE_PTR in ILCodeStream::EmitLDIND/EmitSTIND (#16381)

Fixes #16371.

6 years agoFix ARM/ARM64 hijacking in tail calls (#16039)
Jan Vorlicek [Wed, 14 Feb 2018 09:15:19 +0000 (10:15 +0100)]
Fix ARM/ARM64 hijacking in tail calls (#16039)

* Fix ARM/ARM64 hijacking in tail calls

This change fixes an issue that can happen when a function that has tail
calls is hijacked. There are two potential issues:

1. When a function that tail calls another one is hijacked, the LR may be
stored at a different location in the stack frame of the tail call
target.
So just by performing tail call, the hijacked location becomes invalid and
unhijacking would corrupt stack by writing to that location.

2. There is a small window after the caller pops LR from the stack in its
epilog and before the tail called function pushes LR in its prolog when
the hijacked return address would not be not on the stack and so we would
not be able to unhijack.

The fix is to prevent hijacking of functions that contain tail calls.

* Enable the tailcall hijacking test for ARM64

The test JIT/Methodical/tailcall_v4/hijacking should be passing now on
ARM64.

6 years agoAdd ReadOnlySpan string-like StartsWith and EndsWith API with globalization support...
Ahson Khan [Wed, 14 Feb 2018 02:18:46 +0000 (18:18 -0800)]
Add ReadOnlySpan string-like StartsWith and EndsWith API with globalization support (#16223)

* Add ReadOnlySpan string-like StartsWith API with globalization support

* Add ReadOnlySpan string-like EndsWith API with globalization support

* Fix nits from PR feedback.

* Address PR feedback

* Add unsafe keyword in CompareInfo.Unix methods.

* Address PR feedback and fix signature of Interop.Globalization.EndsWith

* Code formatting cleanup as suggested by VS.

* Revert "Code formatting cleanup as suggested by VS."

This reverts commit 20931fbf1ae113c6acaa3a4b2c0789b46d7ab06b.

* Creating Span specific methods and working around use of IsFastSort

* Code cleanup

* Improve performance by avoiding slicing and fix impl bug

* Remove commented out code and revert some calls to FindString

* Updating checks for Unix to mimic what IsFastSort does.

* Add length checks and include IsFastSort check within the loop

* Fix bounds checks to not include 0x80

* Call correct method when StringComparison is IgnoreCase.

* Update exception type in string compare to remain consistent

6 years agoFix clang format warnings
Brian Sullivan [Wed, 14 Feb 2018 00:17:43 +0000 (16:17 -0800)]
Fix clang format warnings

6 years agoCheck for the very uncommon case where when we are replacing a CSE use
Brian Sullivan [Tue, 13 Feb 2018 23:48:38 +0000 (15:48 -0800)]
Check for the very uncommon case where when we are replacing a CSE use
and it contains a CSE def which itself has persistent side effects.
For such a case we simply abandon the replacement of the CSE use.

6 years agoAdd Sse2 scalar hardware intrinsics tests
Jacek Blaszczynski [Tue, 6 Feb 2018 20:24:59 +0000 (21:24 +0100)]
Add Sse2 scalar hardware intrinsics tests

6 years agoImplement scalar Sse2 hardware intrinsics
Jacek Blaszczynski [Sat, 27 Jan 2018 21:18:05 +0000 (22:18 +0100)]
Implement scalar Sse2 hardware intrinsics

6 years agoFix registry path for ETW argument lookup. (#16347)
Brian Robbins [Tue, 13 Feb 2018 22:34:31 +0000 (14:34 -0800)]
Fix registry path for ETW argument lookup. (#16347)

6 years agoMerge pull request #16344 from brunotag/patch-1
Wes Haggard [Tue, 13 Feb 2018 19:16:50 +0000 (11:16 -0800)]
Merge pull request #16344 from brunotag/patch-1

Update UsingYourBuild.md

6 years agoMerge pull request #16351 from fiigii/fixcont
Carol Eidt [Tue, 13 Feb 2018 15:42:38 +0000 (07:42 -0800)]
Merge pull request #16351 from fiigii/fixcont

Remove an incorrect assertion in containment analysis

6 years agoMerge pull request #15950 from dotnetrt/isafix
Carol Eidt [Tue, 13 Feb 2018 15:34:34 +0000 (07:34 -0800)]
Merge pull request #15950 from dotnetrt/isafix

On all platforms first member of InstructionSet enum is InstructionSet_ILLEGAL

6 years agoFix an incorrect assertion in containment analysis
Fei Peng [Tue, 13 Feb 2018 07:42:34 +0000 (23:42 -0800)]
Fix an incorrect assertion in containment analysis

6 years agoFix ambiguous interface method error message (#16341)
Michal Strehovský [Tue, 13 Feb 2018 07:19:30 +0000 (08:19 +0100)]
Fix ambiguous interface method error message (#16341)

Fixes #15864.

6 years agoDefine type initialization semantics for interface instance methods (#16340)
Michal Strehovský [Tue, 13 Feb 2018 04:08:29 +0000 (05:08 +0100)]
Define type initialization semantics for interface instance methods (#16340)

* Define type initialization semantics for interface instance methods

Accessing an instance method on an interface should trigger non-beforefieldinit class constructors (same as it does for valuetypes).

Fixes #15650.

6 years agoImprove perf of DelegateConstruct (#16345)
Andy Ayers [Tue, 13 Feb 2018 03:31:51 +0000 (19:31 -0800)]
Improve perf of DelegateConstruct (#16345)

Remove a range lookup that's no longer needed.

See related issue #12438.

6 years agoFix SSE4.1 encoding
Fei Peng [Mon, 12 Feb 2018 21:51:32 +0000 (13:51 -0800)]
Fix SSE4.1 encoding

6 years agoImplement SSE4.2 CompareGreaterThan
Fei Peng [Mon, 12 Feb 2018 20:51:31 +0000 (12:51 -0800)]
Implement SSE4.2 CompareGreaterThan

6 years agoImplement SSE4.1 CompareEqual
Fei Peng [Mon, 12 Feb 2018 20:50:51 +0000 (12:50 -0800)]
Implement SSE4.1 CompareEqual

6 years agoreenable AVX2 compareEqual.Int64
Fei Peng [Mon, 12 Feb 2018 20:49:59 +0000 (12:49 -0800)]
reenable AVX2 compareEqual.Int64

6 years agoMerge pull request #16181 from Buyduck/arm-memory-barrier
Bruce Forstall [Tue, 13 Feb 2018 00:26:25 +0000 (16:26 -0800)]
Merge pull request #16181 from Buyduck/arm-memory-barrier

[RyuJIT/arm32] Support GTF_IND_VOLATILE and GTF_BLK_VOLATILE

6 years agoMerge pull request #16008 from sdmaclea/PR-ARM64-TEST-SIMD-HWINTRINSIC
Carol Eidt [Mon, 12 Feb 2018 23:00:30 +0000 (15:00 -0800)]
Merge pull request #16008 from sdmaclea/PR-ARM64-TEST-SIMD-HWINTRINSIC

[Arm64] Add Simd HWIntrinsic test

6 years agoInsert contain extract
Steve MacLean [Mon, 12 Feb 2018 18:08:54 +0000 (13:08 -0500)]
Insert contain extract

6 years agoMerge pull request #16309 from MattGal/eol-some-linuxes
Matt Galbraith [Mon, 12 Feb 2018 20:56:46 +0000 (12:56 -0800)]
Merge pull request #16309 from MattGal/eol-some-linuxes

Remove EOL OSes and add new / missing ones

6 years agoUpdate UsingYourBuild.md
Bruno Tagliapietra [Mon, 12 Feb 2018 19:35:22 +0000 (08:35 +1300)]
Update UsingYourBuild.md

Apparently it needs a PlatformTarget to be specified as well when targeting x64 architecture

6 years agoJIT: Allow struct promotion in GS frames (#16220)
Andy Ayers [Mon, 12 Feb 2018 19:30:45 +0000 (11:30 -0800)]
JIT: Allow struct promotion in GS frames (#16220)

Enable struct promotion in methods where the jit is also emtting a stack guard.
Not allowing promotion seems like an unnecessary limitation and leads to poor
performance in methods with both Span and stackalloc.

Closes #16197.

6 years agoUse DateTime.ToFileTimeUtc to generate serializable DateTime for TraceLogging events...
Brian Robbins [Mon, 12 Feb 2018 19:15:40 +0000 (11:15 -0800)]
Use DateTime.ToFileTimeUtc to generate serializable DateTime for TraceLogging events. (#16317)

6 years agoAdd TestInsert
Steve MacLean [Thu, 1 Feb 2018 17:37:30 +0000 (12:37 -0500)]
Add TestInsert

6 years agoImprove diagnostics
Steve MacLean [Thu, 8 Feb 2018 17:26:47 +0000 (12:26 -0500)]
Improve diagnostics

6 years ago[Arm64] Add Simd HWIntrinsic test
Steve MacLean [Sat, 16 Dec 2017 01:04:06 +0000 (20:04 -0500)]
[Arm64] Add Simd HWIntrinsic test

6 years agoJIT: look for escaping byrefs (#16305)
Andy Ayers [Mon, 12 Feb 2018 17:16:53 +0000 (09:16 -0800)]
JIT: look for escaping byrefs (#16305)

If a byref is passed to a call or used in an assign, assume it escapes and
that subsequent dereferences may be made at arbitrary offsets.

This handles cases where a user takes the address of one field of a struct,
then uses that byref that to access other fields or non-field content within
the struct, and the byref formation and use are split across statements or
across caller-callee contexts.

Closes #16210.

6 years agoUpdate CoreClr, CoreFx, PgoData to preview2-26212-01, preview2-26212-01, master-20180...
dotnet-maestro-bot [Mon, 12 Feb 2018 12:26:26 +0000 (06:26 -0600)]
Update CoreClr, CoreFx, PgoData to preview2-26212-01, preview2-26212-01, master-20180212-0035, respectively (#16335)

6 years agoImprove CMake detection on Windows when not in PATH (#16328)
Jan Kotas [Mon, 12 Feb 2018 07:00:55 +0000 (23:00 -0800)]
Improve CMake detection on Windows when not in PATH (#16328)

Port dotnet/corert#5372

curl https://github.com/dotnet/corert/commit/b723f90c611a2c79a0921f95c7299ebb7325eb59.patch | git am -p 3 --directory='src/pal/tools/' --reject

In CMake v10.2, the key `hklm:\SOFTWARE\Kitware` returns:

```powershell
    Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Kitware

Name                           Property
----                           --------
CMake                          InstallDir : C:\Program Files\CMake\
```

with no space after `CMake` and property name `InstallDir`,
instead of `'(default)'`.

6 years agoFix stack trace population to get proper source/line info for tier 1 methods (#16302)
Koundinya Veluri [Mon, 12 Feb 2018 00:57:09 +0000 (16:57 -0800)]
Fix stack trace population to get proper source/line info for tier 1 methods (#16302)

Fixes https://github.com/dotnet/coreclr/issues/16224

6 years agoUpdate CoreClr, CoreFx to preview2-26211-03, preview2-26211-04, respectively (#16327)
dotnet-maestro-bot [Sun, 11 Feb 2018 16:34:54 +0000 (10:34 -0600)]
Update CoreClr, CoreFx to preview2-26211-03, preview2-26211-04, respectively (#16327)

6 years agoDelete PEFingerPrint.* (#16325)
Jan Kotas [Sun, 11 Feb 2018 16:34:43 +0000 (08:34 -0800)]
Delete PEFingerPrint.* (#16325)

Unnecessary dummy type on CoreCLR

6 years agoUpdate BuildTools, CoreClr to preview2-02511-02, preview2-26210-06, respectively...
dotnet-maestro-bot [Sun, 11 Feb 2018 13:07:04 +0000 (07:07 -0600)]
Update BuildTools, CoreClr to preview2-02511-02, preview2-26210-06, respectively (#16324)

6 years agoUpdate CoreClr to preview2-26210-04 (#16321)
dotnet-maestro-bot [Sat, 10 Feb 2018 15:27:20 +0000 (09:27 -0600)]
Update CoreClr to preview2-26210-04 (#16321)

6 years agoAllow jit internal errors to propagate to user visible exception (#16320)
Andy Ayers [Sat, 10 Feb 2018 11:57:44 +0000 (03:57 -0800)]
Allow jit internal errors to propagate to user visible exception (#16320)

May help users find workarounds for cases where the jits hit some
kind of implementation limit, as in #12480 or #14762.

6 years agoUpdate PgoData to master-20180210-0042 (#16319)
dotnet-maestro-bot [Sat, 10 Feb 2018 11:27:03 +0000 (05:27 -0600)]
Update PgoData to master-20180210-0042 (#16319)

6 years agoImplement certain simple SIMD intrinsics for AVX/AVX2
Fei Peng [Thu, 8 Feb 2018 23:08:22 +0000 (15:08 -0800)]
Implement certain simple SIMD intrinsics for AVX/AVX2

6 years agoAdd AVX/AVX2 templete-drien tests and enable containment tests
Fei Peng [Fri, 9 Feb 2018 10:18:12 +0000 (02:18 -0800)]
Add AVX/AVX2 templete-drien tests and enable containment tests

6 years agoAdd new test template
Fei Peng [Thu, 8 Feb 2018 23:05:06 +0000 (15:05 -0800)]
Add new test template

6 years agoAdd test cases for some AVX/AVX2 intrinsics
Fei Peng [Thu, 8 Feb 2018 23:03:22 +0000 (15:03 -0800)]
Add test cases for some AVX/AVX2 intrinsics

6 years agoUpdate BuildTools, CoreClr, CoreFx, PgoData to preview2-02509-01, preview2-26209...
dotnet-maestro-bot [Sat, 10 Feb 2018 04:58:29 +0000 (22:58 -0600)]
Update BuildTools, CoreClr, CoreFx, PgoData to preview2-02509-01, preview2-26209-08, preview2-26210-01, master-20180209-0035, respectively (#16269)

6 years agoUpdating emitxarch to check TakesVexPrefix(ins) when adding REX bits.
Tanner Gooding [Fri, 9 Feb 2018 17:12:43 +0000 (09:12 -0800)]
Updating emitxarch to check TakesVexPrefix(ins) when adding REX bits.

6 years agoAdd back TraceFormat.Normal to avoid additional newlines from being added
Sung Yoon Whang [Fri, 9 Feb 2018 23:17:07 +0000 (15:17 -0800)]
Add back TraceFormat.Normal to avoid additional newlines from being added

6 years agoAddress PR comments
Sung Yoon Whang [Fri, 9 Feb 2018 20:38:28 +0000 (12:38 -0800)]
Address PR comments

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 years agoexclude errorSource from call to Environment.FailFast on Unix
Sung Yoon Whang [Fri, 9 Feb 2018 03:28:17 +0000 (19:28 -0800)]
exclude errorSource from call to Environment.FailFast on Unix

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 years agodependancy -> dependency (dotnet/corert#5350)
John Doe [Mon, 5 Feb 2018 22:33:29 +0000 (14:33 -0800)]
dependancy -> dependency (dotnet/corert#5350)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
6 years agoFix for RETURNTRAP xarch codegen. (#16292)
Eugene Rozenfeld [Fri, 9 Feb 2018 23:45:37 +0000 (15:45 -0800)]
Fix for RETURNTRAP xarch codegen. (#16292)

This fixes a bug that caused an assert in GetSingleTempReg.
In this case we had an an interop call (resulting in RETURNTRAP in its epilog)
when there are live 256 bit values at the callsite.
The bug was that codegen for RETURNTRAP node requested a single temp register
and asserted that there was only one. In this case the set of temp registers
includes floating-point registers that may be needed for saving/restoring the upper
part of 256-bit registers. The fix was for codegen to request a single temp int register.
GetSingleTempReg will assert that there was only one int register in this case.

6 years agoFixing up fgValueNumberIntrinsic to use IsMathIntrinsic rather than checking individu...
Tanner Gooding [Fri, 9 Feb 2018 02:05:02 +0000 (18:05 -0800)]
Fixing up fgValueNumberIntrinsic to use IsMathIntrinsic rather than checking individual cases.

6 years agoDebugger api to set a breakpoint on offset 0 of all methods (#16303)
David Mason [Fri, 9 Feb 2018 23:06:23 +0000 (15:06 -0800)]
Debugger api to set a breakpoint on offset 0 of all methods (#16303)

* Debugger api to set a breakpoint on offset 0 of all methods

* fix ifdef misplacement in pal cordebug.h

* add IID to cordebug_i.cpp

6 years agoMerge pull request #16308 from sdmaclea/PR-JIT.SIMD.VectorUtil.CheckValue
Carol Eidt [Fri, 9 Feb 2018 22:59:54 +0000 (14:59 -0800)]
Merge pull request #16308 from sdmaclea/PR-JIT.SIMD.VectorUtil.CheckValue

Fix JIT.SIMD.VectorUtil.CheckValue<T>

6 years ago[Arm64] Implement Simd.Insert
Steve MacLean [Tue, 30 Jan 2018 21:11:39 +0000 (16:11 -0500)]
[Arm64] Implement Simd.Insert

6 years agoEOL Removals:
Matt Galbraith [Fri, 9 Feb 2018 21:13:49 +0000 (13:13 -0800)]
EOL Removals:

Fedora 23
RedHat 7.2
Ubuntu 16.10

Additions:
OSX 10.13
Ubuntu.17.10
Ubuntu 18.04
OpenSuse 42.3
SLES 12

6 years agoFix JIT.SIMD.VectorUtil.CheckValue<T>
Steve MacLean [Fri, 9 Feb 2018 21:01:05 +0000 (16:01 -0500)]
Fix JIT.SIMD.VectorUtil.CheckValue<T>

6 years agoRemove an old JIT64 thread suspend work around (#16304)
Brian Sullivan [Fri, 9 Feb 2018 21:07:51 +0000 (13:07 -0800)]
Remove an old JIT64 thread suspend work around (#16304)

JIT64 isn't ever used for CoreCLR

6 years agoFix T[]->ArraySegment cast to return default for null (#16301)
Stephen Toub [Fri, 9 Feb 2018 20:31:22 +0000 (15:31 -0500)]
Fix T[]->ArraySegment cast to return default for null (#16301)

6 years agoMerge pull request #16248 from briansull/fix-16065
Brian Sullivan [Fri, 9 Feb 2018 19:15:06 +0000 (11:15 -0800)]
Merge pull request #16248 from briansull/fix-16065

Fixes GitHub Issue 16065

6 years agoMerge pull request #16217 from adamsitnik/eventPipeAssert
Adam Sitnik [Fri, 9 Feb 2018 17:51:41 +0000 (18:51 +0100)]
Merge pull request #16217 from adamsitnik/eventPipeAssert

fix the Incorrect EventPipe Assert, fixes #16158

6 years agoMerge pull request #16300 from jkotas/revert
Jan Kotas [Fri, 9 Feb 2018 17:45:48 +0000 (09:45 -0800)]
Merge pull request #16300 from jkotas/revert

 Revert "Debugger api to set a breakpoint on offset 0 of all methods"

6 years agoRevert "Debugger api to set a breakpoint on offset 0 of all methods (#15819)"
Jan Kotas [Fri, 9 Feb 2018 17:40:42 +0000 (09:40 -0800)]
Revert "Debugger api to set a breakpoint on offset 0 of all methods (#15819)"

This reverts commit 3d689d00843618105e735c5647e1cb64e721a333.

6 years agoRevert "fix for issue #16289 (#16291)"
Jan Kotas [Fri, 9 Feb 2018 17:40:36 +0000 (09:40 -0800)]
Revert "fix for issue #16289 (#16291)"

This reverts commit cd3f6e77757729d3d02dfbec4af21cdfe83f5435.

6 years agoFix GC reporting for slow tail calls with by-ref-like args (#16264)
Koundinya Veluri [Fri, 9 Feb 2018 16:28:59 +0000 (08:28 -0800)]
Fix GC reporting for slow tail calls with by-ref-like args (#16264)

Fix GC reporting for slow tail calls with by-ref-like args

Fixes https://github.com/dotnet/coreclr/issues/16229:
- Offsets recorded in the GC layout are intended to be offsets from the top of the stack, fixed by calculating the proper offset

6 years agoChange compliement to complement
Tanner Gooding [Thu, 8 Feb 2018 15:57:49 +0000 (07:57 -0800)]
Change compliement to complement

6 years agoFixing up the emitOutput handling for RR/RRR instructions
Tanner Gooding [Thu, 8 Feb 2018 00:47:04 +0000 (16:47 -0800)]
Fixing up the emitOutput handling for RR/RRR instructions

6 years agoEnabling the named intrinsic support on SSE4.1 hardware for Math.Round, Math.Ceiling...
Tanner Gooding [Wed, 7 Feb 2018 04:38:51 +0000 (20:38 -0800)]
Enabling the named intrinsic support on SSE4.1 hardware for Math.Round, Math.Ceiling, and Math.Floor

6 years agoUpdating the emitter to more generally handle 4-Byte SSE4 instructions.
Tanner Gooding [Wed, 7 Feb 2018 04:38:24 +0000 (20:38 -0800)]
Updating the emitter to more generally handle 4-Byte SSE4 instructions.

6 years agofix for issue #16289 (#16291)
David Mason [Fri, 9 Feb 2018 08:30:02 +0000 (00:30 -0800)]
fix for issue #16289 (#16291)

6 years agoMerge pull request #15595 from mikedn/rc-binop
Brian Sullivan [Fri, 9 Feb 2018 01:57:04 +0000 (17:57 -0800)]
Merge pull request #15595 from mikedn/rc-binop

Remove useless RangeCheck::Limit::keArray

6 years agoChange corefx test process (#16263)
Bruce Forstall [Fri, 9 Feb 2018 01:00:10 +0000 (17:00 -0800)]
Change corefx test process (#16263)

Instead of using the `/p:CoreCLROverridePath` switch when building
corefx, to bring in coreclr, build corefx normally. This builds
against the coreclr packages that corefx has already been validated
against in the CI, so the build should always work. Then, copy
over our built coreclr bits before testing. This method is expected
to have better behavior in most breaking change scenarios.

6 years agoMerge pull request #16281 from alpencolt/clr-extra-args-4-cmake
Wes Haggard [Fri, 9 Feb 2018 00:53:25 +0000 (16:53 -0800)]
Merge pull request #16281 from alpencolt/clr-extra-args-4-cmake

[Unix] Passing extra CMake args

6 years agoMerge pull request #16278 from BredPet/fix_cfi_unwind_info
Bruce Forstall [Thu, 8 Feb 2018 23:25:17 +0000 (15:25 -0800)]
Merge pull request #16278 from BredPet/fix_cfi_unwind_info

[RyuJIT/ARM32] Fix crash while generating CFI unwind info

6 years agoAdjust expected file size if ZapDisable is true (#16240)
Victor "Nate" Graf [Thu, 8 Feb 2018 23:07:20 +0000 (15:07 -0800)]
Adjust expected file size if ZapDisable is true (#16240)

6 years agoMerge pull request #15673 from tannergooding/generatelayout-switch
Jarret Shook [Thu, 8 Feb 2018 22:43:24 +0000 (14:43 -0800)]
Merge pull request #15673 from tannergooding/generatelayout-switch

Updating build.cmd to support 'generatelayout' when 'skiptests' is specified.

6 years agoDebugger api to set a breakpoint on offset 0 of all methods (#15819)
David Mason [Thu, 8 Feb 2018 22:35:01 +0000 (14:35 -0800)]
Debugger api to set a breakpoint on offset 0 of all methods (#15819)

* Debugger api to set a breakpoint on offset 0 of all methods

* code review feedback

* more code review feedback

* respect IsIl in CorDbFunctionBreakoint()

* change SIMPLIFYING_ASSERT to SIMPLIFYING_ASSUMPTION_SUCCEEDED for hrs, it outputs a much better diagnostic message

6 years agoUpdating runtime version for tests (#16271)
Noah Falk [Thu, 8 Feb 2018 21:59:26 +0000 (13:59 -0800)]
Updating runtime version for tests (#16271)

Change 93ec62347a4e97b920513296eefb27bdacbecfe9 removed Span.NonPortableCast from System.Private.CoreLib.dll requiring tests
to use an updated version of System.Memory.dll that no longer refers to it.

6 years agoExplictly initialize EventData.Reserved for System.Private.CoreLib. (#16283)
Brian Robbins [Thu, 8 Feb 2018 21:24:52 +0000 (13:24 -0800)]
Explictly initialize EventData.Reserved for System.Private.CoreLib. (#16283)

6 years agoExtra semicolons left at the end of Combine function taking 4 paths. (#16284)
Anirudh Agnihotry [Thu, 8 Feb 2018 21:03:50 +0000 (13:03 -0800)]
Extra semicolons left at the end of Combine function taking 4 paths. (#16284)

6 years agoAdd tests for Sse2 memory fence instructions
Jacek Blaszczynski [Wed, 7 Feb 2018 22:29:30 +0000 (23:29 +0100)]
Add tests for Sse2 memory fence instructions

6 years agoImplement Sse2 memory fence instructions
Jacek Blaszczynski [Wed, 7 Feb 2018 22:28:38 +0000 (23:28 +0100)]
Implement Sse2 memory fence instructions

6 years agoMerge pull request #16268 from CarolEidt/Fix16254
Carol Eidt [Thu, 8 Feb 2018 19:43:00 +0000 (11:43 -0800)]
Merge pull request #16268 from CarolEidt/Fix16254

Check mismatched types for SIMD copy