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
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
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>
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
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>
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>
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>
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
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
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>
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
Larry Ewing [Wed, 9 Mar 2022 18:56:53 +0000 (12:56 -0600)]
Fix the merge again...
Larry Ewing [Wed, 9 Mar 2022 18:51:35 +0000 (12:51 -0600)]
Merge branch 'release/6.0' into bump-manifest-band-300
Larry Ewing [Wed, 9 Mar 2022 18:49:14 +0000 (12:49 -0600)]
Add dependencies for other bands
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
Steve Pfister [Wed, 9 Mar 2022 18:13:00 +0000 (13:13 -0500)]
Include 300 in <WorkloadSdkBandVersions>
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
Steve Pfister [Wed, 9 Mar 2022 16:05:17 +0000 (11:05 -0500)]
Bump sdk used for testing workloads to 6.0.300
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
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>
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
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>
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
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)
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>
Anton Firszov [Tue, 8 Mar 2022 21:10:05 +0000 (22:10 +0100)]
GeneratePackageOnBuild in WinHttpHandler.csproj (#65523)
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>
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>
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.
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
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
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>
dotnet-bot [Wed, 23 Feb 2022 23:27:32 +0000 (23:27 +0000)]
Merge in 'release/6.0' changes
Manish Godse [Wed, 23 Feb 2022 23:14:01 +0000 (15:14 -0800)]
Port of #60580 (#65811)
dotnet-bot [Wed, 23 Feb 2022 19:21:53 +0000 (19:21 +0000)]
Merge in 'release/6.0' changes
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)"
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.
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
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.
dotnet-bot [Mon, 14 Feb 2022 18:47:56 +0000 (18:47 +0000)]
Merge in 'release/6.0' changes
Santiago Fernandez Madero [Mon, 14 Feb 2022 18:35:18 +0000 (10:35 -0800)]
[release/6.0] Fix long directory path test (#64955)
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>
dotnet-bot [Mon, 14 Feb 2022 15:17:50 +0000 (15:17 +0000)]
Merge in 'release/6.0' changes
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.
dotnet-bot [Sat, 12 Feb 2022 00:17:36 +0000 (00:17 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Fri, 11 Feb 2022 23:44:09 +0000 (23:44 +0000)]
Merge in 'release/6.0' changes
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)
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)
Aaron Robinson [Fri, 11 Feb 2022 21:14:31 +0000 (13:14 -0800)]
Fix race condition in InteropSyncBlock for ComWrappers map.
dotnet-bot [Fri, 11 Feb 2022 17:53:12 +0000 (17:53 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Thu, 10 Feb 2022 18:55:17 +0000 (18:55 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Thu, 10 Feb 2022 15:44:48 +0000 (15:44 +0000)]
Merge in 'release/6.0' changes
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
dotnet-bot [Wed, 9 Feb 2022 19:06:29 +0000 (19:06 +0000)]
Merge in 'release/6.0' changes
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)
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
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
dotnet-bot [Tue, 8 Feb 2022 20:46:54 +0000 (20:46 +0000)]
Merge in 'release/6.0' changes
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)
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
dotnet-bot [Tue, 8 Feb 2022 04:19:52 +0000 (04:19 +0000)]
Merge in 'release/6.0' changes
dotnet-maestro[bot] [Tue, 8 Feb 2022 04:06:54 +0000 (20:06 -0800)]
[release/6.0] Update dependencies from dotnet/arcade (#64749)
dotnet-bot [Tue, 8 Feb 2022 02:25:05 +0000 (02:25 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Tue, 8 Feb 2022 00:21:14 +0000 (00:21 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Mon, 7 Feb 2022 23:43:40 +0000 (23:43 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Mon, 7 Feb 2022 21:16:02 +0000 (21:16 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Mon, 7 Feb 2022 20:30:51 +0000 (20:30 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Mon, 7 Feb 2022 19:54:01 +0000 (19:54 +0000)]
Merge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:51:53 +0000 (19:51 +0000)]
Merge in 'release/6.0' changes
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
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>
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>
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>
dotnet-bot [Mon, 7 Feb 2022 19:29:29 +0000 (19:29 +0000)]
Merge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 19:26:27 +0000 (19:26 +0000)]
Merge in 'release/6.0' changes
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>
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>
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>
dotnet-bot [Mon, 7 Feb 2022 19:19:20 +0000 (19:19 +0000)]
Merge in 'release/6.0' changes
Tomas Weinfurt [Mon, 7 Feb 2022 19:18:56 +0000 (11:18 -0800)]
make sure OpenSSL is initialized before Tls13Supported code runs (#64252)
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
dotnet-bot [Mon, 7 Feb 2022 19:17:08 +0000 (19:17 +0000)]
Merge in 'release/6.0' changes
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>
dotnet-bot [Mon, 7 Feb 2022 19:10:42 +0000 (19:10 +0000)]
Merge in 'release/6.0' changes
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>
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
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>
Kevin Jones [Mon, 7 Feb 2022 19:03:24 +0000 (14:03 -0500)]
Fix OpenSSL 3 reporting an OutOfMemoryException for missing private key (#63955)
dotnet-bot [Mon, 7 Feb 2022 19:02:32 +0000 (19:02 +0000)]
Merge in 'release/6.0' changes
dotnet-bot [Mon, 7 Feb 2022 18:59:51 +0000 (18:59 +0000)]
Merge in 'release/6.0' changes
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>
Anton Firszov [Mon, 7 Feb 2022 18:56:51 +0000 (19:56 +0100)]
serialize SendPacketsAsync tests (#63888)