platform/upstream/coreclr.git
5 years agoConst has static linkage
Sinan Kaya [Sun, 17 Mar 2019 20:36:22 +0000 (20:36 +0000)]
Const has static linkage

bin/obj/Linux.x64.Debug/src/dlls/mscorrc/full/mscorrc_debug.cpp:1002:110: error: ‘visibility’ attribute ignored [-Werror=attributes]
 const NativeStringResourceTable nativeStringResourceTable_mscorrc_debug __attribute__((visibility("default"))) = {

5 years agoFix conversion issues
Sinan Kaya [Sun, 17 Mar 2019 20:24:40 +0000 (20:24 +0000)]
Fix conversion issues

5 years agoSuppress compiler warnings
Sinan Kaya [Sat, 16 Feb 2019 20:16:53 +0000 (20:16 +0000)]
Suppress compiler warnings

remove no attribute

5 years agoMove Enum and CorElementType to shared (#23177)
Egor Bogatov [Sun, 17 Mar 2019 06:10:36 +0000 (07:10 +0100)]
Move Enum and CorElementType to shared (#23177)

5 years agoFixing some payload serialization issue on new EventCounters (#23295)
Sung Yoon Whang [Sun, 17 Mar 2019 02:06:11 +0000 (19:06 -0700)]
Fixing some payload serialization issue on new EventCounters (#23295)

* Fixing some payload serialization issue on new EventCounters

* Fix build error

5 years agoFix x86 dumps from HandleFatalError showing misleading callstack (#23289)
Elinor Fung [Sat, 16 Mar 2019 22:02:52 +0000 (15:02 -0700)]
Fix x86 dumps from HandleFatalError showing misleading callstack (#23289)

5 years agoFix typo (#23300)
Nikita Potapenko [Sat, 16 Mar 2019 15:41:47 +0000 (17:41 +0200)]
Fix typo (#23300)

.Net -> .NET

5 years agoUpdate dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimizati...
dotnet-maestro[bot] [Sat, 16 Mar 2019 15:35:07 +0000 (08:35 -0700)]
Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build 20190313.3 (#23303)

This change updates the following dependencies
- optimization.IBC.CoreCLR - 99.99.99-master-20190313.3
- optimization.PGO.CoreCLR - 99.99.99-master-20190313.3

5 years agoUpdate dependencies from https://github.com/dotnet/corefx build 20190314.7 (#23302)
dotnet-maestro[bot] [Sat, 16 Mar 2019 15:34:28 +0000 (08:34 -0700)]
Update dependencies from https://github.com/dotnet/corefx build 20190314.7 (#23302)

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19164.7
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19164.7

5 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20190312.7 (#23301)
dotnet-maestro[bot] [Sat, 16 Mar 2019 15:34:16 +0000 (08:34 -0700)]
Update dependencies from https://github.com/dotnet/arcade build 20190312.7 (#23301)

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19162.7
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19162.7

5 years agoJIT: clear stub register assignment for tail calls via helper (#23288)
Andy Ayers [Sat, 16 Mar 2019 15:08:16 +0000 (08:08 -0700)]
JIT: clear stub register assignment for tail calls via helper (#23288)

When we have a VSD tail call via a helper, the stub arg is passed as a normal
arg to the helper and moved to the right special register by the copy routine
that the helper invokes. So the jit does not need to pass the stub value in the
special register when calling the helper.

The stub arg gets set to that register by default, so we now unset it for the
tail call via helper case.

Closes #18943.

5 years agoIntroduce COMPlus arm64 HW intrinsics knobs (#23244)
Bruce Forstall [Sat, 16 Mar 2019 04:27:56 +0000 (21:27 -0700)]
Introduce COMPlus arm64 HW intrinsics knobs (#23244)

* Introduce COMPlus configuration variables to disable arm64 HW intrinsics classes

Fixes #20708

* Formatting

5 years agoAdd siVarLoc::Equals (#23275)
Brian Bohe [Sat, 16 Mar 2019 03:54:22 +0000 (20:54 -0700)]
Add siVarLoc::Equals (#23275)

5 years agoRename private GetEntryAssembly QCall overload (#22396)
Stephen Toub [Sat, 16 Mar 2019 03:44:53 +0000 (23:44 -0400)]
Rename private GetEntryAssembly QCall overload (#22396)

To avoid issues with existing private reflection-based code that now gets a parameter count mismatch exception.

Also renamed GetExecutingAssembly for consistency.

5 years agoUse HKLM for CLSID lookup (#23258)
Elinor Fung [Sat, 16 Mar 2019 00:57:38 +0000 (17:57 -0700)]
Use HKLM for CLSID lookup (#23258)

* Use HKLM for CLSID lookup
* Delete unused functions

5 years agoMerge pull request #23294 from briansull/fix-format
Brian Sullivan [Fri, 15 Mar 2019 23:49:50 +0000 (16:49 -0700)]
Merge pull request #23294 from briansull/fix-format

Fix formatting error

5 years agoFix formatting error
Brian Sullivan [Fri, 15 Mar 2019 22:40:40 +0000 (15:40 -0700)]
Fix formatting error

5 years agoMerge pull request #23272 from briansull/VNMap_Overwrite
Brian Sullivan [Fri, 15 Mar 2019 21:55:51 +0000 (14:55 -0700)]
Merge pull request #23272 from briansull/VNMap_Overwrite

Fix for duplicate call to Set when we run out of budget

5 years agoPort AMSI scanning for assembly loads (#23231)
Elinor Fung [Fri, 15 Mar 2019 19:33:43 +0000 (12:33 -0700)]
Port AMSI scanning for assembly loads (#23231)

* Port AMSI scanning for assembly loads

* Define PLATFORM_WINDOWS for Windows build

* Remove check for LOAD_LIBRARY_SEARCH_SYSTEM32 support

5 years agoFix GetFullAffinityMask for cpuCount==64 (#23276)
Jan Vorlicek [Fri, 15 Mar 2019 19:32:48 +0000 (20:32 +0100)]
Fix GetFullAffinityMask for cpuCount==64 (#23276)

The function was incorrectly assuming that shifting 64 bit
constant 1 by 64 bits to the left gets result 0.

5 years agoFixed small typo in path to crossgen (#23286)
Fawad Halim [Fri, 15 Mar 2019 19:32:11 +0000 (14:32 -0500)]
Fixed small typo in path to crossgen (#23286)

5 years agoAdd `Schedule` and 'Manual' as possible triggers for outerloop jobs. (#23271)
Sergey Andreenko [Fri, 15 Mar 2019 17:38:47 +0000 (10:38 -0700)]
Add `Schedule` and 'Manual' as possible triggers for outerloop jobs. (#23271)

5 years agoExclude tracing/keyword/TwoKeywords test from running on all platforms (#23267)
Egor Chesakov [Fri, 15 Mar 2019 17:35:25 +0000 (10:35 -0700)]
Exclude tracing/keyword/TwoKeywords test from running on all platforms (#23267)

Related issue: https://github.com/dotnet/coreclr/issues/23224

5 years agoIn CLRLifoSemaphore, start the underlying semaphore with 0 for the initial signal...
Koundinya Veluri [Fri, 15 Mar 2019 16:12:27 +0000 (09:12 -0700)]
In CLRLifoSemaphore, start the underlying semaphore with 0 for the initial signal count (#22632)

- Port of a fix from https://github.com/dotnet/corert/pull/6955
- The underlying semaphore is only used to wake up waiters, initially there are no waiters and the signal count should be zero. This was already the case on Windows, this fixes the Unix side. The actual initial signal count is tracked in the upper layer counts.
- The initial signal count passed in is zero anyway in the places where it's used, so it makes no difference for now, just some cleanup

5 years agoCollection<T>: Validate parameters in the public methods (#23166)
Justin Van Patten [Fri, 15 Mar 2019 14:52:31 +0000 (07:52 -0700)]
Collection<T>: Validate parameters in the public methods (#23166)

I was looking over the new Range methods on `Collection<T>` and it occurred to me that for all existing methods, parameter validation is done in the *public* methods before calling the *protected virtual* methods. This changes the new Range methods to do the same.

5 years agoUpdate performance-guidelines.md (#23183)
Han Lee [Fri, 15 Mar 2019 14:43:28 +0000 (07:43 -0700)]
Update performance-guidelines.md (#23183)

so that it uses run-xunit-perf.py command. run-xunit-perf.cmd is no longer there.

5 years agoFix Ubuntu arm build break. (#23270)
Jeremy Koritzinsky [Fri, 15 Mar 2019 05:24:15 +0000 (22:24 -0700)]
Fix Ubuntu arm build break. (#23270)

* Add platformdefines.h include to fix build break.

5 years agoMove TypeLoadException to shared (#23238)
Egor Bogatov [Fri, 15 Mar 2019 03:41:05 +0000 (06:41 +0300)]
Move TypeLoadException to shared (#23238)

* fix coding-style

* shorter form for TypeName property

* move coreclr-specific ctor to TypeLoadException

5 years agoMake ILProj work in Visual Studio (#23264)
Eric StJohn [Fri, 15 Mar 2019 02:13:11 +0000 (19:13 -0700)]
Make ILProj work in Visual Studio (#23264)

CPS depends the targets defined here and will fail to load a project if these aren't imported.

5 years agoDisable failing test against #23262 (#23263)
Jan Kotas [Fri, 15 Mar 2019 01:36:41 +0000 (18:36 -0700)]
Disable failing test against #23262 (#23263)

5 years agoFix for duplicate call to Set when we run out of budget
Brian Sullivan [Thu, 14 Mar 2019 23:19:07 +0000 (16:19 -0700)]
Fix for duplicate call to Set when we run out of budget

5 years agoMerge pull request #23260 from BruceForstall/AlwaysArchiveCrossgenComparisonResults
Bruce Forstall [Thu, 14 Mar 2019 22:51:30 +0000 (15:51 -0700)]
Merge pull request #23260 from BruceForstall/AlwaysArchiveCrossgenComparisonResults

Archive crossgen comparison job results even if job fails

5 years agoMerge pull request #23180 from franksinankaya/gcc_cleanup_12
Jan Vorlicek [Thu, 14 Mar 2019 22:31:25 +0000 (23:31 +0100)]
Merge pull request #23180 from franksinankaya/gcc_cleanup_12

Fix conversion and signedness issues in Event Tracer

5 years ago Fix the calling convention for P/Invokes and delegates to hostpolicy (#23249)
Aaron Robinson [Thu, 14 Mar 2019 22:15:56 +0000 (15:15 -0700)]
 Fix the calling convention for P/Invokes and delegates to hostpolicy (#23249)

* Fix the calling convention for P/Invokes and delegates

* Update mock library to match official hostpolicy calling conventions

5 years agoFix GetProcessAffinityMask (#23247)
Jan Vorlicek [Thu, 14 Mar 2019 21:30:00 +0000 (22:30 +0100)]
Fix GetProcessAffinityMask (#23247)

The function was returning mask not expected by runtime for coreclr
built with NUMA enabled on machines with multiple NUMA nodes.
The mask was 0 in case the current process was affinitized to CPUs
from multiple NUMA nodes. It was following MSDN doc, however the
doc turned out to be ambiguous. Moreover, the runtime depended
on the fact that on Windows, a process is never run on multiple
NUMA nodes unless is explicitly calls APIs to set ideal processor
for threads. But on Unix, there is no such case and by default, a
process is affinitized to all existing processors over all NUMA
nodes.

And there was one more issue. The GetProcessAffinityMask was returning
a mask within a single CPU group, which is a transformed view of
NUMA node on Windows. So the CPU indices in the mask didn't necessarily
correspond to the native Unix CPU indices. But, the SetThreadAffinityMask
was using the native Unix CPU indices.

To fix the problem, the GetProcessAffinityMask is changed so that
it always returns a mask corresponding to the native Unix CPU indices
(reporting upto 64 processors as the mask is 64 bit wide). Thus it
corresponds to what the SetThreadAffinityMask expects. And it also exactly
matches the behavior when NUMA support is not compiled in.
Moreover, the COMPlus_GCHeapAffinitizeMask bits now correspond to
the native Unix CPU indices.

The GetProcessAffinityMask is used by GC and thread pool only when
NUMA is not enabled using the COMPlus_GCCpuGroup env variable.

5 years ago[master] Update dependencies from optimization repositories (#23226)
dotnet-maestro[bot] [Thu, 14 Mar 2019 20:54:25 +0000 (13:54 -0700)]
[master] Update dependencies from optimization repositories (#23226)

* Update dependencies from https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-optimization build 20190314.1

This change updates the following dependencies
- optimization.IBC.CoreCLR - 99.99.99-master-20190314.1
- optimization.PGO.CoreCLR - 99.99.99-master-20190314.1

5 years agoFix DisableTier0Jit when multi-core JIT is enabled (#23200)
Koundinya Veluri [Thu, 14 Mar 2019 20:51:25 +0000 (13:51 -0700)]
Fix DisableTier0Jit when multi-core JIT is enabled (#23200)

- With multi-core JIT, a method may be jitted before it is called, in which case the call counting entry would not already exist

5 years agoUpdate CoreFX Linux Arm64 exclusion list. (#22697)
Sergey Andreenko [Thu, 14 Mar 2019 20:36:03 +0000 (13:36 -0700)]
Update CoreFX Linux Arm64 exclusion list. (#22697)

* Update CoreFX Linux Arm64 exclusion list.

* Exclude System.Globalization.Calendars.Tests.

* Exclude System.Threading.Tasks.Tests.

* Exclude #23242

5 years agoArchive crossgen comparison job results even if job fails
Bruce Forstall [Thu, 14 Mar 2019 20:34:53 +0000 (13:34 -0700)]
Archive crossgen comparison job results even if job fails

5 years agoUpdate dependencies from https://github.com/dotnet/corefx build 20190313.10 (#23255)
dotnet-maestro[bot] [Thu, 14 Mar 2019 16:02:17 +0000 (09:02 -0700)]
Update dependencies from https://github.com/dotnet/corefx build 20190313.10 (#23255)

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19163.10
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19163.10

5 years agoMerge pull request #23203 from janvorli/fix-no-return-false-positives
Jan Vorlicek [Thu, 14 Mar 2019 09:22:44 +0000 (10:22 +0100)]
Merge pull request #23203 from janvorli/fix-no-return-false-positives

Fix no-return false positives in static analyzer build

5 years agoDelete suspicious code in delegate construction (#22830)
Michal Strehovský [Thu, 14 Mar 2019 08:33:59 +0000 (09:33 +0100)]
Delete suspicious code in delegate construction (#22830)

Delegate construction is trying to do some weird special casing around closed delegates to interface methods that is breaking non-virtual delegates to default interface methods. The special casing has suspicious comments indicating people didn't know why it's needed in the first place, so I'm going with a theory that it's a cargo cult (e.g. why the reasons specified in the comments don't apply to normal virtual methods?).

Fixes #22728.

5 years agoDisable tracing/inducedgc test on all Unix platforms (#23240)
Sung Yoon Whang [Thu, 14 Mar 2019 02:42:28 +0000 (19:42 -0700)]
Disable tracing/inducedgc test on all Unix platforms (#23240)

* Disabling tracing/tracevalidation/inducedgc test on all unix

* Leave the exclusion list on arm64 there

5 years agoFix/clean compNoGCHelperCallKillSet for arm. (#23078)
Sergey Andreenko [Thu, 14 Mar 2019 01:31:27 +0000 (18:31 -0700)]
Fix/clean compNoGCHelperCallKillSet for arm. (#23078)

* Add an assert to compNoGCHelperCallKillSet.

That registers that lose GC or byref values also are in compHelperCallKillSet return set.

* Move compNoGCHelperCallKillSet from compiler to emitter.

* Rename `compNoGCHelperCallKillSet` to `emitGetGCRegsKilledByNoGCCall`.

* Fix GCRegsKill sets for arm CORINFO_HELP_PROF_FCN_ENTER and CORINFO_HELP_PROF_FCN_LEAVE.

5 years agoChoose the SString constructor explicitly
Sinan Kaya [Mon, 11 Mar 2019 17:58:42 +0000 (17:58 +0000)]
Choose the SString constructor explicitly

5 years agosignedness conversion
Sinan Kaya [Mon, 11 Mar 2019 18:12:01 +0000 (18:12 +0000)]
signedness conversion

5 years agofix conversion issues
Sinan Kaya [Mon, 11 Mar 2019 17:31:46 +0000 (17:31 +0000)]
fix conversion issues

5 years agoMerge pull request #23109 from briansull/gh-21231
Brian Sullivan [Thu, 14 Mar 2019 00:33:25 +0000 (17:33 -0700)]
Merge pull request #23109 from briansull/gh-21231

Fix for Issue 21231

5 years agoUpdate dependencies from https://github.com/dotnet/corefx build 20190312.12 (#23227)
dotnet-maestro[bot] [Thu, 14 Mar 2019 00:27:22 +0000 (17:27 -0700)]
Update dependencies from https://github.com/dotnet/corefx build 20190312.12 (#23227)

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19162.12
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19162.12

5 years agoAdd OperationStatus-based UTF8 transcoding APIs (#23219)
Levi Broderick [Wed, 13 Mar 2019 22:43:25 +0000 (15:43 -0700)]
Add OperationStatus-based UTF8 transcoding APIs (#23219)

5 years agoMerge pull request #23220 from BruceForstall/FixArm64HfaJmpCallNyi
Bruce Forstall [Wed, 13 Mar 2019 22:38:41 +0000 (15:38 -0700)]
Merge pull request #23220 from BruceForstall/FixArm64HfaJmpCallNyi

Arm64: Implement JMP call for HFA register arguments

5 years agoFix for Issue 21231
Brian Sullivan [Thu, 7 Mar 2019 22:20:44 +0000 (14:20 -0800)]
Fix for Issue 21231

When transferring a Zero offset from one GenTree node to another, we need to check if there already is a FieldSeq and append to it.
Added third parameter 'kind' to JitHashTable::Set, and Added enum SetKind
Only allow Set to overwrite an existing entry when kind is set to Overwrite.
Added validation for all calls to JitHashTable::Set
asserting that we don't expect the key to already exist or that we passed Overwrite indicating that we expect to handle it properly.

Added two test cases for Issue 21231

5 years agoRemove fixed sign tool version (#23182)
Juan Hoyos [Wed, 13 Mar 2019 21:39:25 +0000 (14:39 -0700)]
Remove fixed sign tool version (#23182)

5 years agoUpdate documentation: make docker images point to the registry. (#23243)
Juan Hoyos [Wed, 13 Mar 2019 21:38:41 +0000 (14:38 -0700)]
Update documentation: make docker images point to the registry. (#23243)

5 years agoFix SIMD handle issues (#23193)
Carol Eidt [Wed, 13 Mar 2019 21:26:51 +0000 (14:26 -0700)]
Fix SIMD handle issues (#23193)

* Fix SIMD handle issues

PR #23052 was overly aggressive at applying the provided class handle (which defaults to NO_CLASS_HANDLE). In addition, make a small change to `SIMDIntrinsicWiden`, as it doesn't need to go through the complexity of inferring a class handle when it already exists on the node it's duplicating.

Fix #23159

5 years agoMerge pull request #23212 from CarolEidt/VectorABITest
Carol Eidt [Wed, 13 Mar 2019 21:19:17 +0000 (14:19 -0700)]
Merge pull request #23212 from CarolEidt/VectorABITest

Preliminary Vector ABI test

5 years agoexclude tracing/keyword/TwoKeywords/TwoKeywords on WIndows x86. (#23237)
Sergey Andreenko [Wed, 13 Mar 2019 20:08:38 +0000 (13:08 -0700)]
exclude tracing/keyword/TwoKeywords/TwoKeywords on WIndows x86. (#23237)

5 years agoMerge pull request #23236 from jcagme/updateOptimizationUrl
JC Aguilera [Wed, 13 Mar 2019 19:59:46 +0000 (12:59 -0700)]
Merge pull request #23236 from jcagme/updateOptimizationUrl

Update optimization repo url

5 years agoUpdate optimization repo url
juanam [Wed, 13 Mar 2019 19:52:54 +0000 (12:52 -0700)]
Update optimization repo url

5 years agoFix missed RelocatedType annotation
Michal Strehovsky [Wed, 13 Mar 2019 12:30:44 +0000 (05:30 -0700)]
Fix missed RelocatedType annotation

[tfs-changeset: 1735855]

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
5 years agoEnable FeatureDefaultInterfaces unconditionally (#23225)
Michal Strehovský [Wed, 13 Mar 2019 18:50:13 +0000 (19:50 +0100)]
Enable FeatureDefaultInterfaces unconditionally (#23225)

Fixes #22940.

5 years agoFix issue 23151 (Cleanup TODO introduced by PR #23148)
Andrew Au [Wed, 13 Mar 2019 16:56:41 +0000 (09:56 -0700)]
Fix issue 23151 (Cleanup TODO introduced by PR #23148)

5 years agoAdd new counter APIs (#23077)
Sung Yoon Whang [Wed, 13 Mar 2019 08:10:35 +0000 (01:10 -0700)]
Add new counter APIs (#23077)

* Refactor EventCounter and add PollingCounter

* Add PollingCounter

* Add IncrementingEventCounter and IncrementingPollingCounter

* Add MetaData API to Counters

* Some more refactoring

* removing commented out code

* some more cleanup

* build fix and addressing some PR comments

* Addressing PR feedback

* use StringBuilder to generate metadata string

5 years agoDefault Interface COM testing project (#23195)
Aaron Robinson [Wed, 13 Mar 2019 03:34:45 +0000 (20:34 -0700)]
Default Interface COM testing project (#23195)

* Add tests for native COM client consuming managed COM server that
  consumes interfaces with default implementation.

5 years agoUpdate dependencies from https://github.com/dotnet/corefx build 20190311.10 (#23205)
dotnet-maestro[bot] [Wed, 13 Mar 2019 02:43:08 +0000 (19:43 -0700)]
Update dependencies from https://github.com/dotnet/corefx build 20190311.10 (#23205)

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19161.10
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19161.10

5 years agoArm64: Implement JMP call for HFA register arguments
Bruce Forstall [Sat, 9 Mar 2019 01:58:54 +0000 (17:58 -0800)]
Arm64: Implement JMP call for HFA register arguments

Add the code to load up HFA register arguments into their correct registers
before a JMP call.

Removes remaining NYI.

Fixes #23147

Add a test case with several variants of HFA and JMP call.

5 years agoMove ANALYZER_NORETURN after function return type.
Jan Vorlicek [Wed, 13 Mar 2019 00:07:00 +0000 (01:07 +0100)]
Move ANALYZER_NORETURN after function return type.

GCC doesn't like attributes before the extern keyword.

5 years agoDon't retain modifiers for instantation stub signatures (#23210)
Andy Ayers [Tue, 12 Mar 2019 23:46:24 +0000 (16:46 -0700)]
Don't retain modifiers for instantation stub signatures (#23210)

`ConvToJitSig` is not expecting to see modifiers for return types in sigs,
so don't bother preserving them when creating instantiation stubs.

This comes up for instantiation stubs for methods of `ReadOnlySpan<T>`.

Also, if we are preserving modifiers in a sig, make sure to prefix their type
handles with `ELEM_TYPE_INTERNAL`.

Fixes #23136.

5 years agoFixing a couple of issues in the Utf8Parsing/Formatting code (#23134)
Tanner Gooding [Tue, 12 Mar 2019 21:29:38 +0000 (14:29 -0700)]
Fixing a couple of issues in the Utf8Parsing/Formatting code (#23134)

* Fixing NumberToSingle and NumberToDouble to handle DigitsCount == 0

* Fixing Utf8Formatter.Float to transcode non ASCII bytes

* Responding to PR feedback

5 years agoPreliminary Vector ABI test
Carol Eidt [Tue, 12 Mar 2019 18:28:10 +0000 (11:28 -0700)]
Preliminary Vector ABI test

5 years agoFix syntax bug: bash requires spaces around brackets for tests (#23017)
John Salem [Tue, 12 Mar 2019 16:39:50 +0000 (09:39 -0700)]
Fix syntax bug: bash requires spaces around brackets for tests (#23017)

5 years ago[master] Update dependencies from dotnet/core-setup (#23165)
dotnet-maestro[bot] [Tue, 12 Mar 2019 05:38:22 +0000 (22:38 -0700)]
[master] Update dependencies from dotnet/core-setup (#23165)

* Update dependencies from https://github.com/dotnet/core-setup build 20190311.01

This change updates the following dependencies
- Microsoft.NETCore.App - 3.0.0-preview4-27511-01

5 years agoFix issue 21089 (Add tests for the `EventPipe support for "Parameters"` feature.)
Andrew Au [Fri, 1 Mar 2019 18:12:48 +0000 (10:12 -0800)]
Fix issue 21089 (Add tests for the `EventPipe support for "Parameters"` feature.)

5 years agoReplace Delegate.CreateDelegate (dotnet/corert#7147)
Michal Strehovský [Mon, 11 Mar 2019 20:57:29 +0000 (21:57 +0100)]
Replace Delegate.CreateDelegate (dotnet/corert#7147)

Replacing this with a pattern that is easier to statically analyze. We use the GetType/GetMethod/CreateDelegate pattern in several places already.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
5 years agoMerge pull request #23141 from CarolEidt/Fix23059
Carol Eidt [Mon, 11 Mar 2019 23:11:50 +0000 (16:11 -0700)]
Merge pull request #23141 from CarolEidt/Fix23059

Fix handling of struct setup assignments

5 years ago[master] Update dependencies from dotnet/arcade (#23169)
dotnet-maestro[bot] [Mon, 11 Mar 2019 21:01:05 +0000 (14:01 -0700)]
[master] Update dependencies from dotnet/arcade (#23169)

* Update dependencies from https://github.com/dotnet/arcade build 20190310.1

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19160.1
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19160.1

* Update dependencies from https://github.com/dotnet/arcade build 20190310.2

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19160.2
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19160.2

5 years agoFix NRE in EqualStringArrays (#23174)
Hugh Bellamy [Mon, 11 Mar 2019 20:59:13 +0000 (20:59 +0000)]
Fix NRE in EqualStringArrays (#23174)

5 years ago[master] Update dependencies from dotnet/corefx (#23170)
dotnet-maestro[bot] [Mon, 11 Mar 2019 20:58:36 +0000 (13:58 -0700)]
[master] Update dependencies from dotnet/corefx (#23170)

* Update dependencies from https://github.com/dotnet/corefx build 20190310.5

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19160.5
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19160.5

* Update dependencies from https://github.com/dotnet/corefx build 20190310.8

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19160.8
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19160.8

5 years agoFix bad test (#23173)
Michal Strehovský [Mon, 11 Mar 2019 20:58:20 +0000 (21:58 +0100)]
Fix bad test (#23173)

The test was testing that a non-virtual call to an abstract method that is methodimpl on the same type will land in the methodimpl. This behavior is not specced and cannot be hit with any mainstream .NET languages. We are making non-virtual calls to abstract methods throw a BadImageFormatException instead.

Fixes #23096.

5 years agoMerge pull request #23187 from BruceForstall/AlwaysArchiveCoreFxTestResultsXml
Bruce Forstall [Mon, 11 Mar 2019 20:36:45 +0000 (13:36 -0700)]
Merge pull request #23187 from BruceForstall/AlwaysArchiveCoreFxTestResultsXml

Always archive corefx testresults.xml files

5 years agoAlways archive corefx testresults.xml files
Bruce Forstall [Mon, 11 Mar 2019 20:10:43 +0000 (13:10 -0700)]
Always archive corefx testresults.xml files

These were only being archived for successful runs, which is
when they are the least interesting. Archive them for all test runs.

5 years agoFix no-return false positives in static analyzer build
Jan Vorlicek [Mon, 11 Mar 2019 16:49:05 +0000 (09:49 -0700)]
Fix no-return false positives in static analyzer build

There were about 800 false positive issues in the clang status analyzer
build caused by the fact that various forms of asserts were not considered
by the analyzer as not returning.

This change adds __attribute__((analyzer_noreturn)) (wrapped in a macro) to
those assertion functions.

5 years agoAdd EntryPointFilter option (#23054)
Steve MacLean [Mon, 11 Mar 2019 16:26:57 +0000 (12:26 -0400)]
Add EntryPointFilter option (#23054)

* Add EntryPointFilter

5 years agoAdd a target to get native resources from another DLL to ILProj SDK (#23117)
Eric StJohn [Mon, 11 Mar 2019 15:53:46 +0000 (08:53 -0700)]
Add a target to get native resources from another DLL to ILProj SDK (#23117)

We use a similar target in CoreFx and I'll need it for another project that is planning on
using this SDK.

When ILResourceReference it will be disassembled to get native resources (EG: fileversion)
to pass to ILasm.

If ILResourceReference is not specified then it does nothing.

5 years agoRemove 2 suffix step 1 (dotnet/corefx#35904)
Dan Moseley [Sat, 9 Mar 2019 21:54:04 +0000 (13:54 -0800)]
Remove 2 suffix step 1 (dotnet/corefx#35904)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
5 years agoMerge pull request #23093 from franksinankaya/gcc_warnings_9
Jan Vorlicek [Mon, 11 Mar 2019 15:08:50 +0000 (16:08 +0100)]
Merge pull request #23093 from franksinankaya/gcc_warnings_9

GCC Signed compare and Narrowing warnings

5 years agoMerge pull request #23111 from am11/gcc-configuration
Jan Vorlicek [Mon, 11 Mar 2019 13:59:27 +0000 (14:59 +0100)]
Merge pull request #23111 from am11/gcc-configuration

Improve gcc configuration

5 years agoMerge pull request #23099 from janvorli/remove-pal-cleanup
Jan Vorlicek [Mon, 11 Mar 2019 12:23:25 +0000 (13:23 +0100)]
Merge pull request #23099 from janvorli/remove-pal-cleanup

Remove init_count zeroing from PAL cleanup at process exit

5 years agoMerge pull request #23121 from janvorli/enable-clang-staticanalyzer-build
Jan Vorlicek [Mon, 11 Mar 2019 11:08:26 +0000 (12:08 +0100)]
Merge pull request #23121 from janvorli/enable-clang-staticanalyzer-build

Enable build with clang static analyzer

5 years agoRemove conditions around CMAKE_REQUIRED_LIBRARIES
Adeel [Mon, 11 Mar 2019 09:38:32 +0000 (02:38 -0700)]
Remove conditions around CMAKE_REQUIRED_LIBRARIES

5 years agoRefactor Encoding to split fast-path and fallback logic (#23098)
Levi Broderick [Mon, 11 Mar 2019 04:40:27 +0000 (21:40 -0700)]
Refactor Encoding to split fast-path and fallback logic (#23098)

This refactoring is limited to ASCIIEncoding at the moment, but it can easily be applied to UTF-8 / UTF-16 / UTF-32.

High-level changes:
- Fallback logic has been split from the fast-path, improving performance of GetBytes and similar routines.
- All of the plumbing of when to invoke the fallback logic and how to manage leftover data has been moved into the base class.
- Almost all of the logic except for the fast-path is now written in terms of verifiable code (Span and ReadOnlySpan).
- Minor bug fixes in EncoderNLS.Convert (see https://github.com/dotnet/coreclr/issues/23020).

5 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20190309.2 (#23163)
dotnet-maestro[bot] [Sun, 10 Mar 2019 16:17:48 +0000 (09:17 -0700)]
Update dependencies from https://github.com/dotnet/arcade build 20190309.2 (#23163)

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19159.2
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19159.2

5 years agoUpdate dependencies from https://github.com/dotnet/corefx build 20190310.1 (#23164)
dotnet-maestro[bot] [Sun, 10 Mar 2019 16:17:35 +0000 (09:17 -0700)]
Update dependencies from https://github.com/dotnet/corefx build 20190310.1 (#23164)

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19160.1
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19160.1

5 years agoUpdate dependencies from https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet...
dotnet-maestro[bot] [Sun, 10 Mar 2019 12:22:47 +0000 (05:22 -0700)]
Update dependencies from https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-optimization build 20190308.5 (#23156)

This change updates the following dependencies
- optimization.IBC.CoreCLR - 99.99.99-master-20190308.5
- optimization.PGO.CoreCLR - 99.99.99-master-20190308.5

5 years agoUpdate dependencies from https://github.com/dotnet/corefx build 20190308.7 (#23154)
dotnet-maestro[bot] [Sun, 10 Mar 2019 01:03:48 +0000 (17:03 -0800)]
Update dependencies from https://github.com/dotnet/corefx build 20190308.7 (#23154)

This change updates the following dependencies
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19158.7
- Microsoft.Private.CoreFx.NETCoreApp - 4.6.0-preview4.19158.7

5 years agoUpdate dependencies from https://github.com/dotnet/core-setup build 20190308.16 ...
dotnet-maestro[bot] [Sat, 9 Mar 2019 21:58:04 +0000 (13:58 -0800)]
Update dependencies from https://github.com/dotnet/core-setup build 20190308.16 (#23155)

This change updates the following dependencies
- Microsoft.NETCore.App - 3.0.0-preview4-27508-16

5 years agoMove Buffer to shared (#23157)
Egor Bogatov [Sat, 9 Mar 2019 21:55:43 +0000 (00:55 +0300)]
Move Buffer to shared (#23157)

5 years agoTwo more instances
Andrew Au [Sat, 9 Mar 2019 00:07:39 +0000 (16:07 -0800)]
Two more instances

5 years agoEliminate SampleProfilerEventInstance
Andrew Au [Fri, 8 Mar 2019 23:13:58 +0000 (15:13 -0800)]
Eliminate SampleProfilerEventInstance

5 years agoAvoid StackWalk in EventPipeEventInstance constructor
Andrew Au [Sat, 9 Mar 2019 00:00:36 +0000 (16:00 -0800)]
Avoid StackWalk in EventPipeEventInstance constructor