Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 877efe9

Browse files
authored
Merge pull request #24891 from dotnet-maestro-bot/merge/master-to-release/3.0
[automated] Merge branch 'master' => 'release/3.0'
2 parents e330c2c + 7ab905f commit 877efe9

File tree

3,009 files changed

+121435
-83412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,009 files changed

+121435
-83412
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ bld/
2424
[Bb]in/
2525
[Oo]bj/
2626
msbuild.log
27+
msbuild.binlog
2728

2829
# add back architecture directories ignored in 'Build results'
2930
!tests/x86
@@ -207,7 +208,8 @@ FakesAssemblies/
207208
browse.VC.db
208209

209210
# Local settings folder for Visual Studio Code
210-
.vscode/
211+
**/.vscode/**
212+
!**/.vscode/c_cpp_properties.json
211213

212214
### MonoDevelop ###
213215

BuildToolsVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.0-preview4-03917-01
1+
3.0.0-preview4-04022-01

CMakeLists.txt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ if(CMAKE_VERSION VERSION_EQUAL 3.0 OR CMAKE_VERSION VERSION_GREATER 3.0)
55
cmake_policy(SET CMP0042 NEW)
66
endif()
77

8+
if (NOT WIN32)
9+
set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} -std=c++11" CACHE STRING "Flags used by the compiler during all build types.")
10+
set(CMAKE_C_FLAGS_INIT "${CMAKE_C_FLAGS_INIT} -std=c11" CACHE STRING "Flags used by the compiler during all build types.")
11+
endif()
12+
813
# Set the project name
914
project(CoreCLR)
1015

1116
# Include cmake functions
1217
include(functions.cmake)
1318

14-
# Include global configure settings
19+
# Verify that LTCG/LTO is available
1520
include(configure.cmake)
1621

1722
if (WIN32)
@@ -36,12 +41,6 @@ endif(CORECLR_SET_RPATH)
3641
OPTION(CLR_CMAKE_ENABLE_CODE_COVERAGE "Enable code coverage" OFF)
3742
OPTION(CLR_CMAKE_WARNINGS_ARE_ERRORS "Warnings are errors" ON)
3843

39-
# Ensure that python is present
40-
find_program(PYTHON NAMES python3 python2 python py)
41-
if (PYTHON STREQUAL "PYTHON-NOTFOUND")
42-
message(FATAL_ERROR "PYTHON not found: Please install Python 2.7.9 or later from https://www.python.org/downloads/")
43-
endif()
44-
4544
# Ensure other tools are present
4645
if (WIN32)
4746
if(CLR_CMAKE_HOST_ARCH STREQUAL arm)
@@ -221,10 +220,6 @@ if (CLR_CMAKE_PLATFORM_UNIX)
221220
include_directories("src/pal/src/safecrt")
222221
endif (CLR_CMAKE_PLATFORM_UNIX)
223222

224-
# Microsoft.Dotnet.BuildTools.Coreclr version
225-
set(BuildToolsVersion "1.0.4-prerelease")
226-
set(BuildToolsDir "${CLR_CMAKE_PACKAGES_DIR}/Microsoft.DotNet.BuildTools.CoreCLR/${BuildToolsVersion}")
227-
228223
#------------------------------
229224
# Add Product Directory
230225
#------------------------------

Directory.Build.props

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project>
2+
3+
<!-- Ensure our properties are set before Arcade defines defaults -->
4+
<Import Project="dir.common.props" Condition="'$(ArcadeBuild)' == 'True'" />
25
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(ArcadeBuild)' == 'True'"/>
36

47
<PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
58
<Copyright>$(CopyrightNetFoundation)</Copyright>
69
<PackageLicenseExpression>MIT</PackageLicenseExpression>
710
</PropertyGroup>
8-
11+
912
<PropertyGroup>
1013
<CL_MPCount>$(NumberOfCores)</CL_MPCount>
1114
</PropertyGroup>

Directory.Build.targets

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(ArcadeBuild)' == 'True'"/>
4-
</Project>
4+
5+
<PropertyGroup>
6+
<!-- SDK sets product to assembly but we want it to be our product name -->
7+
<Product>Microsoft%AE .NET Core</Product>
8+
9+
<!-- Use the .NET Core product branding version for informational version description -->
10+
<InformationalVersion>$(ProductVersion)</InformationalVersion>
11+
<InformationalVersion Condition="'$(VersionSuffix)' != ''">$(InformationalVersion)-$(VersionSuffix)</InformationalVersion>
12+
</PropertyGroup>
13+
</Project>

Documentation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Intro to .NET Core
1111
Getting Started
1212
===============
1313

14-
- [Installing the .NET Core SDK](https://www.microsoft.com/net/core)
14+
- [Installing the .NET Core SDK](https://dotnet.microsoft.com/download)
1515
- [Official .NET Core Docs](https://docs.microsoft.com/dotnet/core/)
1616

1717
Project Docs

Documentation/botr/xplat-minidump-generation.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,27 @@ Gathering the crash information on OS X will be quite a bit different than Linux
4646

4747
# Configuration/Policy #
4848

49+
NOTE: Core dump generation in docker containers require the ptrace capability (--cap-add=SYS_PTRACE or --privileged run/exec options).
50+
4951
Any configuration or policy is set with environment variables which are passed as options to the _createdump_ utility.
5052

5153
Environment variables supported:
5254

5355
- `COMPlus_DbgEnableMiniDump`: if set to "1", enables this core dump generation. The default is NOT to generate a dump.
54-
- `COMPlus_DbgMiniDumpType`: if set to "1" generates _MiniDumpNormal_, "2" _MiniDumpWithPrivateReadWriteMemory_, "3" _MiniDumpFilterTriage_, "4" _MiniDumpWithFullMemory_. Default is _MiniDumpNormal_.
56+
- `COMPlus_DbgMiniDumpType`: See below. Default is "2" MiniDumpWithPrivateReadWriteMemory.
5557
- `COMPlus_DbgMiniDumpName`: if set, use as the template to create the dump path and file name. The pid can be placed in the name with %d. The default is _/tmp/coredump.%d_.
5658
- `COMPlus_CreateDumpDiagnostics`: if set to "1", enables the _createdump_ utilities diagnostic messages (TRACE macro).
5759

60+
COMPlus_DbgMiniDumpType values:
61+
62+
63+
|Value|Minidump Enum|Description|
64+
|-|:----------:|----------|
65+
|1| MiniDumpNormal | Include just the information necessary to capture stack traces for all existing threads in a process. Limited GC heap memory and information. |
66+
|2| MiniDumpWithPrivateReadWriteMemory (default) | Includes the GC heaps and information necessary to capture stack traces for all existing threads in a process. |
67+
|3| MiniDumpFilterTriage | Include just the information necessary to capture stack traces for all existing threads in a process. Limited GC heap memory and information. |
68+
|4| MiniDumpWithFullMemory | Include all accessible memory in the process. The raw memory data is included at the end, so that the initial structures can be mapped directly without the raw memory information. This option can result in a very large file. |
69+
5870
(Please refer to MSDN for the meaning of the [minidump enum values](https://msdn.microsoft.com/en-us/library/windows/desktop/ms680519(v=vs.85).aspx) reported above)
5971

6072
**Command Line Usage**

Documentation/building/windows-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ For Visual Studio 2017:
4242
* Windows 10 SDK or Windows 8.1 SDK
4343
* To build for Arm32, Make sure that you have the Windows 10 SDK installed (or selected to be installed as part of VS installation). To explicitly install Windows SDK, download it from here: [Windows SDK for Windows 10](https://developer.microsoft.com/en-us/windows/downloads).
4444
* In addition, ensure you install the ARM tools. In the "Individual components" window, in the "Compilers, build tools, and runtimes" section, check the box for "Visual C++ compilers and libraries for ARM".
45+
* To build the tests, make sure you have a Windows 10 SDK for at least version 10.0.17763 or newer.
4546
* **Important:** You must have the `msdia120.dll` COM Library registered in order to build the repository.
4647
* This binary is registered by default when installing the "VC++ Tools" with Visual Studio 2015
4748
* You can also manually register the binary by launching the "Developer Command Prompt for VS2017" with Administrative privileges and running `regsvr32.exe "%VSINSTALLDIR%\Common7\IDE\msdia120.dll"`

Documentation/deep-dive-blog-posts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [Corestart 2.0: What's new for performance in .NET Core 2.0](https://www.ageofascent.com/2017/11/05/perfromance-dotnet-core-2-corestart-conference/)
66
- [Performance improvements in .NET Core 2.0](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core/)
77
- [Performance improvements in .NET Core 2.1](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core-2-1/)
8+
- [Performance improvements in .NET Core 3.0](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core-3-0/)
89

910

1011
### Posts that take a high-level look at the entire source:

Documentation/project-docs/changing-corelib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Many of the CoreFX libraries type-forward their public APIs to the implementatio
1717
### (2) Submit PR to both CoreCLR and CoreFX
1818
- Link the two PRs together via comment in PR description, and link both to the issue itself.
1919
- Both PRs will reviewed together by the project maintainers
20-
- CoreCLR runs CoreFX tests but they are behind CoreFX. You may need to disable the outdated tests in https://github.com/dotnet/coreclr/blob/master/tests/CoreFX/CoreFX.issues.json to make your PR green.
20+
- CoreCLR runs CoreFX tests but they are behind CoreFX. You may need to disable the outdated tests in https://github.com/dotnet/coreclr/blob/master/tests/CoreFX/CoreFX.issues.rsp to make your PR green.
2121

2222
### (3) What happens next
2323
- We will merge the CoreCLR PR first

0 commit comments

Comments
 (0)