platform/upstream/dotnet/runtime.git
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 11 Apr 2022 18:25:11 +0000 (18:25 +0000)]
Merge in 'release/6.0' changes

2 years agoAdd libssl3 dependency (#67705)
github-actions[bot] [Mon, 11 Apr 2022 18:08:58 +0000 (11:08 -0700)]
Add libssl3 dependency (#67705)

Co-authored-by: Nikola Milosavljevic <nikolam@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Wed, 6 Apr 2022 15:41:02 +0000 (15:41 +0000)]
Merge in 'release/6.0' changes

2 years agoimprove SslStream tests on server 2022 (#67240)
Natalia Kondratyeva [Wed, 6 Apr 2022 15:27:10 +0000 (17:27 +0200)]
improve SslStream tests on server 2022 (#67240)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Wed, 6 Apr 2022 00:17:51 +0000 (00:17 +0000)]
Merge in 'release/6.0' changes

2 years agoMove to Windows.10.Amd64.Server2022.ES.Open (#67054)
Elinor Fung [Wed, 6 Apr 2022 00:05:30 +0000 (17:05 -0700)]
Move to Windows.10.Amd64.Server2022.ES.Open (#67054)

2 years agoUpdate branding to 6.0.5 (#67615)
vseanreesermsft [Wed, 6 Apr 2022 00:03:57 +0000 (17:03 -0700)]
Update branding to 6.0.5 (#67615)

* Update branding to 6.0.5

* Remove GeneratePackageOnBuild from all projects which added it in 6.0.4

Co-authored-by: Eric StJohn <ericstj@microsoft.com>
2 years agoMerged PR 21497: [release/6.0] MSRC 68590 - newlines in domain literals
Tomas Weinfurt [Mon, 14 Mar 2022 16:20:56 +0000 (16:20 +0000)]
Merged PR 21497:  [release/6.0] MSRC 68590 - newlines in domain literals

This add validation for embedded newlines in email addresses.
Based on https://dev.azure.com/dnceng/internal/_git/dotnet-runtime/pullrequest/20738
There is opt-in System.Net.Mail.EnableFullDomainLiterals switch to allow previous behavior

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 14 Mar 2022 03:03:20 +0000 (03:03 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Update dependencies from dotnet/emsdk dotnet/arcade (#66144)
dotnet-maestro[bot] [Mon, 14 Mar 2022 02:46:09 +0000 (19:46 -0700)]
[release/6.0] Update dependencies from dotnet/emsdk dotnet/arcade (#66144)

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

Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
 From Version 2.5.1-beta.22107.2 -> To Version 2.5.1-beta.22122.7

* Update dependencies from https://github.com/dotnet/emsdk build 20220308.1

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.2 -> To Version 6.0.3

* Fix weird character problem

* Update dependencies from https://github.com/dotnet/emsdk build 20220308.2

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.2 -> To Version 6.0.4

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

Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
 From Version 2.5.1-beta.22107.2 -> To Version 2.5.1-beta.22159.8

* On run package validation for CSProj-built packages

This fixes an issue where a non-CSProj built package would load
MS.CA.dll , then a CSProj would try to load MS.CA.CS.dll of a different
version and it's MS.CA types would not agree with those already bound
to the task from previous load.

Further details:
https://github.com/dotnet/sdk/pull/22277

* Update dependencies from https://github.com/dotnet/emsdk build 20220311.2

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100 , Microsoft.NET.Workload.Emscripten.Manifest-6.0.200 , Microsoft.NET.Workload.Emscripten.Manifest-6.0.300
 From Version 6.0.4 -> To Version 6.0.4

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

Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
 From Version 2.5.1-beta.22107.2 -> To Version 2.5.1-beta.22161.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Fri, 11 Mar 2022 20:55:46 +0000 (20:55 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] update expected exception for cases when all requested TLS versions...
github-actions[bot] [Fri, 11 Mar 2022 20:51:44 +0000 (12:51 -0800)]
[release/6.0] update expected exception for cases when all requested TLS versions are disabled (#65046)

* update expected exception for cases when all requested TLS versions are disabled

* port test fix

Co-authored-by: wfurt <tweinfurt@yahoo.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
2 years agoImprove SSL platform detection (#64923) (#65054)
Tomas Weinfurt [Fri, 11 Mar 2022 20:42:03 +0000 (12:42 -0800)]
Improve SSL platform detection (#64923) (#65054)

* CI matrix change: add Windows Server 2022

* Add registry check for ssl3 - tls1.2 tests

* Disable TLS1.3 on framework code

* Fix typo

* revert queue change

Co-authored-by: Jan Jahoda <jajahoda@microsoft.com>
Co-authored-by: Jan Jahoda <jajahoda@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Fri, 11 Mar 2022 20:17:42 +0000 (20:17 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] improve SslStream tests on misconfigured systems (#65024)
github-actions[bot] [Fri, 11 Mar 2022 20:02:29 +0000 (12:02 -0800)]
[release/6.0] improve SslStream tests on misconfigured systems (#65024)

* improve SslStream tests on misconfigured systems

* feedback from review

Co-authored-by: wfurt <tweinfurt@yahoo.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Fri, 11 Mar 2022 19:34:39 +0000 (19:34 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Fix catching of generic exception in crossgened shared generic code...
github-actions[bot] [Fri, 11 Mar 2022 19:20:17 +0000 (11:20 -0800)]
[release/6.0] Fix catching of generic exception in crossgened shared generic code  (#66207)

* Add regression test for #66005

* Fix

* Update src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs

Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Fri, 11 Mar 2022 01:12:57 +0000 (01:12 +0000)]
Merge in 'release/6.0' changes

2 years agostabilize quic tests on server 2022 (#65097)
github-actions[bot] [Fri, 11 Mar 2022 01:07:35 +0000 (17:07 -0800)]
stabilize quic tests on server 2022 (#65097)

Co-authored-by: wfurt <tweinfurt@yahoo.com>
2 years ago[release/6.0] Run tests for internal azdo PRs (#65526)
Santiago Fernandez Madero [Fri, 11 Mar 2022 01:02:29 +0000 (17:02 -0800)]
[release/6.0] Run tests for internal azdo PRs (#65526)

* Run tests for internal azdo PRs

* PR Feedback

* Fix PGO jobs on official builds

We missed passing in the `isOfficialBuild` variable on the PGO jobs.

* Don't run upload-intermediate-artifacts-step.yml for PGO leg

* Fix .yml

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2 years agoDefine SystemReflectionMetadataLoadContextVersion property for package references...
Michael Simons [Fri, 11 Mar 2022 00:56:28 +0000 (18:56 -0600)]
Define SystemReflectionMetadataLoadContextVersion property for package references (#65614)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 23:17:50 +0000 (23:17 +0000)]
Merge in 'release/6.0' changes

2 years agoRID for Ubuntu 22.04 (#66225)
Tomas Weinfurt [Thu, 10 Mar 2022 23:05:01 +0000 (15:05 -0800)]
RID for Ubuntu 22.04 (#66225)

2 years agoFix compatibility with NTLM authentication to McAfee Web Gateway (#66315)
github-actions[bot] [Thu, 10 Mar 2022 23:03:28 +0000 (15:03 -0800)]
Fix compatibility with NTLM authentication to McAfee Web Gateway (#66315)

Co-authored-by: Filip Navara <navara@emclient.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 21:16:11 +0000 (21:16 +0000)]
Merge in 'release/6.0' changes

2 years agobackport of 66295 (#66301)
Thays Grazia [Thu, 10 Mar 2022 21:01:02 +0000 (18:01 -0300)]
backport of 66295 (#66301)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 20:48:45 +0000 (20:48 +0000)]
Merge in 'release/6.0' changes

2 years ago[monoapi] Add mono_method_get_unmanaged_callers_only_ftnptr (#66299)
Aleksey Kliger (λgeek) [Thu, 10 Mar 2022 20:44:48 +0000 (15:44 -0500)]
[monoapi] Add mono_method_get_unmanaged_callers_only_ftnptr (#66299)

Like `RuntimeMethodHandle.GetFunctionPointer`, but callable from native code

2 years agoRemove redundant allocations from JsonSerializerOptions.GetConverter calls (#65898)
Eirik Tsarpalis [Thu, 10 Mar 2022 20:42:32 +0000 (20:42 +0000)]
Remove redundant allocations from JsonSerializerOptions.GetConverter calls (#65898)

* Fix default converter reallocation on each call to JsonSerializerOptions.GetConverter

* ensure package is released

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 20:40:51 +0000 (20:40 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 20:39:10 +0000 (20:39 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 20:38:25 +0000 (20:38 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Fix Queryable-to-Enumerable overload mapping logic (#65857)
github-actions[bot] [Thu, 10 Mar 2022 20:37:58 +0000 (12:37 -0800)]
[release/6.0] Fix Queryable-to-Enumerable overload mapping logic (#65857)

* Fix Queryable-to-Enumerable overload mapping logic

* fix linker warnings

* address feedback

* use strict order when calculating maximal elements

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
2 years ago[release/6.0] Backport Fix PerformanceCounter's when running with Globalization Invar...
Tarek Mahmoud Sayed [Thu, 10 Mar 2022 20:36:32 +0000 (12:36 -0800)]
[release/6.0] Backport Fix PerformanceCounter's when running with Globalization Invariant Mode (#65537)

* [dotnet/runtime] Backport Fix PerformanceCounter's when running with Globalization Invariant Mode (PR #65414)

* Add GeneratePackageOnBuild & ServicingVersion project properties

2 years ago[release/6.0] [mono] Fix stacktrace from DIM (#65509)
Thays Grazia [Thu, 10 Mar 2022 20:35:27 +0000 (17:35 -0300)]
[release/6.0] [mono] Fix stacktrace from DIM (#65509)

* Backport of #60770 and #64566

* Fixing missing end line

2 years agoRemove OpenSSL error queue checking after initialization (#65501)
github-actions[bot] [Thu, 10 Mar 2022 20:35:03 +0000 (12:35 -0800)]
Remove OpenSSL error queue checking after initialization (#65501)

Co-authored-by: Radek Zikmund <r.zikmund.rz@gmail.com>
2 years ago[release/6.0] [Android] Workaround for invalid return value from clock_nanosleep...
Simon Rozsival [Thu, 10 Mar 2022 20:31:16 +0000 (21:31 +0100)]
[release/6.0] [Android] Workaround for invalid return value from clock_nanosleep (#65372)

* [Android] Workaround for invalid return value from clock_nanosleep (#64679)

There used to be a bug in Android libc implementation of `clock_nanosleep`. The return value should be `errno` on errors  but instead in it returns `-1` and sets `errno`. The libc (Bionic) bug [has been fixed](https://android-review.googlesource.com/c/platform/bionic/+/110652/) since Android 6 and newer but it causes problems to [customers who are unable to update Android on their devices](https://github.com/xamarin/xamarin-android/issues/6600#issuecomment-1026023654).

Fixes https://github.com/xamarin/xamarin-android/issues/6600

* Account for incorrect implementation of clock_nanosleep in older Android libc

* Shorten comments

* Add g_clock_nanosleep function

* Add remap definition

* Fix build

* Make sure the extra check runs only on Android

* Make Windows builds happy

* Try making wasm builds happy

* Fix leftover direct call to clock_nanosleep

2 years ago[mono] Fix r8->i conversion on amd64/arm64. (#65329)
github-actions[bot] [Thu, 10 Mar 2022 20:27:31 +0000 (12:27 -0800)]
[mono] Fix r8->i conversion on amd64/arm64. (#65329)

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

Co-authored-by: Zoltan Varga <vargaz@gmail.com>
2 years ago[mono][s390x] Fix OP_FCONV_TO_I and OP_RCONV_TO_I (#65328)
github-actions[bot] [Thu, 10 Mar 2022 20:23:58 +0000 (12:23 -0800)]
[mono][s390x] Fix OP_FCONV_TO_I and OP_RCONV_TO_I (#65328)

* OP_[FR]CONV_TO_I should result in an 8-byte integer

Co-authored-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2 years ago[release/6.0] vtable setup fix for generic default interface methods in mono runtime...
github-actions[bot] [Thu, 10 Mar 2022 20:23:37 +0000 (12:23 -0800)]
[release/6.0] vtable setup fix for generic default interface methods in mono runtime (#64754)

* vtable setup fix for generic default interface methods in mono runtime

When processing the overrides from interface default methods we should
check if the interface class is a generic type definition first and
inflate with the interface class context.

Test case included.

* Update test to ensure that the correct context is used

Co-authored-by: Bill Holmes <bill.holmes@unity3d.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 19:56:33 +0000 (19:56 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge pull request #66373 from steveisok/bump-manifest-band-300
Eric StJohn [Thu, 10 Mar 2022 19:41:23 +0000 (11:41 -0800)]
Merge pull request #66373 from steveisok/bump-manifest-band-300

[release/6.0] Bump runtime workload manifest to 300 / update emsdk dependency

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 18:44:31 +0000 (18:44 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge pull request #65330 from dotnet/backport/pr-65326-to-release/6.0
Eric StJohn [Thu, 10 Mar 2022 18:29:46 +0000 (10:29 -0800)]
Merge pull request #65330 from dotnet/backport/pr-65326-to-release/6.0

[release/6.0] Remove Unused Encoding on UriHelper

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Mar 2022 18:22:29 +0000 (18:22 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0][wasm] Backport skipping System.Text.Json tests for aot configuration...
Steve Pfister [Thu, 10 Mar 2022 18:05:45 +0000 (13:05 -0500)]
[release/6.0][wasm] Backport skipping System.Text.Json tests for aot configuration (#66366)

Partial backport of https://github.com/dotnet/runtime/pull/65413

https://github.com/dotnet/runtime/issues/61524 - OOM while linking `System.Text.Json.Tests`

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Wed, 9 Mar 2022 20:00:57 +0000 (20:00 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge pull request #66353 from vseanreesermsft/internal-merge-6.0-2022-03-08-1138
Eric StJohn [Wed, 9 Mar 2022 19:46:31 +0000 (11:46 -0800)]
Merge pull request #66353 from vseanreesermsft/internal-merge-6.0-2022-03-08-1138

Merging internal commits for release/6.0

2 years agoFix the merge again...
Larry Ewing [Wed, 9 Mar 2022 18:56:53 +0000 (12:56 -0600)]
Fix the merge again...

2 years agoMerge branch 'release/6.0' into bump-manifest-band-300
Larry Ewing [Wed, 9 Mar 2022 18:51:35 +0000 (12:51 -0600)]
Merge branch 'release/6.0' into bump-manifest-band-300

2 years agoAdd dependencies for other bands
Larry Ewing [Wed, 9 Mar 2022 18:49:14 +0000 (12:49 -0600)]
Add dependencies for other bands

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Wed, 9 Mar 2022 18:48:16 +0000 (18:48 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Add dependencies on EMSDK manifest bands for coherency in installer...
Matt Mitchell [Wed, 9 Mar 2022 18:31:01 +0000 (10:31 -0800)]
[release/6.0] Add dependencies on EMSDK manifest bands for coherency in installer (#65478)

* Add dependencies on EMSDK manifest bands for coherency in installer

* Update from 126110

2 years agoInclude 300 in <WorkloadSdkBandVersions>
Steve Pfister [Wed, 9 Mar 2022 18:13:00 +0000 (13:13 -0500)]
Include 300 in <WorkloadSdkBandVersions>

2 years agoDon't fail the build when dotnet-install logs errors from curl
Steve Pfister [Wed, 9 Mar 2022 17:13:58 +0000 (12:13 -0500)]
Don't fail the build when dotnet-install logs errors from curl

2 years agoBump sdk used for testing workloads to 6.0.300
Steve Pfister [Wed, 9 Mar 2022 16:05:17 +0000 (11:05 -0500)]
Bump sdk used for testing workloads to 6.0.300

2 years ago[release/6.0] Bump runtime workload manifest to 300 / update emsdk dependency
Steve Pfister [Wed, 9 Mar 2022 02:29:52 +0000 (21:29 -0500)]
[release/6.0] Bump runtime workload manifest to 300 / update emsdk dependency

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Mar 2022 22:27:30 +0000 (22:27 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Fix race conditions in SystemEvents shutdown logic (#66230)
Eric StJohn [Tue, 8 Mar 2022 22:23:21 +0000 (14:23 -0800)]
[release/6.0] Fix race conditions in SystemEvents shutdown logic (#66230)

* Fix race conditions in SystemEvents shutdown logic (#62773)

* Fix race conditions in SystemEvents shutdown logic

When the application is terminated through Restart Manager the event broadcasting window will get the `WM_CLOSE` message. The message gets handled by passing it to `DefWndProc` which calls `DestroyWindow` on the window itself thus making the window handle invalid. The `Shutdown` method expects the window handle to be valid to post `WM_QUIT` message to terminate the thread running the message loop but that's no longer possible under these conditions.

Additionally there's second race condition with the `s_eventThreadTerminated` event that is created during shutdown and set conditionally. A race condition between the threads could cause it to be created when the window message thread is already shutting down and thus it would never be set. Waiting for it in the `Shutdown` method would be cause a deadlock. This thread is also completely unnecessary since a `Join` is performed on the thread itself.

The fix has several changes that act together:
- `s_eventThreadTerminated` event is removed completely in favor of only relying on `Thread.Join`
- `WM_DESTROY` message is detected (which happens as a result of WM_CLOSE calling `DefWndProc` which in turn calls `DestroyWindow`) and handled by shutting down the message loop thread
- The message loop itself is rewritten to use standard `GetMessageW` loop. The reasoning on why it was not used seems not to be valid anymore since AppDomain shutdowns are performed differently

* Add unit test.

* Add braces

* Add package authoring for servicing

Co-authored-by: Filip Navara <filip.navara@gmail.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Mar 2022 22:18:37 +0000 (22:18 +0000)]
Merge in 'release/6.0' changes

2 years agoAdd "[createdump]" prefix to all createdump output and logging for VS4Mac (#65444)
Mike McLaughlin [Tue, 8 Mar 2022 22:11:32 +0000 (14:11 -0800)]
Add "[createdump]" prefix to all createdump output and logging for VS4Mac (#65444)

* Add "[createdump]" prefix to all createdump for VS4Mac

To help diagnose and improve dump collection for VS4Mac, the createdump's messages and logging needed some kind of prefix.

* Add verbose createdump logging env var COMPlus_CreateDumpVerboseDiagnostics

* Code review feedback

2 years ago[Release/6.0] Backporting recent fixes related to AVX and suspension. (#66120)
Vladimir Sadov [Tue, 8 Mar 2022 22:04:09 +0000 (14:04 -0800)]
[Release/6.0] Backporting recent fixes related to AVX and suspension. (#66120)

* Use CopyContext to restore saved context on X86 (#65490)

* Use CopyContext to restore saved context on X86

* PR feedback

* more PR feedback

* Do not copy XState other than AVX when redirecting for GC stress (#65825)

* Do not copy XState other than AVX

* #if defined(TARGET_X86) || defined(TARGET_AMD64)

* mask XState unconditionally

* Ensure XSTATE_MASK_AVX is set before calling EEGetThreadContext

* redundant supportsAVX, more clear comment

* PR feedback

* null-check the redirect context before using. (#65910)

* null-check the redirect context before using.

* tweak the comment

* do not allocate context if InitializeContext has unexpected results.

* EE Suspension on x86 should use RtlRestoreContext when available (#65878)

* RestoreContextSimulated

* probe for RtlRestoreContext

* ntdll.dll

* restore self-trap sequence

* PR feedback

* Clarify CopyContext in RedirectedHandledJITCaseExceptionFilter

* simpler indentation.

* restore last error on the legacy path.

* Update src/coreclr/vm/threads.h

Co-authored-by: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Mar 2022 21:55:07 +0000 (21:55 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0][EventPipe] Fix reverse connection socket leaking to child processes...
Juan Hoyos [Tue, 8 Mar 2022 21:50:04 +0000 (13:50 -0800)]
[release/6.0][EventPipe] Fix reverse connection socket leaking to child processes. (#65768)

* [release/6.0][EventPipe] Fix reverse connection socket leaking to child processes.

Sockets were getting leaked upon accepting connections. This meant that child processes could cause
fully terminated tracing sessions and other IPC connections alive, causing clients to wait for input
indefinitely. This sets the CLOEXEC bits on the socket atomically upon accepting if the OS provides
the capability, falling back to a best effort fcntl on systems like macOS and x866 Android emulators.

Port of dotnet/runtime#65365 to release/6.0.

* Include well know cmake paths

2 years agoRelease a new version of System.Runtime.Experimental with the correct assembly versio...
Santiago Fernandez Madero [Tue, 8 Mar 2022 21:41:40 +0000 (13:41 -0800)]
Release a new version of System.Runtime.Experimental with the correct assembly version (#65733)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Mar 2022 21:24:57 +0000 (21:24 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Mar 2022 21:14:19 +0000 (21:14 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Mar 2022 21:11:48 +0000 (21:11 +0000)]
Merge in 'release/6.0' changes

2 years agoDisable R2R code for all associated components of a composite image - When loading...
github-actions[bot] [Tue, 8 Mar 2022 21:11:34 +0000 (13:11 -0800)]
Disable R2R code for all associated components of a composite image - When loading a composite image, capture the detail that the composite image code cannot be used into the NativeImage structure, and flow that data into all associated ReadyToRunInfo structures. (#65536)

Fixes #61471

Co-authored-by: David Wrighton <davidwr@microsoft.com>
2 years agoGeneratePackageOnBuild in WinHttpHandler.csproj (#65523)
Anton Firszov [Tue, 8 Mar 2022 21:10:05 +0000 (22:10 +0100)]
GeneratePackageOnBuild in WinHttpHandler.csproj (#65523)

2 years ago[release/6.0] Ensure that tls_destructionMonitor is initialized if a thread is attach...
github-actions[bot] [Tue, 8 Mar 2022 20:59:44 +0000 (12:59 -0800)]
[release/6.0] Ensure that tls_destructionMonitor is initialized if a thread is attached to the runtime. (#65406)

* Ensure that tls_destructionMonitor is initialized if a thread is attached to the runtime.

* relax the assert

* no call to `EnsureTlsDestructionMonitor` on unsetting a thread.

* remove obsolete comment

Co-authored-by: vsadov <8218165+VSadov@users.noreply.github.com>
2 years ago[release/6.0] [wasm][debugger] Fix (chrome|edge)://inspect for the debug proxy (...
github-actions[bot] [Tue, 8 Mar 2022 20:55:35 +0000 (12:55 -0800)]
[release/6.0] [wasm][debugger] Fix (chrome|edge)://inspect for the debug proxy (#65219)

* Inspector wants the content-length set

* Use utf8 length

Co-authored-by: Larry Ewing <lewing@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Mar 2022 20:54:59 +0000 (20:54 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] [wasm][debugger] Fixing race condition (#64648)
Thays Grazia [Tue, 8 Mar 2022 20:40:52 +0000 (17:40 -0300)]
[release/6.0] [wasm][debugger] Fixing race condition  (#64648)

* Backporting #64394

* Addressing @lewing comment offline.

2 years agoMerge commit 'c24d9a9c91c5d04b7b4de71f1a9f33ac35e09663' into internal-merge-6.0-2022...
Sean Reeser [Tue, 8 Mar 2022 19:38:44 +0000 (11:38 -0800)]
Merge commit 'c24d9a9c91c5d04b7b4de71f1a9f33ac35e09663' into internal-merge-6.0-2022-03-08-1138

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Fri, 4 Mar 2022 01:33:02 +0000 (01:33 +0000)]
Merge in 'release/6.0' changes

2 years ago[Release/6.0] Backport of Mariner 2.0 and Linux Arm64 packaging work (#65979)
Nikola Milosavljevic [Fri, 4 Mar 2022 01:18:56 +0000 (17:18 -0800)]
[Release/6.0] Backport of Mariner 2.0 and Linux Arm64 packaging work (#65979)

* Backport - enable Mariner 2.0 and arm64 RPM packages

* Adding Mariner 2.0 deps project

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 3 Mar 2022 20:10:13 +0000 (20:10 +0000)]
Merge in 'release/6.0' changes

2 years agoUpdate branding to 6.0.4 (#66021)
vseanreesermsft [Thu, 3 Mar 2022 19:53:16 +0000 (11:53 -0800)]
Update branding to 6.0.4 (#66021)

* Update branding to 6.0.4

* Remove <GeneratePackageOnBuild> strings from src/libraries/**/*.csproj files (excludes *.Transport.csproj files).

Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Wed, 23 Feb 2022 23:27:32 +0000 (23:27 +0000)]
Merge in 'release/6.0' changes

2 years agoPort of #60580 (#65811)
Manish Godse [Wed, 23 Feb 2022 23:14:01 +0000 (15:14 -0800)]
Port of #60580 (#65811)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Wed, 23 Feb 2022 19:21:53 +0000 (19:21 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge pull request #65794 from dotnet/revert_r2rmacos
Jeff Schwartz [Wed, 23 Feb 2022 19:06:46 +0000 (11:06 -0800)]
Merge pull request #65794 from dotnet/revert_r2rmacos

Revert "[release/6.0] Fix ReadyToRun loading on Apple Silicon (#64104)"

2 years agoRevert "[release/6.0] Fix ReadyToRun loading on Apple Silicon (#64104)"
Manish Godse [Wed, 23 Feb 2022 18:54:04 +0000 (10:54 -0800)]
Revert "[release/6.0] Fix ReadyToRun loading on Apple Silicon (#64104)"

This reverts commit 8f7dff32974a6d387e3b99e95f522ee9377e6e15.

2 years agoMerged PR 21170: Fixing the shift-left handling to correctly account for overshifting
Tanner Gooding [Tue, 15 Feb 2022 16:24:59 +0000 (16:24 +0000)]
Merged PR 21170: Fixing the shift-left handling to correctly account for overshifting

Fixing the shift-left handling to correctly account for overshifting

2 years agoRemove Unused Encoding on UriHelper
Eric Erhardt [Mon, 14 Feb 2022 19:40:45 +0000 (13:40 -0600)]
Remove Unused Encoding on UriHelper

This field was a left-over artifact from conflicts between the commits:
- https://github.com/dotnet/runtime/commit/70c070e84c617de0700612d03c5886e548195bed
- https://github.com/dotnet/runtime/commit/e53e5430c199c210b7d6f7ce508fb5fabb5faeba

In profiling the startup of a Maui Android app, this initialization is pulling in UTF32 and Latin1 encodings. The profile indicates this accounts for 7ms (roughly 1%). Removing this unnecessary field eliminates 7ms in a Maui App's InitializeComponent.

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 14 Feb 2022 18:47:56 +0000 (18:47 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Fix long directory path test (#64955)
Santiago Fernandez Madero [Mon, 14 Feb 2022 18:35:18 +0000 (10:35 -0800)]
[release/6.0] Fix long directory path test (#64955)

2 years ago[release/6.0] Port ICU tests fix for server core x86 (#65038)
Santiago Fernandez Madero [Mon, 14 Feb 2022 18:34:18 +0000 (10:34 -0800)]
[release/6.0] Port ICU tests fix for server core x86 (#65038)

* [release/6.0] Port ICU tests fix for server core x86

* Update src/libraries/System.Globalization/tests/IcuTests.cs

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
* Add PlatformDetection.IsX86Process

Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 14 Feb 2022 15:17:50 +0000 (15:17 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge pull request #65215 from dotnet/backport/pr-65214-to-release/6.0
Jeff Schwartz [Mon, 14 Feb 2022 15:02:54 +0000 (07:02 -0800)]
Merge pull request #65215 from dotnet/backport/pr-65214-to-release/6.0

[release/6.0] Fix race condition in InteropSyncBlock for ComWrappers map.

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Sat, 12 Feb 2022 00:17:36 +0000 (00:17 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Update dependencies from dotnet/arcade dotnet/emsdk dotnet/icu (#64987)
dotnet-maestro[bot] [Sat, 12 Feb 2022 00:02:23 +0000 (16:02 -0800)]
[release/6.0] Update dependencies from dotnet/arcade dotnet/emsdk dotnet/icu (#64987)

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

Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.GenAPI , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.GenFacades , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk
 From Version 2.5.1-beta.22104.4 -> To Version 2.5.1-beta.22107.2

* Update dependencies from https://github.com/dotnet/emsdk build 20220208.1

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.0 -> To Version 6.0.2

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

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 6.0.0-rtm.21519.1 -> To Version 6.0.0-rtm.22108.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Fri, 11 Feb 2022 23:44:09 +0000 (23:44 +0000)]
Merge in 'release/6.0' changes

2 years ago[wasm] Remove USE_ZLIB=1 and include the sources instead (#64907)
Alexander Köplinger [Fri, 11 Feb 2022 23:32:28 +0000 (00:32 +0100)]
[wasm] Remove USE_ZLIB=1 and include the sources instead (#64907)

2 years ago[release/6.0] Expand System.Runtime.InteropServices.NFloat to support the APIs requir...
github-actions[bot] [Fri, 11 Feb 2022 23:31:25 +0000 (15:31 -0800)]
[release/6.0] Expand System.Runtime.InteropServices.NFloat to support the APIs required by Xamarin (#64556)

2 years agoFix race condition in InteropSyncBlock for ComWrappers map.
Aaron Robinson [Fri, 11 Feb 2022 21:14:31 +0000 (13:14 -0800)]
Fix race condition in InteropSyncBlock for ComWrappers map.

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Fri, 11 Feb 2022 17:53:12 +0000 (17:53 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] [mono] Remove OP_FCONV_TO_U opcode (#64914)
github-actions[bot] [Fri, 11 Feb 2022 17:40:00 +0000 (18:40 +0100)]
[release/6.0] [mono] Remove OP_FCONV_TO_U opcode (#64914)

Co-authored-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Feb 2022 18:55:17 +0000 (18:55 +0000)]
Merge in 'release/6.0' changes