platform/upstream/dotnet/runtime.git
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 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 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 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

2 years agoDisable ILVerify for source build (#65082)
github-actions[bot] [Thu, 10 Feb 2022 18:40:31 +0000 (10:40 -0800)]
Disable ILVerify for source build (#65082)

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 10 Feb 2022 15:44:48 +0000 (15:44 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge pull request #64998 from vseanreesermsft/internal-merge-6.0-2022-02-08-1019
Matt Mitchell [Thu, 10 Feb 2022 15:28:54 +0000 (07:28 -0800)]
Merge pull request #64998 from vseanreesermsft/internal-merge-6.0-2022-02-08-1019

Merging internal commits for release/6.0

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

2 years ago[release/6.0] Fix Logging source generator failures with various syntax (#64779)
Maryam Ariyan [Wed, 9 Feb 2022 18:44:53 +0000 (10:44 -0800)]
[release/6.0] Fix Logging source generator failures with various syntax (#64779)

2 years agoMerged PR 21061: Resolve MSRC 68613 for .NET 6
Tanner Gooding [Wed, 9 Feb 2022 01:39:47 +0000 (01:39 +0000)]
Merged PR 21061: Resolve MSRC 68613 for .NET 6

Resolve MSRC 68613 for .NET 6

2 years agoMerged PR 21093: Fix official builds for azdo PRs
Santiago Fernandez Madero [Tue, 8 Feb 2022 22:57:01 +0000 (22:57 +0000)]
Merged PR 21093: Fix official builds for azdo PRs

When running on PRs there was a dependency calculated as a "Debug" build however on the official build everything is run as Release, so the yml expansion was failing for PRs as the job dependency didn't exist.

Related work items: #15, #16, #32, #143

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Feb 2022 20:46:54 +0000 (20:46 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge release/6.0-maui branch back into release/6.0 (#64687)
Alexander Köplinger [Tue, 8 Feb 2022 20:31:50 +0000 (21:31 +0100)]
Merge release/6.0-maui branch back into release/6.0 (#64687)

2 years agoMerge commit '839cdfb0ecca5e0be3dbccd926e7651ef50fdf10' into internal-merge-6.0-2022...
Sean Reeser [Tue, 8 Feb 2022 18:20:15 +0000 (10:20 -0800)]
Merge commit '839cdfb0ecca5e0be3dbccd926e7651ef50fdf10' into internal-merge-6.0-2022-02-08-1019

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

2 years ago[release/6.0] Update dependencies from dotnet/arcade (#64749)
dotnet-maestro[bot] [Tue, 8 Feb 2022 04:06:54 +0000 (20:06 -0800)]
[release/6.0] Update dependencies from dotnet/arcade (#64749)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Feb 2022 02:25:05 +0000 (02:25 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Add alignment to mapped field stream (#64559)
github-actions[bot] [Tue, 8 Feb 2022 02:09:33 +0000 (18:09 -0800)]
[release/6.0] Add alignment to mapped field stream (#64559)

* Align MappeFieldDataStream at 8 byte boundary

* Add test to verify that the mapped field rva data blob is aligned to ManagedPEBuilder.MappedFieldDataAlignment

* Only align when the mapped field data is of size not equal to 0

* Adding Servicing changes for S.R.M

Co-authored-by: David Wrighton <davidwr@microsoft.com>
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Tue, 8 Feb 2022 00:21:14 +0000 (00:21 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] [Mono] Fix potential crash when handling image load event. (#64911)
github-actions[bot] [Tue, 8 Feb 2022 00:07:02 +0000 (01:07 +0100)]
[release/6.0] [Mono] Fix potential crash when handling image load event. (#64911)

Co-authored-by: lateralusX <lateralusX.github@gmail.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 23:43:40 +0000 (23:43 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Avoid deadlock with ConfigurationManager (#63816)
Stephen Halter [Mon, 7 Feb 2022 23:29:45 +0000 (15:29 -0800)]
[release/6.0] Avoid deadlock with ConfigurationManager (#63816)

* Avoid deadlock with ConfigurationManager

* Add packaging changes

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 21:16:02 +0000 (21:16 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] [mobile] Add extra HttpClientHandler linker substitution (#64852)
github-actions[bot] [Mon, 7 Feb 2022 21:02:07 +0000 (13:02 -0800)]
[release/6.0] [mobile] Add extra HttpClientHandler linker substitution (#64852)

* [mobile] Add extra HttpClientHandler linker substitution

The linker substitution for HttpClientHandler.IsNativeHandlerEnabled only worked when <UseNativeHttpHandler> in a project was set
to false.  Since the default for MAUI projects is true, this caused us to carry more assemblies than needed.

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

* Update src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.mobile.xml

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
Co-authored-by: Steve Pfister <steveisok@users.noreply.github.com>
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 20:30:51 +0000 (20:30 +0000)]
Merge in 'release/6.0' changes

2 years ago[AOT] Use `.short` directive instead of `.hword` (#64637)
github-actions[bot] [Mon, 7 Feb 2022 20:18:33 +0000 (12:18 -0800)]
[AOT] Use `.short` directive instead of `.hword` (#64637)

Xamarin.Android is trying to (partially) switch to LLVM-based toolchain
and it appears that the `llvm-mc` assembler doesn't accept `.hword` as a
valid directive for x86 targets.  Since it's an alias for `.short`,
which works fine, the change should be safe across all the architectures
supported by AOT.

Co-authored-by: Marek Habersack <grendel@twistedcode.net>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:54:01 +0000 (19:54 +0000)]
Merge in 'release/6.0' changes

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

2 years ago[release/6.0] Fix ReadyToRun loading on Apple Silicon (#64104)
Jonathan Giannuzzi [Mon, 7 Feb 2022 19:50:20 +0000 (19:50 +0000)]
[release/6.0] Fix ReadyToRun loading on Apple Silicon (#64104)

* Fix Compiler::impImportNewObjArray on osx-arm64

* Fix broken ReadyToRun loading on Apple Silicon

* Reject R2R images containing calls to CORINFO_HELP_NEW_MDARR

2 years ago[release/6.0] [mono] Fix downcast check in Array.CopySlow (#64479)
github-actions[bot] [Mon, 7 Feb 2022 19:41:40 +0000 (11:41 -0800)]
[release/6.0] [mono] Fix downcast check in Array.CopySlow (#64479)

* Add regression test for object[] -> Int32Enum[] array copy

where each element in the source array is the appropriate type

* Fix downcast check in slow array copy

When we have to resort to checking element by element, compare the type of each
actual element with the destination type. In particular, not the destinations
underlying type when it's an enum - we don't want to allow unrelated enums
using the same representation to copy over.

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

Co-authored-by: Aleksey Kliger <alklig@microsoft.com>
2 years ago[release/6.0] Fix DateOnly and TimeOnly Formatting using interpolated strings (#64460)
github-actions[bot] [Mon, 7 Feb 2022 19:39:51 +0000 (11:39 -0800)]
[release/6.0] Fix DateOnly and TimeOnly Formatting using interpolated strings (#64460)

* Fix DateOnly and TimeOnly Formatting using interpolated strings

* Add TryFormat tests

Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com>
2 years agoTemporarily disable EC file import tests (#64414)
github-actions[bot] [Mon, 7 Feb 2022 19:38:29 +0000 (11:38 -0800)]
Temporarily disable EC file import tests (#64414)

Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:29:29 +0000 (19:29 +0000)]
Merge in 'release/6.0' changes

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:26:27 +0000 (19:26 +0000)]
Merge in 'release/6.0' changes

2 years agoFix Xamarin assembly names in HttpClientHandler (#64391)
github-actions[bot] [Mon, 7 Feb 2022 19:26:22 +0000 (11:26 -0800)]
Fix Xamarin assembly names in HttpClientHandler (#64391)

Update to match the new names from https://github.com/xamarin/xamarin-macios/pull/13847

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2 years ago[release/6.0] add RID for Alpine 3.15 (#64304)
Tomas Weinfurt [Mon, 7 Feb 2022 19:20:48 +0000 (11:20 -0800)]
[release/6.0] add RID for Alpine 3.15 (#64304)

* add RID for Alpine 3.15 (#62938)

* add packaging

Co-authored-by: Antoine Martin <dev@ayakael.net>
2 years agoFix profiling objectsallocatedbyclass (#63814) (#64284)
David Mason [Mon, 7 Feb 2022 19:19:31 +0000 (11:19 -0800)]
Fix profiling objectsallocatedbyclass (#63814) (#64284)

* Add test for ObjectsAllocatedByClass profiler callbacks

* Fix ObjectsAllocatedByClass profiler callbacks based on wrong flag

* Fix wrong args in test log

Co-authored-by: Olivier Giniaux <oginiaux@smartadserver.com>
Co-authored-by: Olivier Giniaux <oginiaux@gmail.com>
Co-authored-by: Olivier Giniaux <oginiaux@smartadserver.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:19:20 +0000 (19:19 +0000)]
Merge in 'release/6.0' changes

2 years agomake sure OpenSSL is initialized before Tls13Supported code runs (#64252)
Tomas Weinfurt [Mon, 7 Feb 2022 19:18:56 +0000 (11:18 -0800)]
make sure OpenSSL is initialized before Tls13Supported code runs (#64252)

2 years agoMake sure that shared memory object name meets the length requirements (#64099) ...
Adam Sitnik [Mon, 7 Feb 2022 19:18:17 +0000 (20:18 +0100)]
Make sure that shared memory object name meets the length requirements (#64099) (#64266)

Co-authored-by: Stephen Toub <stoub@microsoft.com>
# Conflicts:
# src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedFile.CreateNew.Tests.cs
# src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor.Tests.cs
# src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream.Tests.cs
# src/libraries/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStreamConformanceTests.cs

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:17:08 +0000 (19:17 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Fix exception propagation over HW exception frame on macOS arm64 (...
github-actions[bot] [Mon, 7 Feb 2022 19:14:58 +0000 (11:14 -0800)]
[release/6.0] Fix exception propagation over HW exception frame on macOS arm64 (#64262)

* Fix exception propagation over HW exception frame on macOS arm64

There is a problem unwinding over the PAL_DispatchExceptionWrapper
to the actual hardware exception location. The unwinder is unable
to get distinct LR and PC in that frame and sets both of them to
the same value. This is caused by the fact that the
PAL_DispatchExceptionWrapper is just an injected fake frame and
there was no real call. Calls always return with LR and PC set
to the same value.

The fix unifies the hardware exception frame unwinding with Linux
where we had problems unwinding over signal handler trampoline, so
PAL_VirtualUnwind skips the trampoline and now also the
PAL_DispatchExceptionWrapper frame by copying the context of
the exception as the unwound context.

* Fix GC stress C - wrong context being restored

The context that is restored in the PAL_DispatchException needs to be
the one from the exception, not the original saved one. That ensures
that the registers updated by the GC in GC stress C in the context
are properly restored after the execution is resumed.

* Fix exception context leak in GC stress C

The PAL_SEHException had the records allocated on stack, so the
direct context restoration after the EH for GC stress C completed
leaked those.

Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:10:42 +0000 (19:10 +0000)]
Merge in 'release/6.0' changes

2 years agoCatch all exceptions (#64192)
github-actions[bot] [Mon, 7 Feb 2022 19:09:31 +0000 (11:09 -0800)]
Catch all exceptions (#64192)

Co-authored-by: Eaton Zveare <eaton@eaton-works.com>
2 years ago[release/6.0] Fix crash when VS4Mac is debugging VS4Mac arm64 (#64086)
Mike McLaughlin [Mon, 7 Feb 2022 19:05:29 +0000 (11:05 -0800)]
[release/6.0] Fix crash when VS4Mac is debugging VS4Mac arm64 (#64086)

* Fix crash when VS4Mac is debugging VS4Mac arm64

Issue: https://github.com/dotnet/runtime/issues/64011

# Customer Impact

VS4Mac crashes when debugging VS4Mac.

# Testing

VS4Mac team verified that it no longer crashes.

# Risk

Low.

* Code review feedback. Add better comment

2 years agoFix OpenSSL version check in GetAlpnSupport (#64032)
github-actions[bot] [Mon, 7 Feb 2022 19:04:51 +0000 (11:04 -0800)]
Fix OpenSSL version check in GetAlpnSupport (#64032)

The previous check failed 3.0.0 because the Minor was 0 and Build was 0.

It could probably be rewritten to be `>= new Version(1, 0, 2)`, but that'd require more thinking.

Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
2 years agoFix OpenSSL 3 reporting an OutOfMemoryException for missing private key (#63955)
Kevin Jones [Mon, 7 Feb 2022 19:03:24 +0000 (14:03 -0500)]
Fix OpenSSL 3 reporting an OutOfMemoryException for missing private key (#63955)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:02:32 +0000 (19:02 +0000)]
Merge in 'release/6.0' changes

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

2 years ago[release/6.0] Update SAN test to account for OpenSSL 3 changes (#63951)
github-actions[bot] [Mon, 7 Feb 2022 18:58:38 +0000 (10:58 -0800)]
[release/6.0] Update SAN test to account for OpenSSL 3 changes (#63951)

* Update SAN test to account for OpenSSL 3 changes.

* Fix test for browser

Co-authored-by: Kevin Jones <kevin@vcsjones.com>
2 years agoserialize SendPacketsAsync tests (#63888)
Anton Firszov [Mon, 7 Feb 2022 18:56:51 +0000 (19:56 +0100)]
serialize SendPacketsAsync tests (#63888)

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

2 years ago[release/6.0] [wasm][debugger] Fixing error after receiving loaded_files = null ...
Thays Grazia [Mon, 7 Feb 2022 18:46:41 +0000 (15:46 -0300)]
[release/6.0] [wasm][debugger] Fixing error after receiving loaded_files = null (#63739)

* Backporting dotnet#63591

* Fix merge error.

* Fixing html page.

2 years ago[source-build][mono] Do not build Microsoft.NET.Runtime.MonoTargets.Sdk (#63701)
github-actions[bot] [Mon, 7 Feb 2022 18:46:13 +0000 (10:46 -0800)]
[source-build][mono] Do not build Microsoft.NET.Runtime.MonoTargets.Sdk (#63701)

* Does not build due to missing Microsoft.DotNet.CilStrip.Sources
  external dependency in source-build.

* Package is not needed for source-build anyway.

Co-authored-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2 years ago[release/6.0] Support Single-file executable in Windows 7 (#63533)
NN [Mon, 7 Feb 2022 18:45:35 +0000 (20:45 +0200)]
[release/6.0] Support Single-file executable in Windows 7 (#63533)

* Delay load winrt

* Trivial change to rerun tests

Co-authored-by: Vladimir Sadov <vsadov@microsoft.com>
2 years agobackport 62601 (#62816)
Thays Grazia [Mon, 7 Feb 2022 18:42:11 +0000 (15:42 -0300)]
backport 62601 (#62816)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Sat, 5 Feb 2022 03:13:37 +0000 (03:13 +0000)]
Merge in 'release/6.0' changes

2 years ago[release/6.0] Update helix queues (#64721)
Santiago Fernandez Madero [Sat, 5 Feb 2022 03:00:23 +0000 (19:00 -0800)]
[release/6.0] Update helix queues (#64721)

2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 3 Feb 2022 00:24:16 +0000 (00:24 +0000)]
Merge in 'release/6.0' changes

2 years agoUpdate branding to 6.0.3 (#64644)
vseanreesermsft [Thu, 3 Feb 2022 00:07:51 +0000 (16:07 -0800)]
Update branding to 6.0.3 (#64644)

* Update branding to 6.0.3

* Clear list of OOB packages built on the branch and always build ref pack

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
2 years agoMerge in 'release/6.0' changes
dotnet-bot [Thu, 20 Jan 2022 17:36:23 +0000 (17:36 +0000)]
Merge in 'release/6.0' changes