Commit Graph
114094 Commits
Author SHA1 Message Date
Fan Yang 3f6f3061bf Build mono by default (#61016) 2021-10-29 14:06:50 -04:00
dotnet-maestro[bot]anddotnet-maestro[bot] 7144c2f806 [main] Update dependencies from dnceng/internal/dotnet-optimization dotnet/arcade dotnet/roslyn-analyzers (#61004)
* Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build 20211028.1

optimization.linux-x64.MIBC.Runtime , optimization.windows_nt-x64.MIBC.Runtime , optimization.windows_nt-x86.MIBC.Runtime , optimization.PGO.CoreCLR
 From Version 1.0.0-prerelease.21527.1 -> To Version 1.0.0-prerelease.21528.1

* Update dependencies from https://github.com/dotnet/arcade build 20211028.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 7.0.0-beta.21527.5 -> To Version 7.0.0-beta.21528.3

* Update dependencies from https://github.com/dotnet/roslyn-analyzers build 20211028.1

Microsoft.CodeAnalysis.NetAnalyzers
 From Version 7.0.0-preview1.21527.1 -> To Version 7.0.0-preview1.21528.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-29 19:10:02 +02:00
Alexander Köplinger dc42fe390c Use Ubuntu 18.04 1ES pools and dotnet-buildtools-prereq docker images for enterprise linux pipeline (#61001)
Ubuntu 16.04 is no longer available on Azure Pipelines, move to 18.04 on 1ES pool and the Docker images from dotnet-buildtools-prereq.

Also add a workaround for https://github.com/dotnet/runtime/issues/34649 which we hit during the build.
2021-10-29 19:09:32 +02:00
dotnet-maestro[bot]anddotnet-maestro[bot] e5f3fa0ed0 Update dependencies from https://github.com/dotnet/linker build 20211028.2 (#61005)
Microsoft.NET.ILLink.Tasks
 From Version 7.0.100-1.21525.2 -> To Version 7.0.100-1.21528.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-29 16:48:22 +02:00
Pavel Savara 76e68dbee7 [wasm] preparation for module encapsulation (#60928)
- simplified fetch and script loading logic/polyfil
- clarified runtime-test.js based on Daniel's draft.
- extracted mono_wasm_invoke_js and mono_wasm_compile_function out of C macro into proper .ts function
- wrapped access to API via globalThis with warning on first use
- added cwraps.mono_wasm_add_assembly and cwraps.mono_wasm_load_runtime which Blazor uses
- fixed closures for generated functions, so that they don't use global Module reference
- mono_wasm_invoke_js now uses new Function instead of eval()
- removed deprecated Blazor functions
- fixed lint issues
Co-authored-by: Daniel Genkin <[email protected]>
2021-10-29 15:10:53 +02:00
Egor Bogatov b98b30b3b5 JIT: "Scaled" addressing mode on ARM (#60808) 2021-10-29 14:47:52 +03:00
Ulrich Weigand a6554f682a Disable DllImportGenerator tests on s390x (#60833)
* Runtime tests fail since App.Host package is not available

* Unit tests fail since NuGet.Packaging 5.6.0 signature verification
  does not work on big-endian systems (needs >= 5.11.0)
2021-10-29 12:41:48 +02:00
dotnet-maestro[bot]anddotnet-maestro[bot] fbec87228c [main] Update dependencies from dotnet/linker (#60619)
* Update dependencies from https://github.com/dotnet/linker build 20211018.3

Microsoft.NET.ILLink.Tasks
 From Version 7.0.100-1.21513.1 -> To Version 7.0.100-1.21518.3

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

Microsoft.NET.ILLink.Tasks
 From Version 7.0.100-1.21513.1 -> To Version 7.0.100-1.21519.3

* Update dependencies from https://github.com/dotnet/linker build 20211020.2

Microsoft.NET.ILLink.Tasks
 From Version 7.0.100-1.21513.1 -> To Version 7.0.100-1.21520.2

* Update dependencies from https://github.com/dotnet/linker build 20211025.2

Microsoft.NET.ILLink.Tasks
 From Version 7.0.100-1.21513.1 -> To Version 7.0.100-1.21525.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-29 11:23:44 +02:00
Mikhail Pilin d14c2ed2e6 Support ARM64/ARM environment variables for #53122. (#60916) 2021-10-28 20:18:14 -07:00
Andy Ayers 5a108e8db9 JIT: Improve VN for (EQ/NE (RELOP ...), 0/1) (#60943)
Try and re-express these VNs in terms of the RELOP or its complement.
2021-10-28 19:25:27 -07:00
Elinor Fung 8dfaac9649 Mark containing type for generated stub functions as unsafe (#60979) 2021-10-28 18:22:32 -07:00
Larry Ewing d7c96e8628 [mono][workload] Work around a msbuild bug in MatchOnMetadata (#60989)
* Work around a msbuild bug in MatchOnMetadata

* Reenable workload build tests and bump to a 7.0.100 sdk version
2021-10-28 19:30:29 -05:00
Jeremy Koritzinsky f06399b7bc Build the native prereqs in the build-jit-job.yml (#60981) 2021-10-28 16:13:39 -07:00
Buyaa Namnan 5613572898 Fix Equals overload logic for some methods of an array created using MLC (#60894) 2021-10-28 15:36:06 -07:00
Adeel MujahidandJuan Hoyos efdd9a68d0 Account for versioned VS in up-to-date check (#60970)
Co-authored-by: Juan Hoyos <[email protected]>
2021-10-28 15:23:58 -07:00
Andy Ayers c263d61ace Add historical note on optimizing aspects of Value Numbering (#60985) 2021-10-28 14:59:37 -07:00
Jeremy Koritzinsky 91a2296ea1 Fix more alloc-dealloc mismatches (#60691) 2021-10-28 13:55:06 -07:00
Andy Ayers a8a7dc5229 Script to collect asp.net benchmark method contexts for SPMI (#60953) 2021-10-28 13:02:36 -07:00
Steve Molloy 1304e0bdef Make noise if trying to use the cache after it's been disposed. (#57557) 2021-10-28 12:41:26 -07:00
Koundinya Veluri 00dec437a4 Fix a thread local test (#60892)
- Updated conditional fact to require precise GC for the test
- Fixes https://github.com/dotnet/runtime/issues/57102
2021-10-28 11:35:58 -07:00
Koundinya Veluri 47cbd0b680 Remove some redundant threading tests, move some cases to libraries tests (#59073)
* Remove some redundant threading tests, move some cases to libraries tests

- Went through some of the tests. Most of them appeared to be redundant. Added a few missing tests and ported a few tests from CoreRT.
- Closes https://github.com/dotnet/runtime/issues/6372, the test is being removed
2021-10-28 11:33:56 -07:00
Parker Bibus bc9682cd94 Mitigate NU1103 Error showing up during Maui Builds (#60946)
* Test allowing 'unstable' packages since maui is not finding stable packages for some of the extension packages.
2021-10-28 11:09:15 -07:00
Jeremy Koritzinsky 1ba75a614e Explicitly emit a diagnostic for ref returns in GeneratedDllImport stubs. (#60720) 2021-10-28 10:51:55 -07:00
dotnet-maestro[bot]anddotnet-maestro[bot] 58765de1d6 [main] Update dependencies from dnceng/internal/dotnet-optimization dotnet/xharness dotnet/arcade dotnet/emsdk dotnet/roslyn-analyzers dotnet/msquic (#60954)
* Update dependencies from https://github.com/dotnet/emsdk build 20211027.1

Microsoft.NET.Workload.Emscripten.Manifest-7.0.100
 From Version 7.0.0-alpha.1.21520.2 -> To Version 7.0.0-alpha.1.21527.1

* Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-optimization build 20211027.1

optimization.linux-x64.MIBC.Runtime , optimization.windows_nt-x64.MIBC.Runtime , optimization.windows_nt-x86.MIBC.Runtime , optimization.PGO.CoreCLR
 From Version 1.0.0-prerelease.21525.1 -> To Version 1.0.0-prerelease.21527.1

* Update dependencies from https://github.com/dotnet/xharness build 20211027.2

Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Xunit
 From Version 1.0.0-prerelease.21527.1 -> To Version 1.0.0-prerelease.21527.2

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

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 7.0.0-beta.21527.1 -> To Version 7.0.0-beta.21527.5

* Update dependencies from https://github.com/dotnet/roslyn-analyzers build 20211027.1

Microsoft.CodeAnalysis.NetAnalyzers
 From Version 7.0.0-preview1.21526.1 -> To Version 7.0.0-preview1.21527.1

* Update dependencies from https://github.com/dotnet/msquic build 20211027.1

System.Net.MsQuic.Transport
 From Version 6.0.0-preview.7.21526.1 -> To Version 6.0.0-preview.7.21527.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-28 12:34:55 -05:00
Bruce Forstall f26197dc9f Fix MD array helper intrinsics for complex this pointers (#60958)
The implementation of the MD array helpers didn't consider the possibility
of the array object being something complex, like a function call return value.

Also, add a test case covering many cases of invoking the MD array helpers.

Fixes #60957
2021-10-28 10:14:51 -07:00
Badre BSAILA a858050535 Make CryptQueryObject call compliant to interop guidelines 2021-10-28 09:25:04 -07:00
Steve Harter 293c8c26c2 Update JsonNode doc (#60925) 2021-10-28 11:23:59 -05:00
Katelyn Gadd 1b423c3184 Extract various changes from the invoke and custom marshaler PRs (#60877)
Various code cleanup and refactorings for the wasm bindings
2021-10-28 03:32:31 -07:00
Peter Sollich 966ca2972e Make memory mapped stress log work for child processes. (#60828)
Make memory mapped stress log work for child processes.

There are two kinds of changes:
- in case the stresslog file cannot be created, fall back to the in-memory implementation
- support "{pid}" embedded in the file name - this will be replaced by the PID of the current process.

This enables two modes of operation regarding child processes:

- if the stresslog filename given does not contain "{pid}", the parent process will create the file, but the child process will use the in-memory stresslog. useful when we are not interested in the child process.
- if the stresslog filename given does contain "{pid}", both parent and child will get their own stresslog file. useful when we are in fact interested in both.
2021-10-28 10:04:49 +02:00
SingleAccretion 3c1de2762e Fix build-native.cmd for direct use (#60926)
The parsing loop shifts away the parameters, making use of %~dp0 after
it incorrect. Fix that by caching the relevant information.
2021-10-27 21:46:21 -06:00
Anthony Shaw f3dab9b3fe Fix some typos in corhdr.h (#60895)
* Fix some typos in corhdr.h

* Remove "well known" namespace/attributes that aren't used in the CoreCLR libraries
2021-10-27 19:29:43 -07:00
Larry Ewing 95488fe85a [mono][workloads] Workload 7.0.100 (#60893)
* Update some version bits

* Substitute NetCoreAppCurrent value don't expand it

* Update the emsdk version to 7.0.x

* Disable Wasm.Build.Tests temporarily
2021-10-27 20:38:44 -05:00
Sergei Papikian f9507317fb IFormatProvider getter refactor (#60815)
* refactor: IFormatProvider getter

* refactor: inline
2021-10-27 18:03:50 -07:00
Tomas Weinfurt 781f53e5ce always populate TargetHostName on SslStream (#60589)
* always populte TargetHostName on SslStream

* update check for server
2021-10-27 17:55:49 -07:00
Elinor Fung 197ab5f77c [DllImportGenerator] Don't flag methods that already have GeneratedDllImport (#60929) 2021-10-27 17:42:04 -07:00
Andy Ayers 9e69826ca9 JIT: refactor jump threading to prepare for allowing side effects (#60884)
Update jump threading so that whenever possible it re-uses the original
block, rather than bypassing it. This lays the groundwork for a subsequent
change that will allow jump threading when the block with the threadable
jump has side effects.

Also handle the case where we have both a fall through pred and an ambiguous
pred, by treating the fall through pred as ambiguous.
2021-10-27 17:41:45 -07:00
Elinor Fung c4ba63951e Make PreferredAttributeOrder test ConditionalTheory (#60940) 2021-10-27 17:39:23 -07:00
Theodore Tsirpanis 8e9645ca4c Clean-up crossgen's NuGet dependencies et. al. (#59914)
* Remove two redundant package dependencies and update another one.
They were dragging along lots of packages, cluttering the dependency graph.

* Optimize crossgen's Program.IsValidPublicKey to use spans.

* Bring BinaryReader back in IsValidPublicKey.

And expedite a condition check that does not involve BinaryReader.
2021-10-27 16:36:55 -07:00
David Wrighton 555ac3aee0 Fix issue where sometimes we would find the same module twice and cause the dotnet-pgo tool to fail (#60874) 2021-10-27 16:25:20 -07:00
Andy Ayers 24db6c6808 Add 2009 Jit Architecture Plan (excerpts) (#60939)
We plan to gradually open up portions of historical documents that seem
relevant to our current work on the JIT.

This PR includes a writeup that is the inspiration for the current SSA
and Value Numbering designs.
2021-10-27 15:20:22 -07:00
Badre BSAILA c26abb7ee3 DateTimeMaskTest depends on the region configuration of the machine (#60840) 2021-10-27 14:50:53 -07:00
Eric Erhardt 8f8e8f0493 Update Codespaces configuration (#60900)
- mark onCreateCommand.sh as executable
- add more regions so users outside of West US can take advantage of prebuilt codespaces
- use v1-stable version, as recommended by docs
- use faster machines for dev productivity
2021-10-27 14:45:08 -05:00
Viktor Hofer 69270ff14b Add analyzer assemblies to code coverage (#60859)
* Add analyzer assemblies to code coverage

Instrument analyzer assemblies as well when measuring code coverage.
Filter out the ones which aren't referenced via the P2P protocol.

* Update coverage.targets
2021-10-27 20:03:14 +02:00
Přemek Vysoký a53e68eb22 Detect more XHarness exit codes, lower installation timeout (#60908) 2021-10-27 19:46:25 +02:00
4682098d3a Move optdata and version file generation up to MSBuild from build-runtime (#58674)
* Move optdata and version file generation from the native build scripts up into the managed scripts. The native build scripts will now by default copy a fallback version file in place if the version files do not exist and will disable PGO if no pgo file path is passed in to the build-runtime scripts.

This removes all cases of build-runtime calling into MSBuild.

* Update CI to use the new prereqs model.

* Remove some old MSBuild arg pass-through that's no longer needed as build-runtime no longer calls into any MSBuild processes.

* Apply suggestions from code review

Co-authored-by: Viktor Hofer <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>

* Move some targets around based on feedback.

* Output version files in the artifacts/obj dir so they can be easily shared.

* Move native pgo into a targets file instead of being a separate project to be more static-graph friendly.

* Fix subsets.

* Share version file path by default

* Fix VER_FILEDESCRIPTION_STR

* Fix version fallback copies.

* Fix include path for the version headers.

* Update src/coreclr/dlls/mscordac/CMakeLists.txt

Co-authored-by: Juan Hoyos <[email protected]>

* Enable easily sharing the fallback version files between all components of the repo.

* Remove some now-unused command-line options from our build scripts.

* Bump importance output to pass the pgo path between steps.

* Add eval statement to run copy_version_files script

* Rename some files and and standardize on a _version.c file name for Linux.

* Remove temp proj ref.

* Fix permissions

* Reference targets to produce version file in libraries native build.

* Fix CoreCLR build breaks

* Generate the version files for Mono

* include configurepaths.cmake on the Windows CoreFX build.

* Restore mono.proj when building it through monoaotcross.proj.

* Update copy script to work on macos.

* Make sure mono pulls in the shared version files.

* Add artifcats/obj dir as include dir for CoreCLR diagonstic components included in Mono

* Add artifacts/obj include for the whole mono build.

* Update CMakeLists.txt

* Fix NativeVersion.rc path on Windows.

* Fix linux version parsing to point at the right file.

* Fix mono version parsing (apparently the quotes make a difference here)

* Update src/coreclr/build-runtime.sh

Co-authored-by: Adeel Mujahid <[email protected]>

* Update eng/native/version/copy_version_files.sh

Co-authored-by: Adeel Mujahid <[email protected]>

* Update copy_version_files.sh to insert the current commit hash into _version.c.

* Apply suggestions from code review

Co-authored-by: Adeel Mujahid <[email protected]>

* Update the _version.c writing script to only update the placeholder version file if it actually is a placeholder (not a real generated file).

* Generate the version files for wasm/browser as well.

* Fix Mono WASM cross build.

* Update eng/nativepgo.targets

Co-authored-by: Juan Hoyos <[email protected]>

* Fix comparison for NativeOptimizationDataSupported.

Co-authored-by: Viktor Hofer <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
Co-authored-by: Juan Hoyos <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
2021-10-27 10:03:34 -07:00
Zoltan Varga e2edb3e036 [mono][jit] Add a micro optimization to fill_runtime_generic_context (). (#60839)
Also increase the initial size of the class rgctx to 32 from 16, the first
level table frequently overflows, and the entries in the second level table
are slower to access, esp. from llvmonly code which contains an inline
fetch for the first level table.
2021-10-27 18:54:00 +02:00
Stephen Toub 034d5e224d Use IndexOf(..., span) in Regex FindFirstChar (#60888)
* Use IndexOf(..., span) in Regex FindFirstChar

We currently use Boyer-Moore to find a multi-character prefix in FindFirstChar.  That's good, and when it was originally added it was very likely better than IndexOf(..., string), but since then the latter has been vectorized and its throughput has improved significantly (we also plan to improve it further).  While there are situations where Boyer-Moore does better, for general text searching and typical cases, IndexOf wins.  So, this commit adds the ability for FindFirstChar to use IndexOf to search for a span, and prefers that over Boyer-Moore when it's applicable, namely when we're case-sensitive and left-to-right processing.

* Centralize check for whether IndexOf is supported
2021-10-27 12:44:08 -04:00
Kunal Pathak 3ceff6dbf6 Stress: Do not create new IG for align instruction (#60901) 2021-10-27 09:43:29 -07:00
Kunal Pathak c1eb508f12 Change the queue to Windows.10.Amd64.X86.Rt (#60921) 2021-10-27 09:12:44 -07:00
4ae0deac53 [main] Update dependencies from 7 repositories (#60855)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Premek Vysoky <[email protected]>
2021-10-27 17:26:43 +02:00