Commit Graph
2246 Commits
Author SHA1 Message Date
Jeremy Koritzinsky 562d1e7f8c Remove the varargs-based mdarray helper. (#62855) 2021-12-16 15:11:50 -08:00
Michal Strehovský f44b0ba183 Add docs around NativeAOT workflows (#62837) 2021-12-16 10:35:54 +09:00
Tomáš Rylek c3683b06b0 Rename 'excludemonofailures' to 'mono' (#62749) 2021-12-14 07:38:55 +01:00
Fan Yang 8965454989 Add instructions to skip restoring nuget packages (#62634)
Add build instructions to skip restoring nuget packages, when you only made change to mono.
2021-12-10 16:38:15 +01:00
Nathan Ricci 1d4b5f684c Updated testing document; patching and various mono-specific msbuild targets are no longer needed. (#62588) 2021-12-09 13:40:03 -05:00
8ae1c49726 Convert some old style intrinsics to NamedIntrinsic (#62271)
* Convert some old style intrinsics to NamedIntrinsic

* Delete GetStubContextAddr and related code

* More cleanups

Co-authored-by: EgorBo <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
2021-12-09 08:25:34 -08:00
Simon RozsivalandAlexander Köplinger 6cf785d9fb Support Process.Start() on MacCatalyst (#61507)
* Modify existing tests

* Enable process start and kill on MacCatalyst

* Typo

* Temporarily enable ProcessTests for MacCatalyst

* Temporarily enable ProcessTests for MacCatalyst - attempt 2

* Allow running Mac Catalyst builds in App Sandbox

* Allow enabling app sandbox for the other Mac Catalyst sample

* Add missing parameter to XCode project generator

* Remove unnecessary MacCatalyst detection

* Enable App Sandbox for Mac Catalyst tests

* Create a separate test branch for App Sandbox

* Remove the restriction to enable app sandbox just for Mac Catalyst apps

* Do not throw PNSE for Mac Catalyst

* Clean-up platform-specific conditions

* Build correct Process implementation for MacCatalyst

* Try to get more information from CI for further investigation of the failing build

* Revert "Try to get more information from CI for further investigation of the failing build"

This reverts commit fc63a370d688aa0d1dc890e6928a8d031d148e56.

* Add MacCatalyst target framework for System.Diagnostics.Process

* Add supported platform annotations for Mac Catalyst

* Fix annotations

* Remove incorrectly placed attributes

* Update attributes including the reference file

* Change platform attributes

* Generate app.entitlements in the BuildAppleAppBundles test build target

* Revert "Generate app.entitlements in the BuildAppleAppBundles test build target"

This reverts commit abbe2241586e3469c3d3e9d4ecd2cea2e09d3641.

* Enable AppSandbox when generating CMakeLists.txt for libraries tests

* Try implementing a workaround for app sandbox mode

* Fix app sandbox detection bug

* Add explanation comment

* Enable more tests for MacCatalyst

* Add apple app builder input validation

* Add Mac Catalyst w/ App Sandbox enabled to runtime-manual test pipeline

* Enable networking in App Sandbox mode

* Skip test which won't work on Mac Catalyst

* Skip some tests in app sandbox mode

* Update src/tasks/AppleAppBuilder/AppleAppBuilder.cs

Co-authored-by: Alexander Köplinger <[email protected]>

* Add a clarification comment for a networking entitlement

* Simplify supported platform condition

* Remove temporarily enabled test

* Remove unnecessary attributes

* Replace checking env variable with checking errno in libproc

* Update docs

* Remove unnecessary changes

* Temporarily enable running System.Diagnostics.Process.Tests for this PR

This reverts commit 02d370c2cf730bf67a3cf6fca8fcb8c5e4ff1ccd.

* Revert "Temporarily enable running System.Diagnostics.Process.Tests for this PR"

This reverts commit dc72f0f1d068314317d088d33ec87f9aa6447854.

* Fix job suffix in runtime-manual

* Remove attributes

* Revert "Remove attributes"

This reverts commit 704e9fa73cd40854d1becc2889569bab3c47d62d.

* Try changing the order of attributes to please CI

* Update ApiCompat baseline

* ApiCompat step 1: remove all attributes for MaxWorkingSet setter

* Revert "Update ApiCompat baseline"

This reverts commit a2ad03207c5f9f40b9dd2c335a1b0f31c37a0ac5.

* Revert "ApiCompat step 1: remove all attributes for MaxWorkingSet setter"

This reverts commit be72a3d2564afb89a83198ef010b3d4622799601.

* Update ApiCompat baseline

* Update ApiCompat baseline after pulling upstream main

* Remove trailing whitespace

Co-authored-by: Alexander Köplinger <[email protected]>
2021-12-07 20:33:38 +01:00
Jeff Handley 5d35bc1336 Update area owners: carlossanlop changes area pods (#62495) 2021-12-07 11:31:10 -08:00
9872424ada Update windows-requirements.md (#62476)
* Update windows-requirements.md

* Update docs/workflow/requirements/windows-requirements.md

Co-authored-by: Stephen Toub <[email protected]>

Co-authored-by: Dan Moseley <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
2021-12-07 07:46:42 -07:00
Eirik TsarpalisandDan Moseley f8871cb07e Move FabricBot rules to Config-As-Code (#62297)
* Move FabricBot rules to Configuration-As-Code

* Update docs/infra/automation.md

Co-authored-by: Dan Moseley <[email protected]>

* update FabricBot dump to most recent version

Co-authored-by: Dan Moseley <[email protected]>
2021-12-06 12:24:17 +00:00
Brennan 0540772e1e Add RateLimiting APIs (#61788) 2021-12-03 15:06:44 -08:00
Eric Erhardt f53075c582 Update creating codespace instructions (#62213) 2021-11-30 15:13:21 -06:00
Jeff Handley b1b7ad47e2 area-PAL-Libraries merged into area-System.Runtime.InteropServices (#62180)
Past issues/PRs were re-tagged as area-System.Runtime.InteropServices and the issue labeler bot was retrained.
2021-11-30 10:06:20 -05:00
Ilona Tomkowicz 1281b91d2d [wasm][debugger] A draft of doc for describing debugger behavior. (#62015)
* A draft of doc for describing debugger behaviour.

* Removing spaces.
2021-11-30 10:32:33 +01:00
Adeel Mujahid 03e0187a1a Fix miscellaneous typos (#62062)
* Fix miscellaneous typos

* Cleanup trailing whitespaces
```sh
# git remote add dotnet https://github.com/dotnet/runtime && git pull --rebase dotnet main

if uname 2>/devnull | grep -q Darwin; then
    space=" "
fi

git show --name-only --pretty="" HEAD...dotnet/main |\
    xargs -I{} sh -c "test -f {} && sed -i$space'' 's/[[:space:]]*$//' {}"
```
2021-11-26 16:32:13 -08:00
Adeel Mujahid 7414af2a5f Reorganize libs.native (#61958)
* Reorganize libs.native

* Fix darwin build

* Fix wasm-win32 build

* Fix pipelines path evaluation
2021-11-24 14:47:45 -08:00
Layomi Akinrinade 7a2fac8c13 Update list of analyzer diagnostics with JSON entries (#61809) 2021-11-22 14:30:09 -08:00
Jeremy KoritzinskyandAaron Robinson 7099f4b12a Use reflection or a compile-time only shim assembly to reference unexposed corelib types. (#61802)
Co-authored-by: Aaron Robinson <[email protected]>
2021-11-19 19:28:42 -08:00
Jeremy KoritzinskyandAaron Robinson 06a0c76a81 Update GetPinnableReference() usage in multi-step custom type marshalling (#61539)
* Update GetPinnableReference() usage in multi-step custom tyep marshalling

Change GetPinnableReference() on a marshaller type to be used as a side effect when marshalling in all cases when a fixed() statement is usable.

Use the Value property getter to get the value to pass to native in all cases.

Update our marshallers and tests to follow this design update.

* Apply suggestions from code review

Co-authored-by: Aaron Robinson <[email protected]>

* Don't emit the assingment to the Value property in the Unmarshal stage when using [Out]

* Fix the unmarshalling conditions

* Fix Utf16StringMarshaller to correctly handle the "null pointer" case now that we're using spans internally for storage in all cases.

Co-authored-by: Aaron Robinson <[email protected]>
2021-11-19 18:16:07 -08:00
Jeff HandleyandJeff Handley 4d6a6629cd Update area-owners to reflect Libraries Area Pod changes (#61642)
* Update area-owners to reflect Libraries Area Pod changes

* Swap area leads between 2 libraries pods

* Remove Anipik from area ownership

Co-authored-by: Jeff Handley <[email protected]>
2021-11-19 15:43:05 -08:00
Elinor Fung 4254fa30b7 [DllImportGenerator] Don't flag methods with known unsupported UnmanagedType (#61808) 2021-11-18 18:56:00 -07:00
Cheena Malhotra 513d38cce5 Update Area Owners for System.Data (#61748) 2021-11-18 09:45:06 -05:00
e10532af7e Obsolete thumbtacked AssemblyName properties (#59522)
* Obsolete thumbtacked AssemblyName properties

Fix #59061

* Ignore obsoletion

* Fix pragma

* Merge the AssemblyName member obsoletions into a single diagnostic id

* Fix pragma to use updated diagnostic id

* Suppress SYSLIB0037 in reflection tests

* Suppress SYSLIB0037 warnings

Co-authored-by: Jeff Handley <[email protected]>
Co-authored-by: Jeff Handley <[email protected]>
2021-11-15 17:06:46 -08:00
Kevin Jones a888829fc6 Update workflow docs to indicate ARM64 macOS works (#61575) 2021-11-15 09:09:02 -08:00
Elinor Fung 4f43e82fcb [DllImportGenerator] Initialize by-value out array to default (#61431) 2021-11-10 15:27:59 -08:00
Eric Erhardt 3dfdcb918b Add instructions for using Codespaces (#60996)
* Add instructions for using Codespaces

* Automate resetting the HEAD to the same commit ID used to build the pre-built container

* - Add notes about testing changes.

- Add 4-core machines

* Revert 4-core change since prebuild doesn't support multiple sku_names.
2021-11-08 20:18:05 -06:00
Michal Strehovský b6657214f4 Remove sorting requirement for interface lists (#60541)
Fixes #60454.
2021-11-08 13:55:37 -08:00
Maxim Lipnin b9a2c48aa8 Clean up the documentation for the library testing (#59401) 2021-11-08 12:11:54 +03:00
Andy Gocke b344bb5277 Update area-owners.md (#61269) 2021-11-05 19:49:31 -07:00
Aaron RobinsonandElinor Fung 6527f540e4 Add TFM and version support query to marshaller interface. (#61064)
* Add TFM and version support query to marshaller interface.

* If any marshaller fails to support the current tfm version, fallback
to using the built-in DllImport attribute.

* Add tests for fallback generation on downlevel or generation if marshallers
  are supported on the target framework.

* Convert CreateCompilationWithReferenceAssemblies to CreateCompilation overload.

Co-authored-by: Elinor Fung <[email protected]>
2021-11-02 21:27:34 -07:00
Jeremy KoritzinskyandElinor Fung 24e7a4a1a1 Make QCalls respect the EntryPoint property (#60992)
Co-authored-by: Elinor Fung <[email protected]>
2021-11-02 16:37:18 -07:00
Steve DunnandSantiago Fernandez Madero 5c8ea45eda Removed two unused packages from .vsconfig (#60798)
These packages are unused as described in #60794

Co-authored-by: Santiago Fernandez Madero <[email protected]>
2021-11-02 17:40:45 +01:00
Andy Ayers c263d61ace Add historical note on optimizing aspects of Value Numbering (#60985) 2021-10-28 14:59:37 -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
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
Elinor Fung 760a76bf4d Add configureonly option to host native build (#60889) 2021-10-26 20:28:48 -07:00
Daniel Cazzulino 3af0a68df9 Add direct SDK installer links (#53061)
These are most of the time more useful than just the runtime ones.

I could not find the equivalent `.sha512` links for the checksums for the SDK installers, though :(
2021-10-21 15:45:20 -07:00
Aleksey Kliger (λgeek) 72bcf2f77a [tests] In test wrapper scripts if -debug is gdb or lldb, add separator before corerun and args (#60416)
* [tests] If -debug is LLDB, add separator before corerun and args

   For runtime test shell scripts, if a debugger is specified with `-debug=/usr/bin/lddb` or the like, add a separator so that `lldb` doesn't try to interpret `-p` as a PID argument.

   Also update mono workflow doc

* Also support gdb as the debugger
2021-10-20 10:17:54 -04:00
Elinor Fung 5a79d9623c Merge branch 'main' into feature/use-dllimport-generator 2021-10-15 14:16:34 -07:00
Aleksey Kliger (λgeek) 10d8964fb0 [docs] Add LLDB debugging instructions for Mono running a runtime test (#60410)
* [docs] Add LLDB debugging instructions for Mono running a runtime test

* Also add a note about building a single test
2021-10-14 12:54:31 -04:00
cfe257f79d Add design details regarding dynamic buffers in struct marshalling (#60374)
* Update StructMarshalling.md with details

Co-authored-by: Elinor Fung <[email protected]>
Co-authored-by: Jeremy Koritzinsky <[email protected]>
2021-10-13 17:59:51 -07:00
Elinor Fung cc8ed00158 Updates to DllImportGenerator docs (#60211) 2021-10-09 09:33:14 -07:00
Jeremy Koritzinsky 78f4fa8d82 Merge branch 'main' into feature/use-dllimport-generator 2021-10-07 16:40:51 -07:00
Jeff Handley fabace8621 Update area-owners to reflect a few changes (#59975) 2021-10-05 12:35:33 +02:00
Jeremy Koritzinsky c4a164b615 Merge branch 'main' into feature/use-dllimport-generator 2021-10-04 10:58:14 -07:00
Stephen Toub e118d3fc71 Update Microsoft.CodeAnalysis.CSharp.CodeStyle version (#59783) 2021-10-03 10:14:02 -04:00
Jeremy Koritzinsky ea7e8171f6 Merge branch 'main' into feature/use-dllimport-generator 2021-10-01 18:35:26 -07:00
Jeff Handley ed4f087a59 SYSLIB0036 - Regex.CompileToAssembly is obsolete (#59837) 2021-09-30 19:03:52 -04:00
Jeremy Koritzinsky 752533d113 Merge branch 'main' into feature/use-dllimport-generator 2021-09-30 14:44:57 -07:00
Aleksey Kliger (λgeek)andAnkit Jain acb00500a0 Build one MonoTargetsTasks assembly for Microsoft.NET.Runtime.MonoTargets.Sdk pack (#59720)
* Build one MonoTargetsTasks assembly for Mono.NET.Runtime.MonoTargets.Sdk pack

   Instead of 3 assemblies for some tiny tasks.

   Building a single assembly also ensures that everything in the pack depends on and bundles identical versions of dependent assemblies.  For example on net472, a single version of System.Text.Json with a single fixed version shared by both the JsonToItemsTaskFactory task factory and the RuntimeConfigParser task.

   Related to https://github.com/dotnet/runtime/issues/59619

* Update testing and wasm to use MonoTargetsTasks.dll

* Move assembly stripper to a separate assembly

   Build it with nullability checking disabled.

   Build the main MonoTargetsTasks assembly with nullability enabled

* Don't include msbuild assemblies in MonoTargets package

* re-enable analyzers for the MonoTargetsTasks assembly

* Include *.dll in the MonoTargetsTasks nupkg

   In particular, pick up all the dependent assemblies for the net472 build

* Update various READMEs

* remove unneeded target

* Switch ILStrip to use the same Parallel.ForEach logic as MonoAOTCompiler

* Remove unneeded NoWarn warnings

* rearrange package references in MonoTargetsTask.csproj for readabilty

* More ItemGroup reformatting

* fix nits

* Use SystemThreadingTasksExtensionsVersion instead of hardcoding

Co-authored-by: Ankit Jain <[email protected]>
2021-09-30 11:13:26 -04:00