Commit Graph
1828 Commits
Author SHA1 Message Date
buyaa-n abfdb542e8 Add NotNullIfNotNull, MemberNotNull attributes to doc (#36856) 2020-05-22 12:49:42 -07:00
Eirik Tsarpalis a2ec75f3fe Minor documentation improvements (#36834) 2020-05-21 21:14:52 +01:00
Egor Bogatov 514ea59fcd Add autoconf, automake and libtool as dependencies (#36475)
* Add autoconf, automake and libtool as dependencies

* Update instructions
2020-05-21 07:11:57 -07:00
Alexander Köplinger af2e5c9829 Use a Brewfile for installing brew packages (#36747)
This means we won't be upgrading existing packages on the system that we don't need for the build.
Marks install-native-dependencies.sh as executable (+x) so we don't need to start it with `sh` in the build .yml

Fixes https://github.com/dotnet/runtime/issues/36727
2020-05-20 17:57:57 +02:00
Nick Craver 4700cf4e75 CMake: Point download URLs directly to https:// (#36615) 2020-05-17 16:27:13 -07:00
Manish Godse 4e94c33f9f updating area owners (#36467)
* updating area owners

* adding cross-gen contrib as owner
2020-05-16 08:53:28 -07:00
Egor Bogatov 00acdc1514 [mono] Use "dotnet publish" for Android sample with ILLink (#36593) 2020-05-16 16:15:56 +03:00
David Wrighton b764cae5f8 Enable basic generation of ngen pdb from composite image (#36311)
* Enable basic generation of ngen pdb from composite image
- Port non-line number handling portion of ngen pdb from crossgen to r2rdump
  - This pdb generation logic may be used for both composite and non-composite R2R images
  - Only pdb generation is supported. Perfmap generation for unix is not supported
  - pdb generation is only supported on Windows x86 and amd64 platforms. Diasymreader is not supported on other systems
  - Pdb generation does not generation symbols with the same names as crossgen. Instead it uses the name generator from r2rdump. For current needs this should be sufficient
- Update composite file format so that pdb generation process will work. Major difference is that a CorHeader is always produced for composite images now. This CorHeader is not used by the runtime, but is required for DiaSymReader to generate an ngen pdb.
2020-05-15 12:31:27 -07:00
Egor Bogatov ec2209e736 [docs] How to run tests on iOS and Android (#36297) 2020-05-15 15:02:05 +03:00
Simon Nattress cf0fcdc1b8 Update Linux docker instructions (#36370)
* Update linux-instructions.md to use root build.sh
2020-05-14 11:12:30 -07:00
Ganbarukamo41 622341ecc2 Update windows prerequisites to be more specific about SDK (#36438)
* Update windows prerequisites to be more specific about SDK

* Global installation of nightly SDK is required to normally browse the solution files in VS, as there is no way to supply SDKs when the solution files are opened through VS.

* Update windows prerequisites

* allow newer versions of VS workloads
2020-05-14 12:21:02 +02:00
Santiago Fernandez Madero df8e2d751e Update testing.md (#36286) 2020-05-12 12:49:05 -04:00
Sean Hall 5f884ba5fb Fix vs testing link (#36261) 2020-05-12 08:24:02 +02:00
Anirudh Agnihotry 322257f778 Use already defined generateAssemblyReferenceSource rather defining a new target (#35818)
* use arcade target

* extra space

* fixes generation of reference src from runtime projects

* run target to get genapi

* use referencePath to get references

* adding  GenerateReferenceSource target

* added the target name
2020-05-11 13:59:11 -07:00
Aaron Robinson 99aae90739 Update the mscorlib.md document. (#36225)
Rename mscorlib.md to corelib.md.
Remove no longer relevant details.
2020-05-11 12:29:42 -07:00
Viktor Hofer 2cda9035cb Use TargetFramework conditions consistently in libraries (#35956)
* Use TargetFramework condition consistently in libs

* Add docs section to describe the guideline

* Update Microsoft.Extensions.DependencyInjection.csproj

* Outline TargetFramework DesingTimeBuild issue

* Update Microsoft.Extensions.DependencyInjection.csproj
2020-05-11 11:00:11 -07:00
Jan Kotas e7c26f95ac Update ryujit-tutorial.md (#36191) 2020-05-10 22:29:50 -07:00
Viktor HoferandAlexander Köplinger 2cd041bbee Document F5 and Test Explorer prerequisites (#36117)
* Document F5 and Test Explorer prerequisites

* Update docs/workflow/testing/visualstudio.md

Co-authored-by: Alexander Köplinger <[email protected]>
2020-05-08 21:03:17 +02:00
Tomas WeinfurtandTomas Weinfurt 0ec974709e add requirement doc for FreeBSD (#35704)
* add freebsd requirements

* corrections

* format

* feedback from review

* more cleanup

Co-authored-by: Tomas Weinfurt <[email protected]>
2020-05-07 13:47:41 -07:00
Matt Warren 24c599aecb Fix broken links on Botr doc (#35973)
Sorry, I messed these up in my previous PR
2020-05-07 12:38:13 -04:00
f6aad636c9 Simplify build on macOS (#35570)
* Check for OpenSSL (and pkg-config) in the check_prereqs() function
* Simplify OpenSSL installation instructions
* Automatically pick the OpenSSL version installed by Homebrew by exporting the proper PKG_CONFIG_PATH environment variable
* Improve the error message if cmake can't find OpenSSL

The previous instructions were asking the user to add symbolic links inside  /usr/local/lib/ and /usr/local/lib/pkgconfig/ for OpenSSL related files. There is no need for a complicated setup with symbolic links when the PKG_CONFIG_PATH environment variable points to the right pkgconfig, which is now done in build-commons.sh.

Co-Authored-By: Jan Kotas <[email protected]>
Co-Authored-By: Jeremy Barton <[email protected]>
2020-05-07 11:12:29 +02:00
Viktor Hofer 85bfbfcf54 Re-enable xunit.console code coverage (#35894)
Re-enable xunit console code coverage measurement until
https://github.com/coverlet-coverage/coverlet/issues/834 is fixed.
2020-05-06 19:03:55 +02:00
Viktor Hofer 000046f6c8 Change netcoreapp5.0 to net5.0 (#35176)
* Change netcoreapp5.0 to net5.0

* Remove tfm downgrades

* Rename S.R.CS.Unsfae include folder
2020-05-06 13:53:21 +02:00
Matt Warren a206f8e5a2 Fix-up styling to make the doc more readable (#35803)
Also remove unneeded '\' characters
2020-05-04 13:24:51 -07:00
Viktor Hofer 200b197559 Enable dotnet test in libraries (#35285)
* Enable dotnet test

* Update docs

* Use vstest in F5 scenarios

* Make dotnet test without framework switch work

* Code cleanup

* Only run code coverage conditionally

* Fix F5 condition for netcoreapp

* Downgrade sdk to check for helix submission failures

* Fix wrong conditions

* Add blame data collector
2020-05-04 11:57:51 +02:00
Stephen Toub 3359a27075 Update nullability.md with note about Try methods and [NotNullWhen(true)] (#35711) 2020-05-01 11:56:39 -04:00
Jeremy Barton 0b32ef51dd Update link from corefx to runtime (#35633) 2020-04-29 21:23:33 -04:00
Anirudh Agnihotry 4c4b2635ed Remove Targets* instances from .props files (#35353)
* remove TargetsNetfx from isPartialFacadeAssembly property

* Omit Resources corrected

* fix partial facade

* GeneratePlatformNotSupportedAssemblyMessage corrected

* OmitResources made similar to isPartialFacadeAssembly

* fixes omitsources

* moving targetFramework dependent properties to second property Group

* fix GeneratePlatformNotSupportedAssemblyWithGlobalPrefix

* correct define constants

* fix no warn

* fix assembly version

* fix packageTargetFramework

* fix the build

* src and ref intell working

* remove targets properties from tests file

* adding comment
2020-04-28 13:36:53 -07:00
Ganbarukamo41 7cbf0a7011 Improve JIT dump related docs (#35166)
* Update viewing-jit-dumps.md

* Add jitconfigvalues.h for the sources of env. variables
* Add JitDumpASCII in the list of useful env. variables

* Fix casings for JitDumpASCII env var

* Environment variables on UNIX OSes are case sensitive
2020-04-28 07:30:36 -07:00
Jan Jahoda efc260cada Add zlib-dev to linux requirement (#35571)
On Ubuntu, the build fails on missing zlib.
2020-04-28 16:27:06 +02:00
Jakob Botsch NielsenandEugene Rozenfeld e1ffadd652 Implement portable tailcall helpers (#341)
* Implement portable tailcall helpers

This implements tailcall-via-help support for all platforms supported by
the runtime. In this new mechanism the JIT asks the runtime for help
whenever it realizes it will need a helper to perform a tailcall, i.e.
when it sees an explicit tail. prefixed call that it cannot make into a
fast jump-based tailcall.

The runtime created two important IL stubs to help the JIT in performing
the necessary tailcalls. One IL stub is used to store the args for the
tailcall, while the other is used to dispatch the actual tailcall
itself. The JIT will then transform the call from

return tail. F(a1, ..., an);

to

IL_STUB_StoreTailCallArgs(a1, ..., an);
T result;
IL_STUB_DispatchTailCalls(..., &result);
return result;

The dispatcher is written in such a way that it is able to dispatch
multiple tailcalls in a row when tailcalled functions also perform
tailcalls. To do this, the JIT helps the dispatcher detect if the
caller's caller is also a dispatcher. When this is the case the
dispatcher returns to let the previous dispatcher perform the tailcall
with the currently stored args. This allows the frame to unwind and
ensures that sequences of tailcalls do not grow the stack more than by a
constant factor.

Due to this unwinding the args cannot be stored on the stack and are
instead stored in TLS. The GC is made specially of this buffer as the
args can be anything, including interior pointers.

The control-flow when performing the new tailcalls is nonstandard, so
this also changes the debugger to support proper stepping into/over/out
of tailcalled functions when they go through the new dispatcher.

x86's tailcalling mechanism does not change.

This commit also includes the following changes:

* Update design doc for helper-based tailcalls

* Change lowering of GT_LABEL on arm.

Generate movw/movt instead of adr on arm. adr on arm allows offsets
up to 4k, which may not be enough. In particular,
IL_STUB_CallTailCallTarget uses GT_LABEL before argument setup code
and it can be more than 4k.

* Add COMPlus_FastTailCalls environment variable.

COMPlus_FastTailCalls controls whether fast tail calls are allowed.
If COMPlus_FastTailCalls is 0, fast tail calls are not allowed even for
tail-prefixed calls. Only helper-based calls are allowed. This is useful
for testing helper-based calls.

Co-authored-by: Eugene Rozenfeld <[email protected]>
2020-04-27 17:06:15 -07:00
Joseph MusserandJan Kotas ae1b5b2589 Module initializers spec proposal (#35140)
* Bring over spec from https://blogs.msdn.microsoft.com/junfeng/2005/11/19/module-initializer-a-k-a-module-constructor/

* Document presence of 'metadata merging' as spec bug

* Guarantees that apply to all type initializers apply to module initializers

Co-authored-by: Jan Kotas <[email protected]>
2020-04-25 15:46:44 -07:00
Jan Vorlicek 714692c322 Update unloadability doc based on recent changes
The management of the handle that native runtime keeps to
AssemblyLoadContext has changed to fix a race recently, so I am updating
the doc according to the change.
2020-04-24 14:56:29 +02:00
Kenneth Pouncey 6004f18244 [docs] Helpful links when building the first time.
- Add requirements link to the mono build README.md
- Add a link to the requirements document when missing openssl.
2020-04-22 07:23:46 +02:00
Dan MoseleyandMarek Safar 774daf4e97 Add microsoft-extensions to area owners (#35186)
* Add extensions

* Add missing data rows

* Add area-CodeGen-LLVM-mono

Co-authored-by: Marek Safar <[email protected]>
2020-04-20 16:03:09 -07:00
nietras 01a08fec29 Update shared-generics.md to use Method<> instead of Func<> (#35181)
To avoid confusion with `Func<>` delegate and object. At least to me it create a bit of unnecessary confusion. Whether this should be `Method` or just `F` can be discussed. However, `Method` makes it clear the discussion is about a generic **method** instantiation.
2020-04-19 14:23:26 -07:00
Viktor Hofer 3b42a9a1d4 Update VS minimum dependency (#35114)
With the net5.0 TFM change and the nuget static graph restore, we require VS >= 16.6 Preview2.
2020-04-17 20:00:49 +02:00
Joseph Musser da94c02257 Move and lint ECMA-335 Augments spec (#35095)
* Move specs and rename Ecma-335-Issues.md

* Fix typos

* MD009/no-trailing-spaces

* MD012/no-multiple-blanks

* MD007/ul-indent

* MD031/blanks-around-fences

* MD032/blanks-around-lists

* MD040/fenced-code-language

* MD030/list-marker-space

* Simplify markdown code span syntax

* Update title and intro

* Fix broken markdown code span

* Link addendum doc from dotnet-standards.md
2020-04-17 08:26:55 -07:00
mrj001 9be23bada7 updated output folder from 'aforementioned' to the folder where the single library output is found. (#34340) 2020-04-17 16:45:54 +02:00
Marek Safar 3e7477747d Fix section reference (#34992) 2020-04-15 08:20:46 -04:00
Tomas Weinfurt 90e090553f use curl with OpenSSL backend on 16.04-cross based containers (#34909)
* use curl with OpenSSL backend

* update docs
2020-04-14 09:51:39 -07:00
Jeff Handley 7ac8db8943 Update ownership of Buffers and Drawing (#34928) 2020-04-13 20:31:36 -04:00
David Mason 09b73092ef Update ELT Hooks - tail calls.md (#34926) 2020-04-13 20:31:19 -04:00
Dan Moseley ed6f88a734 Merge pinvoke guidelines into interop guidelines (#34833) 2020-04-10 16:46:56 -07:00
Adeel 2e0039ac6b Add note about building PAL tests in docs 2020-04-09 22:11:35 +03:00
Santiago Fernandez Madero e298818e7c Update libraries running tests broken link. (#34704) 2020-04-08 11:39:25 -07:00
Aaron Robinson 174f13637c Update documentation for CoreCLR testing. (#34674)
* Update documentation for CoreCLR testing.
2020-04-08 09:07:47 -07:00
Viktor Hofer 8e0147ecdf Redesign the subset feature (#34663)
* Redesign subset feature and remove subsetcategory

Implement proposal from https://github.com/dotnet/runtime/issues/34403.
Remove subsetcategory and allow all subsets to specified via the -subset
switch.
2020-04-08 03:09:31 +02:00
Viktor Hofer 62112b0abb Remove entry point helper scripts (#33756)
* Remove entry point helper scripts

The entry point helper scripts were useful during the consolidation of
the repositories. This work is mostly done and the build.cmd/sh script
should be used, going forward.
2020-04-06 15:38:04 +02:00
Viktor Hofer 42183b1b86 Enable restore for ref and src projects in libs (#33553)
- Use RestoreUseStaticGraphEvaluation which improves no-op restore by 10-15x down to 10-20 seconds.
- .builds msbuild files renamed to .proj as RestoreUseStaticGraphEvaluation throws for non .proj files without an env var set.
- Introducing subsets for libraries and mono and replacing -buildtests switch which was only working for libraries in favor of the subset switch -subset tests which works consistently.
- Fixing the Microsoft.DotNet.CodeAnalysis analyzer which wasn't running and adding missing exclusions.
- Separating restore and build phases in different parts in the repo (ie for installer.tasks) as generated props and targets need to be imported which requires a reevaluation in the build phase.
- Fix eng/docker/build-docker-sdk.ps1 by using the official build entrypoints (cc @alnikola)
- Remove a few depprojs in favor of project restore (faster restore :))
- Fix root code coverage measurement not working correctly
- Traversal support instead of dir.traversal.targets or manual build target defines.
- Introduce a root Build.proj entrypoint which is responsible for building and restoring the repository. This is necessary to enable the new NuGet fast restore which works best and fastest with a single entrypoint.
- Avoid binclashes in libraries and between libraries and installer (netstandard.depproj vs netstandard.csproj)
- Upgrading the SDK to 5.0 latest
- Code cleanup
2020-04-06 11:54:10 +02:00