platform/upstream/dotnet/runtime.git
3 years agoFix resolve root IServiceProvider (#45171)
Vadim Galaktionov [Fri, 4 Dec 2020 13:04:46 +0000 (16:04 +0300)]
Fix resolve root IServiceProvider (#45171)

3 years agoBreaking change: Throw when resolving on a disposed service provider (#45116)
Maryam Ariyan [Fri, 4 Dec 2020 13:01:36 +0000 (05:01 -0800)]
Breaking change: Throw when resolving on a disposed service provider (#45116)

3 years agoAdd documentation on how to disable runtime tests (#45578)
Juan Hoyos [Fri, 4 Dec 2020 05:18:02 +0000 (21:18 -0800)]
Add documentation on how to disable runtime tests (#45578)

* Update pr-guide.md

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
3 years agoReturn the result of PAL_InjectActivation in Thread::InjectGcSuspension (#44731)
Ilia [Fri, 4 Dec 2020 04:50:12 +0000 (07:50 +0300)]
Return the result of PAL_InjectActivation in Thread::InjectGcSuspension (#44731)

3 years agoDocument Compilation Options and Compilation Metadata References CDIs (#37605)
Tomáš Matoušek [Fri, 4 Dec 2020 04:46:50 +0000 (20:46 -0800)]
Document Compilation Options and Compilation Metadata References CDIs (#37605)

3 years agoAdd Tuple-based Math.DivRem overloads (#45074)
Egor Bogatov [Fri, 4 Dec 2020 04:39:33 +0000 (07:39 +0300)]
Add Tuple-based Math.DivRem overloads (#45074)

* Add Tuple-based Math.DivRem overloads

* Remove internal versions of Math.DivRem

* Add AggressiveInlining

* Add comments

Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years agoFix location of JIT-EE version GUID (#45574)
Bruce Forstall [Fri, 4 Dec 2020 04:34:36 +0000 (20:34 -0800)]
Fix location of JIT-EE version GUID (#45574)

With #45044 it moved from corinfo.h to jiteeversionguid.h

3 years agoUpdate UnmanagedCallersOnly tests to not emit IL (#45572)
Jeremy Koritzinsky [Fri, 4 Dec 2020 04:16:27 +0000 (20:16 -0800)]
Update UnmanagedCallersOnly tests to not emit IL (#45572)

* Update UnmanagedCallersOnly tests to emit IL only when needed.

* Move last test into IL and delete test that uses invalid IL that only RefEmit can handle.

3 years agoMake BinderEventListener not listen to TplEventSource (#45570)
Sung Yoon Whang [Fri, 4 Dec 2020 03:59:57 +0000 (19:59 -0800)]
Make BinderEventListener not listen to TplEventSource (#45570)

* Make BinderEventListener not listen to TplEventSource

* Remove TasksFlowActivityIds definition

Co-authored-by: Juan Hoyos <juan.hoyos@microsoft.com>
3 years agoXmlSerializer.Serialize doesn't work when using TrimMode=link (#44772)
Eric Erhardt [Fri, 4 Dec 2020 02:14:14 +0000 (20:14 -0600)]
XmlSerializer.Serialize doesn't work when using TrimMode=link (#44772)

* XmlSerializer.Serialize doesn't work when using TrimMode=link

Make XmlSerializer work correctly with ILLinker trimming.

1. Use constant BindingFlags to work around https://github.com/mono/linker/issues/1617
2. Annotate CodeGenerator.CreateTypeBuilder correctly to preserve base class members

Fix #41389

* Update ILLinker suppressions file.

* PR feedback.

Fix ILLinker suppresions.

3 years agoSuperPMI collection pipeline: fix location of JIT-EE version GUID (#45576)
Bruce Forstall [Fri, 4 Dec 2020 01:16:10 +0000 (17:16 -0800)]
SuperPMI collection pipeline: fix location of JIT-EE version GUID (#45576)

With #45044 it moved from corinfo.h to jiteeversionguid.h

3 years agoVarious fixes in Microsoft.NETCore.App packs (#45566)
Jeremy Koritzinsky [Fri, 4 Dec 2020 00:06:23 +0000 (16:06 -0800)]
Various fixes in Microsoft.NETCore.App packs (#45566)

3 years agoUpgrade StyleCopAnalyzers to v1.2.0-beta.261 (#45562)
xtqqczze [Fri, 4 Dec 2020 00:02:32 +0000 (00:02 +0000)]
Upgrade StyleCopAnalyzers to v1.2.0-beta.261 (#45562)

* Upgrade StyleCopAnalyzers to v1.2.0-beta.261

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/releases/tag/1.2.0-beta.261

* Disable SA1142

* Enable SA1142 except in tests

3 years agoFix dependency for test assets on musl test runs (#45567)
Santiago Fernandez Madero [Thu, 3 Dec 2020 23:02:21 +0000 (15:02 -0800)]
Fix dependency for test assets on musl test runs (#45567)

* Fix dependency for test assets on musl test runs

* Use testOsSubGroup on dependency

3 years agoDisable Long Running JSON tests on Checked CoreCLR (#45505)
Santiago Fernandez Madero [Thu, 3 Dec 2020 22:39:39 +0000 (14:39 -0800)]
Disable Long Running JSON tests on Checked CoreCLR (#45505)

* Disable Long Running JSON tests on Checked CoreCLR

* PR Feedback

3 years agoDon't emit type fixups for primitive types in Crossgen2 (#45555)
Jan Vorlicek [Thu, 3 Dec 2020 21:34:47 +0000 (22:34 +0100)]
Don't emit type fixups for primitive types in Crossgen2 (#45555)

We were emitting fixups for primitive types like bool, void, etc. These
are not necessary as all of these types are always loaded and so it was
just a waste of R2R file space.

This change blocks generating fixups for those.

3 years agoRemoved Serialization tests for SQLClient types (#42016)
Yujin Lee [Thu, 3 Dec 2020 21:16:16 +0000 (06:16 +0900)]
Removed Serialization tests for SQLClient types (#42016)

* Remove Serialization tests for SQLClient types

* Deleted reference to System.Data.SqlClient

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
3 years agoFix covariant returns with generic return types (#45275)
Jan Vorlicek [Thu, 3 Dec 2020 20:38:32 +0000 (21:38 +0100)]
Fix covariant returns with generic return types (#45275)

* Fix covariant returns with generic return types

When a covariant return type was an uninstantiated generic type, the
ClassLoader::IsCompatibleWith was not working properly. In debug builds,
it was asserting because there was no MethodTable for that type and in
release builds, it resulted in ExecutionEngineException or an internal
CLR error.

This change fixes it by using TypeHandle::CanCastTo instead of
MethodTable::CanCastTo and adds a regression test for two cases where
the problem was observed (Assembly.GetTypes() and creating an instance
of a type with a covariant return with a problematic kind of type).

* Fix issue 45082 too

There were two issues. First, the
ClassLoader::ValidateMethodsWithCovariantReturnTypes was called before
typeHnd.DoFullyLoad and that resulted in an assert down the call chain
of TypeDesc::CanCastTo due to a wrong load level.
Second, the SigTypeContext generation for the current MD in the
ClassLoader::ValidateMethodsWithCovariantReturnTypes requires the same
change for class instantiation as the one that we had for the parent MD.

* Fix the issue 45082 in a correct way

The call to ClassLoader::ValidateMethodsWithCovariantReturnTypes is now
in MethodTable::DoFullyLoad.
I have also added a test case that verifies a case that David Wrighton
has suggested offline, where there are 3 types... A, B and C.
C derives from B which derives from A. B has a bad override which
should produce an error.  Then, cause C to be fully loaded without
otherwise triggering a load of B.

3 years agoRemove FEATURE_COMPILED_XSL define (#45553)
Eric Erhardt [Thu, 3 Dec 2020 20:34:52 +0000 (14:34 -0600)]
Remove FEATURE_COMPILED_XSL define (#45553)

* Remove FEATURE_COMPILED_XSL define

This is always defined, so there is no need in this define. In the past, it was not defined for UAP builds.

* Remove unused resource

3 years agoMove return buffer handling from interop to the JIT (#39294)
Jeremy Koritzinsky [Thu, 3 Dec 2020 19:58:19 +0000 (11:58 -0800)]
Move return buffer handling from interop to the JIT (#39294)

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Carol Eidt <carol.eidt@microsoft.com>
Co-authored-by: Sergey Andreenko <seandree@microsoft.com>
Co-authored-by: Andy Ayers <andya@microsoft.com>
3 years agoUpdate first-class-structs.md (#45512)
Carol Eidt [Thu, 3 Dec 2020 19:15:40 +0000 (11:15 -0800)]
Update first-class-structs.md (#45512)

* Update first-class-structs.md

* Address feedback and add links to x64 vector ABI branches

3 years agoAdds support for testing tvOS (#45043)
Steve Pfister [Thu, 3 Dec 2020 18:29:31 +0000 (13:29 -0500)]
Adds support for testing tvOS (#45043)

XHarness already supports tvOS as a target, so this change supplies the right info

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
3 years ago[master] Update dependencies from dotnet/xharness dotnet/runtime-assets dotnet/arcade...
dotnet-maestro[bot] [Thu, 3 Dec 2020 16:39:12 +0000 (16:39 +0000)]
[master] Update dependencies from dotnet/xharness dotnet/runtime-assets dotnet/arcade (#45487)

[master] Update dependencies from dotnet/xharness dotnet/runtime-assets dotnet/arcade

3 years agoCorrectly apply EventSourceSupport feature switch to NativeRuntimeEventSource (#43602)
Vitek Karas [Thu, 3 Dec 2020 15:21:22 +0000 (07:21 -0800)]
Correctly apply EventSourceSupport feature switch to NativeRuntimeEventSource (#43602)

`NativeRuntimeEventSource.Process` is called from native code in CoreCLR and as such is rooted in the descriptor. But if event source is disabled via feature switch it should not do anything.

3 years ago[runtime] Avoid checking for hardened runtime on ios, its not needed, and it causes...
monojenkins [Thu, 3 Dec 2020 13:05:25 +0000 (08:05 -0500)]
[runtime] Avoid checking for hardened runtime on ios, its not needed, and it causes alerts because of PROT_WRITE|PROT_EXEC. (#45514)

Co-authored-by: vargaz <vargaz@users.noreply.github.com>
3 years agoFix issue 45091 (#45409)
Peter Sollich [Thu, 3 Dec 2020 08:25:08 +0000 (09:25 +0100)]
Fix issue 45091 (#45409)

Fix overeager call to Validate() - we should call this with a bDeep parameter of FALSE, because the pointers to other objects may not be valid yet, if these other objects have not yet been copied.

Note this issue will only repro if HEAPVERIFY_GC is on - otherwise we won't attempt to verify pointers to other objects.

3 years agoTemporarily disable Mono Desktop Windows Release x64 (#45529)
Juan Hoyos [Thu, 3 Dec 2020 07:45:00 +0000 (23:45 -0800)]
Temporarily disable Mono Desktop Windows Release x64 (#45529)

3 years agoDisableFileSystemWatcherTest (#45511)
Santiago Fernandez Madero [Thu, 3 Dec 2020 05:52:07 +0000 (21:52 -0800)]
DisableFileSystemWatcherTest (#45511)

3 years agoRemove ActivatorUtilities_In_DependencyInjection #define
Eric Erhardt [Tue, 1 Dec 2020 22:28:36 +0000 (16:28 -0600)]
Remove ActivatorUtilities_In_DependencyInjection #define

3 years agoMove ActivatorUtilities from the Common directory to DI.Abstractions
Eric Erhardt [Tue, 1 Dec 2020 22:11:52 +0000 (16:11 -0600)]
Move ActivatorUtilities from the Common directory to DI.Abstractions

This is the only project in the repo that uses this file. There's no reason for it to be in the Common directory.

3 years agoFix continue on error conditions (#45519)
Santiago Fernandez Madero [Thu, 3 Dec 2020 02:33:11 +0000 (18:33 -0800)]
Fix continue on error conditions (#45519)

3 years agofix invalid IL in profiler stub helper (#45453)
David Mason [Thu, 3 Dec 2020 02:17:04 +0000 (18:17 -0800)]
fix invalid IL in profiler stub helper (#45453)

3 years agoFixes paths (#45392)
Andrew Au [Thu, 3 Dec 2020 01:59:50 +0000 (17:59 -0800)]
Fixes paths (#45392)

3 years agoFix IID for System.Runtime.InteropServices.ComTypes.IEnumSTATDATA (#45498)
Elinor Fung [Thu, 3 Dec 2020 01:33:19 +0000 (17:33 -0800)]
Fix IID for System.Runtime.InteropServices.ComTypes.IEnumSTATDATA (#45498)

3 years agoDelete unnecessary GetNativeHandle methods on reflection types (#45489)
Jan Kotas [Thu, 3 Dec 2020 01:32:14 +0000 (17:32 -0800)]
Delete unnecessary GetNativeHandle methods on reflection types (#45489)

They just return "this" for the most part

3 years agoWinHttpHandler: fix double -> uint conversions for ARM64 (#45480)
Anton Firszov [Thu, 3 Dec 2020 00:41:21 +0000 (01:41 +0100)]
WinHttpHandler: fix double -> uint conversions for ARM64 (#45480)

* extend ReceiveDataTimeout functional coverage

* fix double -> uint conversions

* more comments + remove 'unchecked'

* Comment suggestion

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Comment suggestion

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
3 years agoRemove an erroneous assert (#45495)
Andrew Au [Wed, 2 Dec 2020 23:45:17 +0000 (15:45 -0800)]
Remove an erroneous assert (#45495)

3 years agoRedirect default install location in test to avoid using machine-wide install (#45500)
Elinor Fung [Wed, 2 Dec 2020 22:30:57 +0000 (14:30 -0800)]
Redirect default install location in test to avoid using machine-wide install (#45500)

3 years agodisable restore in vs for projects targeting platform specific old frameworks (#44932)
Anirudh Agnihotry [Wed, 2 Dec 2020 22:18:52 +0000 (14:18 -0800)]
disable restore in vs for projects targeting platform specific old frameworks (#44932)

* disable vs restore in vs for projects targeting platform specific older frameworks

* Add infra to auto-update solution files for restore

* Add NuGet.config files for solutions affected by restore issue

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
3 years agoFix break in send-to-helix-inner.yml (#45502)
Santiago Fernandez Madero [Wed, 2 Dec 2020 21:28:52 +0000 (13:28 -0800)]
Fix break in send-to-helix-inner.yml (#45502)

3 years agoUse the updated URL for FabricBot (#45499)
Jeff Handley [Wed, 2 Dec 2020 20:43:50 +0000 (12:43 -0800)]
Use the updated URL for FabricBot (#45499)

And fix a couple of formatting nits while editing (removing commas between owners, and aligning table spacing)

3 years agoFix Write_DataReadFromDesiredOffset test (#45477)
Stephen Toub [Wed, 2 Dec 2020 19:04:16 +0000 (14:04 -0500)]
Fix Write_DataReadFromDesiredOffset test (#45477)

(Already failing on my goal not to submit PRs while on vacation, but I wanted to help squash this test failure taking out multiple PRs.)

Sporadic null reference exceptions were occurring in CI as part of GZipStream.Dispose.  The call to writeable.Dispose in the writing task can race with the invisible writeable.Dispose that happens as part of the disposal at the end of the block, due to the earlier using statement.  If the writeable.Dispose in the task nulls out the _deflateStream inside of the GZipStream after the implicit Dispose has checked for null but before it calls Dispose on the field, it'll null ref.  The fix is simple and something that should have been there anyway: explicitly wait for the writing task to complete, which guarantees the implicit disposal won't race with the explicit one.

3 years agoIncrease Mac outerloop timeout for AzDO job (#45490)
Matt Galbraith [Wed, 2 Dec 2020 18:54:51 +0000 (10:54 -0800)]
Increase Mac outerloop timeout for AzDO job (#45490)

As seen in https://dnceng.visualstudio.com/public/_build/results?buildId=905703&view=logs&j=8580ecfb-912a-5dbd-35ce-e64d0d51ddbf, OSX test runs can get cancelled as little as 12 minutes before they would have finished (timed out job in question started at 2020-12-02 13:38:06.9640000, finished  2020-12-02 14:59:19.2760000, but the job was cancelled at 2020-12-02T14:48:29.3981590Z.

3 years agoA small jit changes for Arm64 apple. (#45461)
Sergey Andreenko [Wed, 2 Dec 2020 18:38:25 +0000 (10:38 -0800)]
A small jit changes for Arm64 apple. (#45461)

* Expand the test.

* The jit change that slipped in branches and merges.

3 years agoAdd OSX arm64 jit. (#45467)
Sergey Andreenko [Wed, 2 Dec 2020 18:24:15 +0000 (10:24 -0800)]
Add OSX arm64 jit. (#45467)

* CMake changes.

* use unix_osx.

3 years agoUse jit interface thunkgen tech for more files (#45044)
David Wrighton [Wed, 2 Dec 2020 18:02:32 +0000 (10:02 -0800)]
Use jit interface thunkgen tech for more files (#45044)

- Reduce the boilerplate logic when modifying the jit ee interface
 - 3 new files in superpmi are now autogenerated as well as 2 files in the jit directory are now autogenerated
- Reduce to only having one copy of the jit-ee interface guid

3 years agoRemove ResolveXHandle indirections (#45292)
Ben Adams [Wed, 2 Dec 2020 17:25:27 +0000 (17:25 +0000)]
Remove ResolveXHandle indirections (#45292)

* Remove internal redirection for RuntimeTypeHandle

* Remove internal redirection for RuntimeFieldHandle

* Remove internal redirection for RuntimeMethodHandle

* Add null token tests

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
3 years agoReduce CacheEntry size (#45410)
Adam Sitnik [Wed, 2 Dec 2020 17:04:26 +0000 (18:04 +0100)]
Reduce CacheEntry size (#45410)

* replace 3 boolean fields with one enum flag field

* use auto property for AbsoluteExpiration

* simplify the code by using expression bodies

* don't use internal fields of CacheEntry, the public properties are enough

* expose private methods of MemoryCache and replace the usage of delegates with dependency to MemoryCache

2 fields less for MemoryCache and three for every CacheEntry

3 years agoFix the EH-write thru scenario (#45248)
Kunal Pathak [Wed, 2 Dec 2020 16:53:37 +0000 (08:53 -0800)]
Fix the EH-write thru scenario (#45248)

* Fix the EH-write thru

* Fix condition for BBJ_THROW

* Proper fix

3 years agoFix deadlock in TestEventListener and re-enable ArrayPool DiagnosticEvent tests ...
Sung Yoon Whang [Wed, 2 Dec 2020 16:31:21 +0000 (08:31 -0800)]
Fix deadlock in TestEventListener and re-enable ArrayPool DiagnosticEvent tests (#45469)

* fix deadlock in TestEventListener

* re-enable disabled test

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years agoBump timeout for iOS CI jobs (#45484)
Alexander Köplinger [Wed, 2 Dec 2020 16:02:07 +0000 (17:02 +0100)]
Bump timeout for iOS CI jobs (#45484)

We've sometimes seen the job timeout on AzDO because the Helix queue got a little busy, bump the timeout to give it more breathing room.

3 years agoUpdates the RID graph to include Android 30 (#45442)
Steve Pfister [Wed, 2 Dec 2020 15:21:55 +0000 (10:21 -0500)]
Updates the RID graph to include Android 30 (#45442)

Fixes https://github.com/dotnet/runtime/issues/45438

3 years agoAdd Mono Windows x86 builds (#45434)
Alexander Köplinger [Wed, 2 Dec 2020 15:07:52 +0000 (16:07 +0100)]
Add Mono Windows x86 builds (#45434)

Also contains initial work to support arm/arm64 builds but those don't build yet.

3 years agoUpdate dependencies from https://github.com/dotnet/xharness build 20201201.1 (#45476)
dotnet-maestro[bot] [Wed, 2 Dec 2020 14:28:53 +0000 (14:28 +0000)]
Update dependencies from https://github.com/dotnet/xharness build 20201201.1 (#45476)

[master] Update dependencies from dotnet/xharness

3 years agoFix for R2RDumpTests nullref in composite mode (#45447)
Tomáš Rylek [Wed, 2 Dec 2020 12:44:57 +0000 (13:44 +0100)]
Fix for R2RDumpTests nullref in composite mode (#45447)

My original conjecture that the R2RDumpTests nullref crash in CG2
composite pipeline had the same cause as the libraries test
failures spotted over the weekend seems wrong. The R2RDumpTests
crash is a plain initialization issue:

In composite mode, native code for the entire framework gets
emitted into the special composite native image (CoreCLR test
scripting uses the name framework-r2r.dll for this image); the
individual component assemblies including SPC only act as holders
for the MSIL and forwarders to the native image.

For this reason, running R2RDumpTests to dump SPC in composite mode
yielded a library with zero native methods; thus we never entered
the conditional clause in EnsureMethods and _methods remained null.
I have reformulated the code by centralizing initialization of
both _instanceMethods and _methods in EnsureMethods.

Thanks

Tomas

3 years agoRemoved thread-safety from SequenceReader (#45437)
Günther Foidl [Wed, 2 Dec 2020 09:20:48 +0000 (10:20 +0100)]
Removed thread-safety from SequenceReader (#45437)

As it's a ref-struct and thus stack-only there's no need to have any guarantees for thread-safety and atomicity.

3 years agoChange AssemblyName formatting not to require static table of KVPs (#45418)
Marek Safar [Wed, 2 Dec 2020 08:41:45 +0000 (09:41 +0100)]
Change AssemblyName formatting not to require static table of KVPs (#45418)

* Change AssemblyName formatting not to require static table of KVPs
to do loop with span operations to replace single characters

Expanded test coverage to actually cover this odd behaviour

Realign the implementation with original code at
https://github.com/dotnet/runtime/blob/master/src/coreclr/src/binder/textualidentityparser.cpp#L690

3 years agoFix conditions to include suceeded on send to helix inner (#45432)
Santiago Fernandez Madero [Wed, 2 Dec 2020 07:17:54 +0000 (23:17 -0800)]
Fix conditions to include suceeded on send to helix inner (#45432)

* Fix conditions to include suceeded on send to helix inner

* Fix yaml syntax

3 years agoDisable DiagnosticEvent tests in arraypool (#45451)
Santiago Fernandez Madero [Wed, 2 Dec 2020 07:16:51 +0000 (23:16 -0800)]
Disable DiagnosticEvent tests in arraypool (#45451)

3 years ago[master] Update dependencies from mono/linker (#45108)
dotnet-maestro[bot] [Wed, 2 Dec 2020 03:12:57 +0000 (04:12 +0100)]
[master] Update dependencies from mono/linker (#45108)

* Update dependencies from https://github.com/mono/linker build 20201116.3

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20561.1 -> To Version 6.0.0-alpha.1.20566.3

* Update tools to 5.0 RTM which is now required by illinker

The update was forced for linker because of https://github.com/dotnet/arcade/pull/6547 automatic distribution. The same change were suppose to land in dotnet/runtime in https://github.com/dotnet/runtime/pull/44835 but was reverted with no explanation in https://github.com/dotnet/runtime/pull/44835/commits/6b863052d7ccae09bc0dd50755414efe29c04805

* Update dependencies from https://github.com/mono/linker build 20201130.1

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20561.1 -> To Version 6.0.0-alpha.1.20580.1

* Update dependencies from https://github.com/mono/linker build 20201130.2

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20561.1 -> To Version 6.0.0-alpha.1.20580.2

* Update dependencies from https://github.com/mono/linker build 20201130.3

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20561.1 -> To Version 6.0.0-alpha.1.20580.3

* Update dependencies from https://github.com/mono/linker build 20201130.4

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20561.1 -> To Version 6.0.0-alpha.1.20580.4

* Update dependencies from https://github.com/mono/linker build 20201130.5

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20561.1 -> To Version 6.0.0-alpha.1.20580.5

* Revert "Update tools to 5.0 RTM which is now required by illinker"

This reverts commit 9532380dd2ee77bf50c3834eb798d68447c97d85.

* Update dependencies from https://github.com/mono/linker build 20201201.1

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20561.1 -> To Version 6.0.0-alpha.1.20601.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Marek Safar <marek.safar@gmail.com>
3 years agoRemove ZipDownloadDisable for azdo artifacts download (#45427)
Santiago Fernandez Madero [Wed, 2 Dec 2020 02:10:22 +0000 (18:10 -0800)]
Remove ZipDownloadDisable for azdo artifacts download (#45427)

3 years ago[wasm] remove compile timezone data task (#45443)
Tammy Qiu [Wed, 2 Dec 2020 01:02:04 +0000 (20:02 -0500)]
[wasm] remove compile timezone data task (#45443)

* [wasm] remove compile timezone data task

* Bump runtime-assets dependency

* Fix merge conflict

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
3 years agoEnable rolling builds for staging pipeline and fail the build if any failure (#45430)
Santiago Fernandez Madero [Wed, 2 Dec 2020 00:28:09 +0000 (16:28 -0800)]
Enable rolling builds for staging pipeline and fail the build if any failure (#45430)

3 years agoHandle additional multireg args (#43870)
Carol Eidt [Wed, 2 Dec 2020 00:23:05 +0000 (16:23 -0800)]
Handle additional multireg args (#43870)

* Handle additional incoming multireg args

3 years ago[master] Update dependencies from dotnet/llvm-project dotnet/icu (#45412)
dotnet-maestro[bot] [Wed, 2 Dec 2020 00:08:33 +0000 (01:08 +0100)]
[master] Update dependencies from dotnet/llvm-project dotnet/icu (#45412)

* Update dependencies from https://github.com/dotnet/llvm-project build 20201130.1

runtime.osx.10.12-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools , runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools , runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk , runtime.osx.10.12-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk , runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools , runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk , runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools , runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk
 From Version 9.0.1-alpha.1.20573.1 -> To Version 9.0.1-alpha.1.20580.1

* Update dependencies from https://github.com/dotnet/icu build 20201130.2

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 6.0.0-alpha.1.20573.1 -> To Version 6.0.0-alpha.1.20580.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years agoFix Crossgen2 test concurrency on Windows (#45433)
Tomáš Rylek [Tue, 1 Dec 2020 23:17:23 +0000 (00:17 +0100)]
Fix Crossgen2 test concurrency on Windows (#45433)

In my previous attempt at fixing the test concurrency w.r.t. to
multiple "RunOnly" tests exercising the same "BuildAndRun"
executable compiled with Crossgen2,

https://github.com/dotnet/runtime/pull/44492

I have apparently used the wrong escaping in the batch (cmd)
version of the script so that the fix doesn't work on Windows.
This change is fixing this deficiency.

Thanks

Tomas

3 years ago[tests] Use correct output path when running with helix, so that the log (#45390)
Ankit Jain [Tue, 1 Dec 2020 22:59:03 +0000 (17:59 -0500)]
[tests] Use correct output path when running with helix, so that the log (#45390)

.. files get surfaced to azdo.

Thanks to @akoeplinger for the suggestion.

3 years agoSuppress StackTrace ILLinker warning in TryResolveStateMachineMethod (#45042)
Eric Erhardt [Tue, 1 Dec 2020 22:25:25 +0000 (16:25 -0600)]
Suppress StackTrace ILLinker warning in TryResolveStateMachineMethod (#45042)

3 years agoRemove dependency on PerfCounter.dll (#45142)
Eric StJohn [Tue, 1 Dec 2020 21:50:11 +0000 (13:50 -0800)]
Remove dependency on PerfCounter.dll (#45142)

* Remove dependency on PerfCounter.dll

This dependency was unnecessary and only for calling through to pdh.dll.

PerfCounter.dll is still needed for the consumption side of performance
counters, but removing from the dependency from the .NET can help enable
some scenarios like reading non-.NET counters.

* Update conditions on performance counter tests.

* Condition more perf counter tests

3 years agoUpdate lsra-detail.md (#45235)
Carol Eidt [Tue, 1 Dec 2020 13:58:38 +0000 (05:58 -0800)]
Update lsra-detail.md (#45235)

* Update lsra-detail.md

3 years agoReenable Mono Windows runtime build in runtime-official.yml (#45376)
Alexander Köplinger [Tue, 1 Dec 2020 11:29:39 +0000 (12:29 +0100)]
Reenable Mono Windows runtime build in runtime-official.yml (#45376)

The binary now includes the proper version header.

Fixes https://github.com/dotnet/runtime/issues/37503

3 years agoFix PlaintextStreamFilter for sync requests (#45388)
Stephen Toub [Tue, 1 Dec 2020 11:20:22 +0000 (06:20 -0500)]
Fix PlaintextStreamFilter for sync requests (#45388)

* Fix PlaintextStreamFilter for sync requests

As with ConnectCallback, make it usable for sync requests. Also:
- Consolidate blocking to the sync entry point where possible.
- Remove unnecessary async arguments
- Fix XxAsync naming on several methods

* Address PR feedback

3 years agoEnable the AsnXml build target on non-Windows.
Kevin Jones [Tue, 1 Dec 2020 06:45:37 +0000 (01:45 -0500)]
Enable the AsnXml build target on non-Windows.

Co-authored-by: Adeel Mujahid <adeelbm@outlook.com>
3 years agoMore MemoryCache perf improvements (#45280)
Adam Sitnik [Tue, 1 Dec 2020 05:56:23 +0000 (06:56 +0100)]
More MemoryCache perf improvements (#45280)

* don't acces expensive CacheEntryHelper.Current if options can't be propagated anyway, +20k RPS for TechEmpower benchmark!

* inline the hot paths, +7k RPS

* prefer .HasValue over null check for nullables, use better names for private helper methods

* if possible, avoid expensive CacheEntryHelper.Current access when adding cache entries

3 years agor0InUse should be true for SoftFP in CodeGen::genProfilingLeaveCallback in src/corecl...
Egor Chesakov [Tue, 1 Dec 2020 03:32:47 +0000 (19:32 -0800)]
r0InUse should be true for SoftFP in CodeGen::genProfilingLeaveCallback in src/coreclr/src/jit/codegenarm.cpp (#45377)

3 years agoUpdate Interop CRST dependency. (#45372)
Aaron Robinson [Tue, 1 Dec 2020 00:37:46 +0000 (16:37 -0800)]
Update Interop CRST dependency. (#45372)

Remove unused Remoting CRST.

3 years agoAdd staging pipeline to PRs (#45178)
Santiago Fernandez Madero [Mon, 30 Nov 2020 23:56:34 +0000 (15:56 -0800)]
Add staging pipeline to PRs (#45178)

* Add staging pipeline to PRs

* Condition extraSubsets parameter

3 years agoFix issue 45183 (#45307)
Brian Sullivan [Mon, 30 Nov 2020 23:25:43 +0000 (15:25 -0800)]
Fix issue 45183 (#45307)

Preserve the paramAttrs

3 years agoImprove R2RDump method diff (#45301)
Tomáš Rylek [Mon, 30 Nov 2020 22:56:22 +0000 (23:56 +0100)]
Improve R2RDump method diff (#45301)

Based on my investigation of System.Private.CoreLib size growth
after switching over to Crossgen2 I have used R2RDump to analyze
the differences and this is an initial set of improvements I made
to make the diff more useful. Most notably it introduces
a statistic summary of method sizes and counts that were previously
lost in the lengthy tables of individual methods.

Thanks

Tomas

3 years agoRemove NETStandard2.2 versions and product dependency (#43304)
Viktor Hofer [Mon, 30 Nov 2020 22:35:12 +0000 (23:35 +0100)]
Remove NETStandard2.2 versions and product dependency (#43304)

* Remove NetStandard2.2 versions and product dependency

3 years agoFix CSE print (#45314)
nathan-moore [Mon, 30 Nov 2020 22:21:06 +0000 (16:21 -0600)]
Fix CSE print (#45314)

3 years agoUpdate host-tracing.md (#45389)
Igor Velikorossov [Mon, 30 Nov 2020 22:12:13 +0000 (09:12 +1100)]
Update host-tracing.md (#45389)

3 years agoAdd two readonlys to IcuLocaleData.cs (#45367)
Stephen Toub [Mon, 30 Nov 2020 19:15:08 +0000 (14:15 -0500)]
Add two readonlys to IcuLocaleData.cs (#45367)

3 years agoAllow SocketsHttpHandler.ConnectCallback for sync requests (#45300)
Stephen Toub [Mon, 30 Nov 2020 18:52:01 +0000 (13:52 -0500)]
Allow SocketsHttpHandler.ConnectCallback for sync requests (#45300)

HTTP/1.1 support with sync requests currently doesn't work when a ConnectCallback is specified, even though a developer who wanted to make synchronous requests could provide a synchronously-completing callback.

This also consolidates the connect logic across sync/async, avoids an extra delegate, etc.

3 years agoMake the wasm sample csproj work on non-bash shells. (#45365)
Zoltan Varga [Mon, 30 Nov 2020 18:42:19 +0000 (13:42 -0500)]
Make the wasm sample csproj work on non-bash shells. (#45365)

3 years agoExplicitly check for arrays in Marshal.SizeOf impl. (#45227)
Jeremy Koritzinsky [Mon, 30 Nov 2020 18:34:01 +0000 (10:34 -0800)]
Explicitly check for arrays in Marshal.SizeOf impl. (#45227)

3 years agoIntegrate fixes from dotnet/runtimelab:feature/NativeAOT (#45305)
Jan Kotas [Mon, 30 Nov 2020 18:14:57 +0000 (10:14 -0800)]
Integrate fixes from dotnet/runtimelab:feature/NativeAOT (#45305)

3 years agoattempt to stabilize CopyToAsync_AllDataCopied_Large for Tls13 (#44741)
Tomas Weinfurt [Mon, 30 Nov 2020 17:23:37 +0000 (09:23 -0800)]
attempt to stabilize CopyToAsync_AllDataCopied_Large for Tls13 (#44741)

* attempt to stabilize CopyToAsync_AllDataCopied_Large for Tls13

* feedback from review

* swap streams back

* feedback from windows

* remove extra using

3 years agooptimize DateTimeOffset.UtcNow by removing redundant verification (#45281)
Adam Sitnik [Mon, 30 Nov 2020 17:05:00 +0000 (18:05 +0100)]
optimize DateTimeOffset.UtcNow by removing redundant verification (#45281)

* optimize DateTimeOffset.UtcNow by removing redundant verification, cuts 10% of time on Windows

* Update src/libraries/System.Private.CoreLib/src/System/DateTimeOffset.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years agoFix build on Alpine edge (#45352)
Jan Vorlicek [Mon, 30 Nov 2020 15:11:36 +0000 (16:11 +0100)]
Fix build on Alpine edge (#45352)

The atoll definition in the pal.h was leaking into the PAL implementation and
on Alpine edge, the difference in throws() classification was causing a build
break.

3 years agoUse AsSpan/AsMemory (start, length) (#45310)
xtqqczze [Mon, 30 Nov 2020 11:26:17 +0000 (11:26 +0000)]
Use AsSpan/AsMemory (start, length)  (#45310)

* Use AsSpan(start, length)

Replace `AsSpan().Slice(start, length)` with `AsSpan(start, length)`

* Use AsMemory(start, length)

Replace `AsMemory().Slice(start, length)` with `AsMemory(start, length)`

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years ago[master] Update dependencies from dotnet/xharness (#45263)
dotnet-maestro[bot] [Mon, 30 Nov 2020 09:14:54 +0000 (10:14 +0100)]
[master] Update dependencies from dotnet/xharness (#45263)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years agoOptimize storage of icu locale data (#45296)
Marek Safar [Mon, 30 Nov 2020 09:13:31 +0000 (10:13 +0100)]
Optimize storage of icu locale data (#45296)

* Optimize storage of icu locale data

to reduce SPC size by about 10k and avoid allocating huge string on the heap

Fixes #45129

* Formatting fixes

3 years agoRevert "Compile System.Private.CoreLib with Crossgen2 by default (#44618)" (#45320)
Stephen Toub [Mon, 30 Nov 2020 06:14:08 +0000 (01:14 -0500)]
Revert "Compile System.Private.CoreLib with Crossgen2 by default (#44618)" (#45320)

* Revert "Compile System.Private.CoreLib with Crossgen2 by default (#44618)"

This reverts commit b79e4d3cd24f76dd1bcb722f589327c827e66632.

* Add a change to ensure libraries are built/tested

3 years agoBump emscripten to 2.0.9. (#45299)
Zoltan Varga [Sun, 29 Nov 2020 01:54:28 +0000 (20:54 -0500)]
Bump emscripten to 2.0.9. (#45299)

3 years agoSupport R2RDump in framework compilation (#45288)
Tomáš Rylek [Sat, 28 Nov 2020 22:28:07 +0000 (23:28 +0100)]
Support R2RDump in framework compilation (#45288)

Previously, when --r2r-dump-path was specified, we only applied it
to test app compilations. This change adds support for R2RDump
in framework compilation too.

Thanks

Tomas

3 years agoPreserve UnmanagedCallersOnlyAttribute on mono, the runtime needs it, and it can...
Zoltan Varga [Sat, 28 Nov 2020 16:52:15 +0000 (11:52 -0500)]
Preserve UnmanagedCallersOnlyAttribute on mono, the runtime needs it, and it can be removed when using --used-attrs-only. (#45291)

3 years ago[Android] Implement AES-GCM,CCM and add pal_ssl (#44989)
Egor Bogatov [Sat, 28 Nov 2020 11:35:37 +0000 (14:35 +0300)]
[Android] Implement AES-GCM,CCM and add pal_ssl (#44989)

3 years agoFix stack size allocation during interpreter entry. (#45271)
Zoltan Varga [Fri, 27 Nov 2020 22:44:03 +0000 (17:44 -0500)]
Fix stack size allocation during interpreter entry. (#45271)

Fixes https://github.com/dotnet/runtime/issues/44270.

3 years agoCompile System.Private.CoreLib with Crossgen2 by default (#44618)
Tomáš Rylek [Fri, 27 Nov 2020 14:39:54 +0000 (15:39 +0100)]
Compile System.Private.CoreLib with Crossgen2 by default (#44618)

After I deleted the Utf8String-related experimental code from the
runtime repo per JanK's suggestion, I can now enable Crossgen2
compilation for System.Private.CoreLib by default.

Thanks

Tomas