platform/upstream/dotnet/runtime.git
2 years ago[Tizen] Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid
Igor Kulaychuk [Wed, 25 Apr 2018 18:31:59 +0000 (21:31 +0300)]
[Tizen] Fix OOPStackUnwinderX86::Unwind crash when Eip is invalid

2 years ago[Tizen] Fix EECodeManager::GetAmbientSP on x86/Linux
Igor Kulaychuk [Fri, 20 Apr 2018 20:52:57 +0000 (23:52 +0300)]
[Tizen] Fix EECodeManager::GetAmbientSP on x86/Linux

2 years ago[Tizen] Add -pie to linker option
Hyungju Lee [Mon, 2 Jul 2018 00:28:08 +0000 (09:28 +0900)]
[Tizen] Add -pie to linker option

There have been no -pie linker option.
This patch adds -pie linker option into crossgen(for tizen)

This originates from 0024-Add-pie-to-linker-option.patch

2 years ago[Tizen] Add support for gbs build for i586, x86_64, armv7l, aarch64 (including tests)
Gleb Balykov [Mon, 12 Apr 2021 20:13:24 +0000 (23:13 +0300)]
[Tizen] Add support for gbs build for i586, x86_64, armv7l, aarch64 (including tests)

2 years agoFix linux x86 build error (partial cherry-pick of https://github.com/dotnet/runtime...
Gleb Balykov [Tue, 7 Dec 2021 13:28:24 +0000 (16:28 +0300)]
Fix linux x86 build error (partial cherry-pick of https://github.com/dotnet/runtime/pull/60817)

2 years ago[Tizen] Hardcode LD_GNU for tizen
Gleb Balykov [Tue, 7 Dec 2021 09:12:31 +0000 (12:12 +0300)]
[Tizen] Hardcode LD_GNU for tizen

2 years ago[Tizen] Add coreclr tests build dependencies v6.0.0
Gleb Balykov [Mon, 6 Dec 2021 20:49:45 +0000 (23:49 +0300)]
[Tizen] Add coreclr tests build dependencies v6.0.0

To add these files do next steps:
1. Remove .gitignore
2. Remove all previous build artifacts and non-used files (make output of "git status" clear)
3. export NUGET_PACKAGES=`pwd`/.packages
4. Cross build coreclr tests for armel/arm64/x86 and x64
5. Commit .packages

Notes:
- If some of these nuget packages are not commited or missed for other reasons, gbs build will fail.

2 years ago[Tizen] Add prebuilt libicu-57.1 libraries for x64
Gleb Balykov [Mon, 12 Apr 2021 14:20:02 +0000 (17:20 +0300)]
[Tizen] Add prebuilt libicu-57.1 libraries for x64

These are required for x64 BuildTools in order to run under gbs.

2 years ago[Tizen] Add nuget packages for corefx-managed-ref for clr <= 3.1
Gleb Balykov [Mon, 12 Apr 2021 14:43:01 +0000 (17:43 +0300)]
[Tizen] Add nuget packages for corefx-managed-ref for clr <= 3.1

These are nuget packages, which are used during application build.
To generate these, build TizenFX and put downloaded nuget packages in nuget/ dir.

2 years ago[Tizen] Add x64 BuildTools v6.0.0
Gleb Balykov [Mon, 6 Dec 2021 19:58:08 +0000 (22:58 +0300)]
[Tizen] Add x64 BuildTools v6.0.0

To add these files do next steps:
1. Remove .gitignore
2. Remove all previous build artifacts and non-used files (make output of "git status" clear)
3. export NUGET_PACKAGES=`pwd`/.packages
4. Cross build runtime for required arches (armel, arm64, x86) and build for x64
5. Commit .dotnet, .packages

Notes:
- If some dir names change in future, this will be seen in "git status" after step 4. Add those dirs too.
- If some of these dirs are not commited or missed for other reasons, gbs build will fail.
- These build tools are for x64, thus, gbs build without clang-accel is not supported.

3 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20211022.3 (#60783)
dotnet-maestro[bot] [Fri, 22 Oct 2021 20:27:45 +0000 (13:27 -0700)]
Update dependencies from https://github.com/dotnet/arcade build 20211022.3 (#60783)

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21519.3 -> To Version 6.0.0-beta.21522.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years ago[release/6.0] [wasm][debugger] Fix loading a non wasm page and then returning to...
github-actions[bot] [Fri, 22 Oct 2021 20:21:03 +0000 (13:21 -0700)]
[release/6.0] [wasm][debugger] Fix loading a non wasm page and then returning to a wasm page. (#60777)

* Fix loading a non wasm page and then returning to a wasm page.

* Adding non-wasm-page.html

* fixing other method

* addressing @radical comments

* adding last empty line

Co-authored-by: DESKTOP-GEPIA6N\Thays <thaystg@gmail.com>
3 years ago[release/6.0] Create a parent CMake project for building app bundles on CI (#59154)
github-actions[bot] [Thu, 21 Oct 2021 18:43:50 +0000 (14:43 -0400)]
[release/6.0] Create a parent CMake project for building app bundles on CI (#59154)

Backport of #58965 to release/6.0

This allows us to not run the CMake configure step separately for each libraries test suite which speeds up the build.

Helps with #58549

3 years ago[release/6.0] Update dependencies from dotnet/icu dotnet/emsdk (#60684)
dotnet-maestro[bot] [Thu, 21 Oct 2021 15:07:10 +0000 (08:07 -0700)]
[release/6.0] Update dependencies from dotnet/icu dotnet/emsdk (#60684)

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

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

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

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

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

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

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years ago[release/6.0] Tweak workload build to use _GenerateMsiVersionString target (#60695)
github-actions[bot] [Wed, 20 Oct 2021 22:36:28 +0000 (15:36 -0700)]
[release/6.0] Tweak workload build to use _GenerateMsiVersionString target (#60695)

* Tweak workload build to use _GenerateMsiVersionString target

Replaces GenerateVersions that wasn't quite accurate enough for what we need

* Pulled in arcade target that will be removed at a later date

* More tweaks

* Forget dependsontargets

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
3 years ago[release/6.0] Update dependencies from dotnet/icu dotnet/emsdk dotnet/runtime-assets...
dotnet-maestro[bot] [Wed, 20 Oct 2021 14:00:53 +0000 (07:00 -0700)]
[release/6.0] Update dependencies from dotnet/icu dotnet/emsdk dotnet/runtime-assets dotnet/arcade (#60495)

* Update dependencies from https://github.com/dotnet/runtime-assets build 20211015.1

Microsoft.DotNet.CilStrip.Sources , System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData
 From Version 6.0.0-beta.21514.1 -> To Version 6.0.0-beta.21515.1

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21514.2 -> To Version 6.0.0-beta.21515.3

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

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 6.0.0-rtm.21513.2 -> To Version 6.0.0-rtm.21515.1

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

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

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

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

* [wasm] Fix workload install for tests, with 6.0.0

Move to using the generated nuget.config, which has the feeds added by
darc. The target is a duplicate from
`src/installer/tests/PrepareTestAssets/PrepareTestAssets.proj`, and
should be moved to a common location in future.

Thanks to @lewing for the suggestion.

* [wasm] Remove unused bits

* Update dependencies from https://github.com/dotnet/runtime-assets build 20211018.1

Microsoft.DotNet.CilStrip.Sources , System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData
 From Version 6.0.0-beta.21514.1 -> To Version 6.0.0-beta.21518.1

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21514.2 -> To Version 6.0.0-beta.21519.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
3 years ago[release/6.0] Don't special case "Experimental" projects (#60643)
github-actions[bot] [Tue, 19 Oct 2021 23:27:01 +0000 (16:27 -0700)]
[release/6.0] Don't special case "Experimental" projects (#60643)

* Don't special case "Experimental" projects

We only have one experimental project, System.Runtime.Experimental and
we want it to behave like any other package.

* Make coreclr packages use `IsShipping`

Co-authored-by: Eric StJohn <ericstj@microsoft.com>
3 years ago[release/6.0] Fix stable builds for some transport packages (#60635)
Matt Mitchell [Tue, 19 Oct 2021 23:21:40 +0000 (16:21 -0700)]
[release/6.0] Fix stable builds for some transport packages (#60635)

* Fix stable builds for some transport packages
Some non-shipping transport and sources packages were getting incorrectly getting stable versions. This didn't show up in the servicing excercise, though they probably did the right thing for unrelated reasons.

* Fix transport package version by not using PackageVersion property on workloads-testing.targets

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
3 years agoUpdate mac installers location string (#60500)
github-actions[bot] [Tue, 19 Oct 2021 17:08:51 +0000 (10:08 -0700)]
Update mac installers location string (#60500)

Co-authored-by: sfoslund <sfoslund@microsoft.com>
3 years ago[release/6.0] Enforce scatter/gather file I/O Windows API requirements et. al. (...
github-actions[bot] [Tue, 19 Oct 2021 17:02:56 +0000 (10:02 -0700)]
[release/6.0] Enforce scatter/gather file I/O Windows API requirements et. al. (#58423)

* Move checking and pinning Windows vectored I/O buffers to a dedicated method.

* Refactor the scatter/gather APIs to use the common checking method.

And use pinned GCHandles and IntPtrs instead of MemoryHandles when passing the segment array to the bottom-most method.

* Shorten the name of the buffer-checking method.

* Directly get the pinned array's address instead of calling GCHandle.AddrOfPinnedObject.

* Refactor the error handling logic in TryPrepareScatterGatherBuffers.

* Allocate the segment array from native memory and at TryPrepareScatterGatherBuffers.

* Cache the page size on a static readonly field and add a couple of TODOs.

* Make the memory handlers readonly structs.

* Add a test.

* Reorder some methods with PR feedback taken into consideration.

* Stop special-casing scatter/gather operations with zero or one buffer.

* Factor the cleaning-up of the segment buffers into a separate method.

* Follow up on Scatter/Gather API changes (#58447)

* Allocate an array of memory handles only if needed.

* Remove an unnecessary variable in the multiple-syscall write gather.

* Actually verify the content read by the read scatter operation.

* Delay allocating native memory.

* Verify that the whole file was read in the scatter/gather test.

* Test the case when the scatter/gather buffers are acceptable by the Windows API.

* Avoid null pointer dereferences when passing an empty segment array.

* Test performing scatter/gather I/O with an empty segment array.

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Theodore Tsirpanis <teo.tsirpanis.718@gmail.com>
Co-authored-by: Theodore Tsirpanis <12659251+teo-tsirpanis@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years ago[release/6.0] Use custom error message when running out of syncblocks (#60592)
github-actions[bot] [Tue, 19 Oct 2021 17:01:37 +0000 (10:01 -0700)]
[release/6.0] Use custom error message when running out of syncblocks (#60592)

* Use custom error message when running out of syncblocks

Contributes to #49215

* Update src/coreclr/dlls/mscorrc/mscorrc.rc

update message

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Manish Godse <61718172+mangod9@users.noreply.github.com>
3 years ago[release/6.0] Update IntelliSense package (#60621)
github-actions[bot] [Tue, 19 Oct 2021 17:01:06 +0000 (10:01 -0700)]
[release/6.0] Update IntelliSense package (#60621)

* Update IntelliSense package

* Fixed package version

Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>
Co-authored-by: carlossanlop <1175054+carlossanlop@users.noreply.github.com>
3 years ago[release/6.0] Stabilize for RTM (#60294)
Matt Mitchell [Tue, 19 Oct 2021 01:53:32 +0000 (18:53 -0700)]
[release/6.0] Stabilize for RTM (#60294)

* Stabilize for RTM

* revert xunit version to fix MEDIspecificationTests package

* pass the correct wasm package version and disable the coreclr failing test

* Update wcf and system.data.sqlclient compat pack dependencies

* Update WCF dependencies

Co-authored-by: Anirudh Agnihotry <anagniho@microsoft.com>
Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
3 years ago[release/6.0] Update THIRD-PARTY-NOTICES.TXT (#60092)
Nikola Milosavljevic [Mon, 18 Oct 2021 21:03:44 +0000 (14:03 -0700)]
[release/6.0] Update THIRD-PARTY-NOTICES.TXT (#60092)

* Update THIRD-PARTY-NOTICES.TXT

* Regenerating to incorporate a change in infra

* Fixes for duplicate instance and misplaced header

* Remove duplicate corefx header

3 years agoUpdate NetFramework.ReferenceAssemblies version to 1.0.2 (#60554)
Eric Erhardt [Mon, 18 Oct 2021 18:19:08 +0000 (13:19 -0500)]
Update NetFramework.ReferenceAssemblies version to 1.0.2 (#60554)

3 years agoRevert "Update IntelliSense package (#60488)" (#60567)
Anirudh Agnihotry [Mon, 18 Oct 2021 17:56:01 +0000 (10:56 -0700)]
Revert "Update IntelliSense package (#60488)" (#60567)

This reverts commit f39a90b2778665046d56b5699e89ff7f305bd353.

3 years agoUpdate IntelliSense package (#60488)
github-actions[bot] [Mon, 18 Oct 2021 17:42:22 +0000 (10:42 -0700)]
Update IntelliSense package (#60488)

Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>
3 years ago[release/6.0] Fix Int32 overflow bug in buffering logic (#60460)
github-actions[bot] [Mon, 18 Oct 2021 16:06:27 +0000 (10:06 -0600)]
[release/6.0] Fix Int32 overflow bug in buffering logic (#60460)

* add a failing test

* fix the bug in BufferedFileStreamStrategy

* extend the test and fix it in the BufferedStream as well

* large files are currently not supported on WASM

* Apply suggestions from code review

Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
* Exclude test from running in 32 bits

* fix the ConditionalFact attribute usage

Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: David Cantu <dacantu@microsoft.com>
3 years ago[wasm] Fix typedef for non-void interp entry callbacks (#59990)
github-actions[bot] [Mon, 18 Oct 2021 05:07:24 +0000 (22:07 -0700)]
[wasm] Fix typedef for non-void interp entry callbacks (#59990)

For UnmanagedCallersOnly methods that return non-void, pass the address of the
return variable to the interp entry method.

Co-authored-by: Aleksey Kliger <alklig@microsoft.com>
3 years ago[reflection] Initialize default ALC gchandle in GetLoadContext (#60399)
github-actions[bot] [Fri, 15 Oct 2021 23:59:37 +0000 (16:59 -0700)]
[reflection] Initialize default ALC gchandle in GetLoadContext (#60399)

If we try to get the ALC of an assembly from the default context before the
managed default ALC object has been created, the native gchandle has a null
target.
Ensure it is not null by explicitly referencing the Default ALC.

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

Co-authored-by: Aleksey Kliger <alklig@microsoft.com>
3 years ago[release/6.0] Remove duplicate entries from dotnet --info (#60446)
github-actions[bot] [Fri, 15 Oct 2021 22:09:32 +0000 (15:09 -0700)]
[release/6.0] Remove duplicate entries from dotnet --info (#60446)

* Remove duplicate entries from dotnet --info

* Remove trailing slashes from globally registered locations as well

* PR feedback

Co-authored-by: Eric StJohn <ericstj@microsoft.com>
Co-authored-by: vitek-karas <vitek.karas@microsoft.com>
3 years ago[release/6.0] Apply custom Message and Url to all [RequiresPreviewFeatures] attribute...
Jeff Handley [Fri, 15 Oct 2021 19:43:21 +0000 (12:43 -0700)]
[release/6.0] Apply custom Message and Url to all [RequiresPreviewFeatures] attributes (#60456)

* Apply custom messages and urls to all generic math [RequiresPreviewFeatures] attributes

* Update AvxVnni message and remove the url

Co-authored-by: Buyaa Namnan <bunamnan@microsoft.com>
3 years ago[release/6.0] Move 2 Drawing APIs that are not implemented in netfx to netcoreapp3...
Santiago Fernandez Madero [Fri, 15 Oct 2021 16:48:15 +0000 (09:48 -0700)]
[release/6.0] Move 2 Drawing APIs that are not implemented in netfx to netcoreapp3.1 or later (#60371)

3 years ago[release/6.0] Update dependencies from dotnet/emsdk dotnet/runtime-assets dotnet...
dotnet-maestro[bot] [Fri, 15 Oct 2021 14:36:45 +0000 (07:36 -0700)]
[release/6.0] Update dependencies from dotnet/emsdk dotnet/runtime-assets dotnet/arcade (#60398)

* Update dependencies from https://github.com/dotnet/runtime-assets build 20211014.1

Microsoft.DotNet.CilStrip.Sources , System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData
 From Version 6.0.0-beta.21511.1 -> To Version 6.0.0-beta.21514.1

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

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.0-rtm.21512.1 -> To Version 6.0.0-rtm.21514.1

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21513.3 -> To Version 6.0.0-beta.21514.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years agoFix VS4Mac crash report and core dump generation perf problems (#60319)
Mike McLaughlin [Thu, 14 Oct 2021 19:08:26 +0000 (12:08 -0700)]
Fix VS4Mac crash report and core dump generation perf problems (#60319)

This is a VS4Mac show stopper. The performance (4 min or so) of taking a core dump
when VS4Mac crashes or hangs is unacceptable.

Backport of #60205

Refactor the DAC enumerate memory region phase out of gather crash info

This is so the crash report json is written and available before the core
dump which for VS4Mac currently takes 4 minutes.

Since on both Linux and MacOS all the RW regions have been already added
by createdump itself for heap dumps, then the sometimes slow (4 minutes for
VS4Mac) heap enum memory region is changed to the faster normal one. It adds
necessary DAC globals, etc. without the costly assembly, module, class, type
runtime data structure enumeration.

This fast heap dumps is opt'ed in with COMPlus_DbgEnableFastHeapDumps=1 env var to mitigate the
risk of something missing from these dumps.

Tested creating a crash report/core dump against VS4Mac process. Ran all the SOS tests on MacOS and Linux against this change.

Low since there is an opt-in env var that enables the most risk part.

3 years agoFix CRC32 encoding (#60360)
github-actions[bot] [Thu, 14 Oct 2021 19:07:49 +0000 (12:07 -0700)]
Fix CRC32 encoding (#60360)

On x64, when the crc32 instruction 2nd operand is a memory address
(such as for a static field), and that address is containable
(which normally doesn't happen, because the address will be above
the 4GB lower address space), then the instruction was being
improperly encoded.

Co-authored-by: Bruce Forstall <brucefo@microsoft.com>
3 years ago[release/6.0] Update dependencies from dotnet/arcade dotnet/icu (#60361)
dotnet-maestro[bot] [Thu, 14 Oct 2021 06:34:05 +0000 (23:34 -0700)]
[release/6.0] Update dependencies from dotnet/arcade dotnet/icu (#60361)

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21512.4 -> To Version 6.0.0-beta.21513.3

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

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 6.0.0-rtm.21507.1 -> To Version 6.0.0-rtm.21513.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years ago[release/6.0] Fix: CTS.TryReset() concurrency issue #60182 (#60323)
github-actions[bot] [Wed, 13 Oct 2021 22:48:14 +0000 (18:48 -0400)]
[release/6.0] Fix: CTS.TryReset() concurrency issue #60182 (#60323)

* Quick fix of #60182

* Fixed reset condition when there is no timer

* Simplify branching

Co-authored-by: sakno <roman.sakno@gmail.com>
3 years agoMerge pull request #60358 from hoyosjs/juhoyosa/merge-rc2-rel
Juan Hoyos [Wed, 13 Oct 2021 22:27:11 +0000 (15:27 -0700)]
Merge pull request #60358 from hoyosjs/juhoyosa/merge-rc2-rel

Merge RC2 tag into release/6.0 branch

3 years agoMerge tag 'v6.0.0-rc.2.21480.5' into juhoyosa/merge-rc2-rel
Juan Sebastian Hoyos Ayala [Wed, 13 Oct 2021 19:01:48 +0000 (12:01 -0700)]
Merge tag 'v6.0.0-rc.2.21480.5' into juhoyosa/merge-rc2-rel

3 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20211012.4 (#60337)
dotnet-maestro[bot] [Wed, 13 Oct 2021 17:33:22 +0000 (10:33 -0700)]
Update dependencies from https://github.com/dotnet/arcade build 20211012.4 (#60337)

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21511.3 -> To Version 6.0.0-beta.21512.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years agoMake upgrade install new host first, then uninstall old (#60317)
github-actions[bot] [Wed, 13 Oct 2021 13:56:09 +0000 (06:56 -0700)]
Make upgrade install new host first, then uninstall old (#60317)

This should preserve the ordering of PATH, since the old MSI will never
remove its entry.

Co-authored-by: Eric StJohn <ericstj@microsoft.com>
3 years agoFinish59071 update ci argsh for r6.0 (#60100)
Parker Bibus [Wed, 13 Oct 2021 07:14:27 +0000 (02:14 -0500)]
Finish59071 update ci argsh for r6.0 (#60100)

* Updated channel passed to ci_setup in the performance-setup.sh file.

(cherry picked from commit e4416cb4cf6bee2234cf2536bf911045108d42c9)

* Removed spaces from assignments so they are seen as actual variabls, and tested locally.

(cherry picked from commit bf4d5a235d088515157173ddc0fe07a31abe2ad5)

3 years ago[release/6.0] Update dependencies from dotnet/runtime-assets dotnet/arcade dotnet...
dotnet-maestro[bot] [Wed, 13 Oct 2021 05:47:05 +0000 (22:47 -0700)]
[release/6.0] Update dependencies from dotnet/runtime-assets dotnet/arcade dotnet/emsdk (#60217)

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21507.1 -> To Version 6.0.0-beta.21508.2

* Update dependencies from https://github.com/dotnet/runtime-assets build 20211011.1

Microsoft.DotNet.CilStrip.Sources , System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData
 From Version 6.0.0-beta.21504.1 -> To Version 6.0.0-beta.21511.1

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21507.1 -> To Version 6.0.0-beta.21511.3

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

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.0-rtm.21505.3 -> To Version 6.0.0-rtm.21512.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years ago[release/6.0] Eliminate pre-built assets during source-build (#60315)
Eric Erhardt [Wed, 13 Oct 2021 05:46:03 +0000 (00:46 -0500)]
[release/6.0] Eliminate pre-built assets during source-build (#60315)

* Remove RefOnly dependency versions

This allows for source-build to replace these versions with source-built versions.

* Eliminate usages of pre-built packages during source-build

* Don't build MSBuild tasks for netfx during source-build
* Don't build Microsoft.Windows.Compatibility during source-build
* Don't build test projects during source-build
* Don't restore Microsoft.DiaSymReader.Native
* Don't build source generators that target older Roslyn versions
* Don't build ILStripTask since it uses a Mono.Cecil "sources" NuGet package that isn't part of source-build

* PR feedback

Fix test build

3 years ago[release/6.0] Add osx-arm64.runtime.native.System.IO.Ports (#60084)
Sean Mollet [Wed, 13 Oct 2021 05:38:10 +0000 (00:38 -0500)]
[release/6.0] Add osx-arm64.runtime.native.System.IO.Ports (#60084)

* Add runtime.osx-arm64.runtime.native.System.IO.Ports proj file for packaging.
Tested on actual osx-arm64 hardware, resulting package works correctly.

* Update src/libraries/System.IO.Ports/pkg/runtime.osx-arm64.runtime.native.System.IO.Ports.proj

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
3 years agoUpdate Package Validation dependency and update Suppression files (#60306)
Jose Perez Rodriguez [Wed, 13 Oct 2021 03:56:10 +0000 (20:56 -0700)]
Update Package Validation dependency and update Suppression files (#60306)

3 years ago[release/6.0] Prevent runtime prop metadata retrieval when [JsonIgnore] is used ...
github-actions[bot] [Tue, 12 Oct 2021 19:00:36 +0000 (12:00 -0700)]
[release/6.0] Prevent runtime prop metadata retrieval when [JsonIgnore] is used (#60299)

* Prevent runtime prop metadata retrieval when [JsonIgnore] is used

* Address feedback

* Re-add ctor param default handling tests

* Remove new concurrent dictionary for generic method holders

Co-authored-by: Layomi Akinrinade <laakinri@microsoft.com>
3 years ago[release/6.0] Fallback to read/write if pread/pwrite fails (#60280)
github-actions[bot] [Tue, 12 Oct 2021 19:00:08 +0000 (12:00 -0700)]
[release/6.0] Fallback to read/write if pread/pwrite fails (#60280)

* Fallback to read/write if pread/pwrite fails

* * Cache whether a handle supports random access * Keep avoiding pread/pwrite for unseekable files * Fallback to read/write only for known error ENXIO

* Test more device paths and add tests for WriteAll*

* Fix CI: skip test when device can't be opened

* * Do not use SkipTestException * Exclude EBADF from assertion

* use NullableBool in _supportsRandomAccess

* Add tests for mkfifo and socketpair

* Rename test file

* Address feedback in src

* Address suggestions

* Address suggestions

* Update src/libraries/System.IO.FileSystem/tests/FileStream/DevicesPipesAndSockets.cs

Use Lazy for thread-safety

Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
* Use IEnumerable<string> in Lazy and fix usages

Co-authored-by: David Cantu <jozkee@macbook.lan>
Co-authored-by: Jozkee <dacantu@microsoft.com>
Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
3 years agoFixed exception type for ConnectionShutdownInitiatedByTransport (#60244)
github-actions[bot] [Tue, 12 Oct 2021 17:35:39 +0000 (11:35 -0600)]
Fixed exception type for ConnectionShutdownInitiatedByTransport (#60244)

Co-authored-by: ManickaP <mapichov@microsoft.com>
3 years agoFix issue in decommit_ephemeral_segment_pages (segment case). (#60170)
github-actions[bot] [Mon, 11 Oct 2021 21:05:08 +0000 (14:05 -0700)]
Fix issue in decommit_ephemeral_segment_pages (segment case). (#60170)

We assume that we can use half the free list space in gen 0 for new allocation. If that is too optimistic, we may allocate into decommitted memory and crash in the allocator. That is because there is a race condition between the allocating thread and the decommitting thread - we decided to avoid that by making sure we would never decommit memory that we may allocate in gen 0.

There are two reasons why assuming we can use half the free list space for new allocations may be too optimistic:
 - if we allocate large objects in gen 0, we may not have free spaces of the necessary size available.
- when background GC goes into background_ephemeral_sweep, it deletes and rebuilds the free list for gen 0. A thread trying to allocate during that time may see a completely empty free list.

Co-authored-by: Peter Sollich <petersol@microsoft.com>
3 years agoFix GetGenerationWithRange when we have a gen 2 object in the ephemeral segment ...
Andrew Au [Mon, 11 Oct 2021 06:53:06 +0000 (23:53 -0700)]
Fix GetGenerationWithRange when we have a gen 2 object in the ephemeral segment (#60189) (#60207)

3 years ago[release/6.0] Regression Fix - Update HostFactoryResolver, set the app name via an...
github-actions[bot] [Sat, 9 Oct 2021 00:20:15 +0000 (17:20 -0700)]
[release/6.0] Regression Fix - Update HostFactoryResolver, set the app name via an argument (#60132)

3 years ago[release/6.0] SafeFileHandle.Unix: don't DeleteOnClose when lock is not successful...
Tom Deseyn [Fri, 8 Oct 2021 22:59:07 +0000 (00:59 +0200)]
[release/6.0] SafeFileHandle.Unix: don't DeleteOnClose when lock is not successful. (#60112)

* SafeFileHandle.Unix: don't DeleteOnClose when lock is not succesful.

In https://github.com/dotnet/runtime/pull/55153 DeleteOnClose handling
moved from FileStream to SafeFileHandle.

This unintentionally caused DeleteOnClose to be applied even when
FileShare locking fails. As on Windows, DeleteOnClose should not take
effect when sharing prevents the file from being opened.

This also swaps the order of unlink and LOCK_UN in Dispose as it was
prior to https://github.com/dotnet/runtime/pull/55153.
Either order should be fine.

* test: add ConditionalFact IsFileLockingEnabled

3 years ago[release/6.0] Produce symbols archives (#59843)
github-actions[bot] [Fri, 8 Oct 2021 19:13:13 +0000 (12:13 -0700)]
[release/6.0] Produce symbols archives (#59843)

* Produce symbols archives.

Contributes to #49026

* Backport official build fix from #60096 to keep this PR from breaking the official build.

Co-authored-by: Jeremy Koritzinsky <jekoritz@microsoft.com>
Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
3 years agoMerge pull request #59810 from dotnet-maestro-bot/merge/release/6.0-rc2-to-release/6.0
Anirudh Agnihotry [Fri, 8 Oct 2021 19:12:51 +0000 (12:12 -0700)]
Merge pull request #59810 from dotnet-maestro-bot/merge/release/6.0-rc2-to-release/6.0

[automated] Merge branch 'release/6.0-rc2' => 'release/6.0'

3 years ago[release/6.0] Update dependencies from dotnet/emsdk dotnet/icu dotnet/runtime-assets...
dotnet-maestro[bot] [Fri, 8 Oct 2021 19:11:55 +0000 (12:11 -0700)]
[release/6.0] Update dependencies from dotnet/emsdk dotnet/icu dotnet/runtime-assets dotnet/arcade (#59895)

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21477.9 -> To Version 6.0.0-beta.21479.4

* Update dependencies from https://github.com/dotnet/runtime-assets build 20211004.1

Microsoft.DotNet.CilStrip.Sources , System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData
 From Version 6.0.0-beta.21479.2 -> To Version 6.0.0-beta.21504.1

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

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.0-rc.2.21474.1 -> To Version 6.0.0-rtm.21505.2

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

Microsoft.NET.Workload.Emscripten.Manifest-6.0.100
 From Version 6.0.0-rc.2.21474.1 -> To Version 6.0.0-rtm.21505.3

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21477.9 -> To Version 6.0.0-beta.21505.8

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21477.9 -> To Version 6.0.0-beta.21506.2

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

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21477.9 -> To Version 6.0.0-beta.21507.1

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

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 6.0.0-rtm.21474.1 -> To Version 6.0.0-rtm.21507.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years ago[release/6.0] Check BackgroundService.ExecuteTask for null (#60177)
github-actions[bot] [Fri, 8 Oct 2021 19:09:07 +0000 (12:09 -0700)]
[release/6.0] Check BackgroundService.ExecuteTask for null (#60177)

* Check BackgroundService.ExecuteTask for null

In some scenarios, derived classes might not have called base.StartAsync, and ExecuteTask will still be null. Ensure we don't fail in those cases.

Fix #60131

* PR feedback

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
3 years ago[release/6.0] Override `corehost_resolve_component_dependencies` and `corehost_set_er...
github-actions[bot] [Fri, 8 Oct 2021 19:08:24 +0000 (12:08 -0700)]
[release/6.0] Override `corehost_resolve_component_dependencies` and `corehost_set_error_writer` PInvokes in singlefile scenario. (#60111)

* Override `corehost_resolve_component_dependencies` and `corehost_set_error_writer` PInvokes in singlefile scenario.

* fix for GCC

* Fixes the test failures when hostpolicy is used at runtime.

Co-authored-by: vsadov <8218165+VSadov@users.noreply.github.com>
Co-authored-by: vitek-karas <vitek.karas@microsoft.com>
3 years agoFix issue with incorrect handling of optimized method layouts - The sort order of...
github-actions[bot] [Fri, 8 Oct 2021 16:52:27 +0000 (09:52 -0700)]
Fix issue with incorrect handling of optimized method layouts - The sort order of the RuntimeFunctions table (among others) was not properly handled when an optimized method layout was applied - While this bug applied to non-composite builds, it was easily reproduced with a composite build - Fix lack of test infrastructure around non-standard method layouts. - Add new random method sorting order - Use new random sorting order in crossgen2 test passes (#60109)

Fixes #59089

Co-authored-by: David Wrighton <davidwr@microsoft.com>
3 years agoChange profilers to use thread local evacuation counters (#59741) (#60116)
David Mason [Fri, 8 Oct 2021 16:52:01 +0000 (09:52 -0700)]
Change profilers to use thread local evacuation counters (#59741) (#60116)

* Change profilers to use thread local evacuation counters

Change to prefix increment

* get rid of lambdas

* Fix jit inlining, fix R2R too

* Remove VolatilePtr<> from helpers

* Get rid of additionalData argument

3 years ago[release/6.0] Fix TimeZones Test failure (#60150)
github-actions[bot] [Fri, 8 Oct 2021 02:48:28 +0000 (19:48 -0700)]
[release/6.0] Fix TimeZones Test failure (#60150)

3 years ago[mono] Fix libcoreclr.so build incompatibilities on Linux (#60077)
github-actions[bot] [Thu, 7 Oct 2021 17:32:19 +0000 (13:32 -0400)]
[mono] Fix libcoreclr.so build incompatibilities on Linux (#60077)

Backport of #59988

* Link with -z relro -z now to enable full RELRO mode
  Fixes https://github.com/dotnet/runtime/issues/59904

* Generate and link in version.c to provide version string
  Fixes https://github.com/dotnet/source-build/issues/2484

Co-authored-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
3 years agoEnable host.pkg subset in source-build (#60069)
Michael Simons [Thu, 7 Oct 2021 17:17:27 +0000 (12:17 -0500)]
Enable host.pkg subset in source-build (#60069)

3 years ago[release/6.0] Show error dialog in single-file app when runtime is missing (#60045)
Andy Gocke [Thu, 7 Oct 2021 05:33:51 +0000 (22:33 -0700)]
[release/6.0] Show error dialog in single-file app when runtime is missing (#60045)

* Show dialog when running .NET 6 GUI single-file on 5.0 hostfxr (#59929)

Show dialog when running .NET 6 GUI single-file on 5.0 hostfxr

(cherry picked from commit 2f76c088d6ca9d734e9a481aebb5c382085f5ae2)

* Fixes based on feedback for the original #59929 (#59967)

Co-authored-by: Elinor Fung <elfung@microsoft.com>
(cherry picked from commit 3d171f9a6e78770f66cb861de007ec91c407a803)

Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>
3 years ago[release/6.0] Fix incorrect tracking of sign bit in BigInteger (#59951)
github-actions[bot] [Wed, 6 Oct 2021 23:45:07 +0000 (17:45 -0600)]
[release/6.0] Fix incorrect tracking of sign bit in BigInteger (#59951)

* Fix incorrect tracking of sign bit

* Perform the 1 check earlier

* Add comment on checking special pattern

* Simplify fix

* Update the test to target 32 bit right shift as the logic has been restricted to that

* Remove stray newline

Co-authored-by: Wei Zheng <13881045+wzchua@users.noreply.github.com>
3 years agoFix byte array handling in STJ sourcegen (#60004)
github-actions[bot] [Wed, 6 Oct 2021 23:44:21 +0000 (17:44 -0600)]
Fix byte array handling in STJ sourcegen (#60004)

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
3 years ago[release/6.0][wasm] Fix codeql checks (#59839)
Larry Ewing [Wed, 6 Oct 2021 22:29:55 +0000 (17:29 -0500)]
[release/6.0][wasm] Fix codeql checks (#59839)

Fixes #59147 for release/6.0 a console method is called
with both a concatenated format string and multiple arguments.

3 years ago[mono][jit] Fix a JIT assert. (#59869)
github-actions[bot] [Wed, 6 Oct 2021 22:29:28 +0000 (18:29 -0400)]
[mono][jit] Fix a JIT assert. (#59869)

Backport of #59861

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

3 years ago[release/6.0] Build improvements based on feedback (#59671)
Ankit Jain [Wed, 6 Oct 2021 22:21:58 +0000 (22:21 +0000)]
[release/6.0] Build improvements based on feedback (#59671)

Backport of #59391

- Fix to handle pinvokes with function pointers, which resolves issue found testing new customer scenario with sqlite

- Fixes version of System.Reflection.MetadataLoadContext bundled with WasmBuilderApp task, to use the same as other tasks

- Fix for an incremental build issue where the compiled native .o files would
incorrectly get deleted after linking. And that would cause them to be
recompiled, unnecessarily increasing the build time.

- Change the default optimization flag used when building for Debug config
from -Oz to -O1 to improve development loop experience.

3 years agoUpdate signed wix version to 1.0.0-v3.14.0.5722 (#60008)
Larry Ewing [Wed, 6 Oct 2021 03:29:24 +0000 (22:29 -0500)]
Update signed wix version to 1.0.0-v3.14.0.5722 (#60008)

3 years agoAvoid resetting gen0 bricks for background_sweep (#59106) (#59960)
Andrew Au [Tue, 5 Oct 2021 17:34:44 +0000 (10:34 -0700)]
Avoid resetting gen0 bricks for background_sweep (#59106) (#59960)

3 years agoFix unmatched transition callback in JIT_ReversePInvokeExitTrackTransitions (#59939)
github-actions[bot] [Mon, 4 Oct 2021 18:33:40 +0000 (11:33 -0700)]
Fix unmatched transition callback in JIT_ReversePInvokeExitTrackTransitions (#59939)

Fixes #59917

Co-authored-by: Ilia K <ki.stfu@gmail.com>
3 years agoFix code heap reservation size (#59918)
github-actions[bot] [Mon, 4 Oct 2021 18:32:29 +0000 (11:32 -0700)]
Fix code heap reservation size (#59918)

When I've moved the heap metadata out of the actual code heaps some time
ago, I've forgotten to account for the personality routine slot
allocated at the beginning of the heaps. This was exposed by an assert when
executing under the JIT stress mode 2.

This change fixes it by adding accounting for those.

Close #59794

Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
3 years agoEnable doc generation for source-build (#59937)
Michael Simons [Mon, 4 Oct 2021 17:42:08 +0000 (12:42 -0500)]
Enable doc generation for source-build (#59937)

3 years ago[release/6.0] Do not flush serializer buffers before first IAsyncEnumerable element...
github-actions[bot] [Mon, 4 Oct 2021 17:41:34 +0000 (10:41 -0700)]
[release/6.0] Do not flush serializer buffers before first IAsyncEnumerable element is fetched (#59865)

* Do not flush serializer buffers before first IAsyncEnumerable element is fetched

* add debug assertion

* address feedback

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
3 years agoUpdate workload localization file directory structure (#59827)
Sarah Oslund [Mon, 4 Oct 2021 16:00:27 +0000 (09:00 -0700)]
Update workload localization file directory structure (#59827)

Fixing a bug in #59379, part of dotnet/sdk#20497

Workload/SDK logic only copies content in the data directory, so moving the localize directory into the proper location to be picked up and laid down on disk.

3 years agoFix Unix ARM64 RtlRestoreContext implementation (#59849)
github-actions[bot] [Mon, 4 Oct 2021 14:29:53 +0000 (07:29 -0700)]
Fix Unix ARM64 RtlRestoreContext implementation (#59849)

The RtlRestoreContext sets SP before reading out PC from the
context. That can lead to a corruption of the PC in the context
if an async signal is delivered to the thread  or the thread is
interrupted by any other mean after the SP is set and before
the value of PC is extracted from the context.

This change fixes it by setting the SP after both PC and SP values
are read from the context data structure.

Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
3 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20210927.9 (#59859)
dotnet-maestro[bot] [Fri, 1 Oct 2021 19:50:55 +0000 (12:50 -0700)]
Update dependencies from https://github.com/dotnet/arcade build 20210927.9 (#59859)

Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , 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.CodeAnalysis , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.GenFacades , Microsoft.DotNet.GenAPI , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk
 From Version 6.0.0-beta.21473.5 -> To Version 6.0.0-beta.21477.9

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years ago[release/6.0] Update dependencies from dotnet/icu dotnet/arcade dotnet/runtime-assets...
dotnet-maestro[bot] [Fri, 1 Oct 2021 15:58:07 +0000 (08:58 -0700)]
[release/6.0] Update dependencies from dotnet/icu dotnet/arcade dotnet/runtime-assets (#59226)

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

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 6.0.0-rc.2.21428.1 -> To Version 6.0.0-rtm.21466.1

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

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 6.0.0-rc.2.21428.1 -> To Version 6.0.0-rtm.21474.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20210929.2

Microsoft.DotNet.CilStrip.Sources , System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.Numerics.TestData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData
 From Version 6.0.0-beta.21460.2 -> To Version 6.0.0-beta.21479.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years ago[release/6.0] Fix NRT warnings in source generated code (#59817)
github-actions[bot] [Fri, 1 Oct 2021 15:52:34 +0000 (08:52 -0700)]
[release/6.0] Fix NRT warnings in source generated code (#59817)

* Fix NRT warnings in source generated code

* address feedback

* address style

Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
3 years agoUpdate WCF dependencies on the compat pack (#59764) (#59820)
Santiago Fernandez Madero [Fri, 1 Oct 2021 02:38:19 +0000 (19:38 -0700)]
Update WCF dependencies on the compat pack (#59764) (#59820)

3 years agoDefine SystemReflectionMetadataStaticVersion for source-build (#59782)
Michael Simons [Thu, 30 Sep 2021 21:31:31 +0000 (16:31 -0500)]
Define SystemReflectionMetadataStaticVersion for source-build (#59782)

3 years agoMerge in 'release/6.0-rc2' changes
dotnet-bot [Thu, 30 Sep 2021 14:30:20 +0000 (14:30 +0000)]
Merge in 'release/6.0-rc2' changes

3 years agofix reuse buffer (#59775)
Thays Grazia [Thu, 30 Sep 2021 14:26:40 +0000 (11:26 -0300)]
fix reuse buffer (#59775)

3 years ago[release/6.0] Treat 'abstract' properties the same as 'virtual' for src-gen (#59771)
github-actions[bot] [Thu, 30 Sep 2021 00:50:10 +0000 (18:50 -0600)]
[release/6.0] Treat 'abstract' properties the same as 'virtual' for src-gen (#59771)

* Treat 'abstract' properties the same as 'virtual' for src-gen

* Change virtual detection; move test to common

Co-authored-by: Steve Harter <steveharter@users.noreply.github.com>
3 years agoSrc gen: use GetBestTypeByMetadataName instead of GetTypeByMetadataName (#59092)...
Steve Harter [Thu, 30 Sep 2021 00:49:48 +0000 (19:49 -0500)]
Src gen: use GetBestTypeByMetadataName instead of GetTypeByMetadataName (#59092) (#59774)

3 years ago[release/6.0] Revert bind single elements to array in configuration binder (#59733)
github-actions[bot] [Wed, 29 Sep 2021 19:22:24 +0000 (12:22 -0700)]
[release/6.0] Revert bind single elements to array in configuration binder (#59733)

* Revert "Apply feedback from PR #57204 (#57872)"

This reverts commit e4a455f26a91932f5de398f0082be83cb9678c36.

* Revert "Allow ConfigBinder to bind arrays to Singular elements (#57204)"

This reverts commit 7f595ce3f4b79f21a14c43cd87041db90dcd6ad7.

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
3 years ago[release/6.0] Fix Time Zone when running with Globalization Invariant Mode (#59727)
github-actions[bot] [Wed, 29 Sep 2021 04:53:56 +0000 (21:53 -0700)]
[release/6.0] Fix Time Zone when running with Globalization Invariant Mode (#59727)

3 years agoMerge pull request #59387 from dotnet-maestro-bot/merge/release/6.0-rc2-to-release/6.0
Marek Safar [Tue, 28 Sep 2021 08:37:41 +0000 (10:37 +0200)]
Merge pull request #59387 from dotnet-maestro-bot/merge/release/6.0-rc2-to-release/6.0

3 years agoAdd InstallLocation component to host (#59654)
github-actions[bot] [Mon, 27 Sep 2021 20:25:10 +0000 (13:25 -0700)]
Add InstallLocation component to host (#59654)

Co-authored-by: Eric StJohn <ericstj@microsoft.com>
3 years agoChange channel passed to ci_setup to track runtime branch (#59071)
Drew Scoggins [Mon, 27 Sep 2021 16:57:12 +0000 (09:57 -0700)]
Change channel passed to ci_setup to track runtime branch (#59071)

* Change channel passed to ci_setup to track runtime branch

With this change we move to specifing the channel that is passed to ci_setup,
instead of it always being main. The allows us to have the runtime branch
help decide the correct version of the sdk that we should pull down with
dotnet-install. This means that going forward, we will need to have channels
that match the names of all branches that we plan to run from the runtime
side. If we do not, the sdk installation step will fail during ci_setup.

* Change logic to not break private runs

The previous change here broke private runs as it required the channel map
to have an entry matching the name of the runtime branch you were testing.
This fix now defaults the channel to main for private runs.

3 years agoMerge in 'release/6.0-rc2' changes
dotnet-bot [Fri, 24 Sep 2021 23:49:55 +0000 (23:49 +0000)]
Merge in 'release/6.0-rc2' changes

3 years agoMerge pull request #59568 from steveharter/JsonDocumentArrayPool
Dan Moseley [Fri, 24 Sep 2021 23:46:38 +0000 (17:46 -0600)]
Merge pull request #59568 from steveharter/JsonDocumentArrayPool

[release/6.0-rc2] Fix ArrayPool leak with JsonDocument

3 years agoMerge in 'release/6.0-rc2' changes
dotnet-bot [Fri, 24 Sep 2021 22:07:09 +0000 (22:07 +0000)]
Merge in 'release/6.0-rc2' changes

3 years ago[release/6.0-rc2] Fix behavior ObjectCollection for single item contains (#59557)
github-actions[bot] [Fri, 24 Sep 2021 22:03:27 +0000 (15:03 -0700)]
[release/6.0-rc2] Fix behavior ObjectCollection for single item contains (#59557)

* Fix behavior ObjectCollection for single item contains

* Address PR feedback

Co-authored-by: Juan Sebastian Hoyos Ayala <juhoyosa@microsoft.com>
3 years agoMerge in 'release/6.0-rc2' changes
dotnet-bot [Fri, 24 Sep 2021 22:00:12 +0000 (22:00 +0000)]
Merge in 'release/6.0-rc2' changes

3 years agoMerge in 'release/6.0-rc2' changes
dotnet-bot [Fri, 24 Sep 2021 21:56:16 +0000 (21:56 +0000)]
Merge in 'release/6.0-rc2' changes

3 years ago[release/6.0-rc2] [wasm][debugger] Reusing buffer to avoid allocate every debugger...
github-actions[bot] [Fri, 24 Sep 2021 21:55:37 +0000 (14:55 -0700)]
[release/6.0-rc2] [wasm][debugger] Reusing buffer to avoid allocate every debugger message (#59523)

* Reusing buffer to avoid allocate every debugger message.

* Fixing what was suggested by @radical.

* cleaning code.

* Changing what was suggested by @radical

Co-authored-by: Thays <thaystg@gmail.com>
3 years agoMerge in 'release/6.0-rc2' changes
dotnet-bot [Fri, 24 Sep 2021 21:55:29 +0000 (21:55 +0000)]
Merge in 'release/6.0-rc2' changes