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

Commit 105e2ab

Browse files
committed
Merge 'v2.1.1'
.NET Core 2.1.1
2 parents d9d6f99 + ff5d7ad commit 105e2ab

File tree

6 files changed

+42
-27
lines changed

6 files changed

+42
-27
lines changed

ILAsmVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0-rtm-26514-02
1+
2.1.0-rtm-26515-07

dependencies.props

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,36 @@
1212

1313
<PropertyGroup>
1414
<!-- Central place to set the versions of all nuget packages produced in the repo -->
15-
<PackageVersion Condition="'$(PackageVersion)' == ''">2.1.0</PackageVersion>
15+
<PackageVersion Condition="'$(PackageVersion)' == ''">2.1.1</PackageVersion>
1616

1717
<!-- Set the boolean below to true to generate packages with stabilized versions -->
1818
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
1919
<StableVersion Condition="'$(StabilizePackageVersion)' == 'true' and '$(StableVersion)' == ''">$(PackageVersion)</StableVersion>
2020

21-
<PreReleaseLabel>rtm</PreReleaseLabel>
21+
<PreReleaseLabel>servicing</PreReleaseLabel>
2222
</PropertyGroup>
2323

2424
<!-- Source of truth for dependency tooling: the commit hash of the dotnet/versions master branch as of the last auto-upgrade. -->
2525
<PropertyGroup>
26-
<CoreFxCurrentRef>9f8dfcd5e5193818acd05bdca82d4b044fd767ae</CoreFxCurrentRef>
27-
<CoreClrCurrentRef>9f8dfcd5e5193818acd05bdca82d4b044fd767ae</CoreClrCurrentRef>
26+
<CoreFxCurrentRef>e455bb23eba181ab6c857c5117de4a14c0090bad</CoreFxCurrentRef>
27+
<CoreClrCurrentRef>e455bb23eba181ab6c857c5117de4a14c0090bad</CoreClrCurrentRef>
2828
<BuildToolsCurrentRef>2f4e25ff2bccea64c3da62bff526f24ad3c032de</BuildToolsCurrentRef>
29-
<PgoDataCurrentRef>9f8dfcd5e5193818acd05bdca82d4b044fd767ae</PgoDataCurrentRef>
29+
<PgoDataCurrentRef>1fbc07f918d44a48e734ed445472b9eb2bd2709d</PgoDataCurrentRef>
3030
</PropertyGroup>
3131

3232
<!-- Tests/infrastructure dependency versions. -->
3333
<PropertyGroup>
34-
<MicrosoftPrivateCoreFxNETCoreAppPackageVersion>4.5.0-rtm-26514-02</MicrosoftPrivateCoreFxNETCoreAppPackageVersion>
35-
<MicrosoftNETCorePlatformsPackageVersion>2.1.0-rtm-26514-02</MicrosoftNETCorePlatformsPackageVersion>
36-
<PgoDataPackageVersion>2.1.0-release-20180514-0049</PgoDataPackageVersion>
37-
<MicrosoftNETCoreRuntimeCoreCLRPackageVersion>2.1.0-rtm-26514-02</MicrosoftNETCoreRuntimeCoreCLRPackageVersion>
34+
<MicrosoftPrivateCoreFxNETCoreAppPackageVersion>4.5.0-rtm</MicrosoftPrivateCoreFxNETCoreAppPackageVersion>
35+
<MicrosoftNETCorePlatformsPackageVersion>2.1.0</MicrosoftNETCorePlatformsPackageVersion>
36+
<PgoDataPackageVersion>2.1.0-release-20180604-0043</PgoDataPackageVersion>
37+
<MicrosoftNETCoreRuntimeCoreCLRPackageVersion>2.1.0-rtm-26515-07</MicrosoftNETCoreRuntimeCoreCLRPackageVersion>
3838
<XunitPackageVersion>2.2.0-beta2-build3300</XunitPackageVersion>
3939
<XunitConsoleNetcorePackageVersion>1.0.2-prerelease-00177</XunitConsoleNetcorePackageVersion>
4040
<XunitPerformanceApiPackageVersion>1.0.0-beta-build0015</XunitPerformanceApiPackageVersion>
4141
<MicrosoftDiagnosticsTracingTraceEventPackageVersion>2.0.4</MicrosoftDiagnosticsTracingTraceEventPackageVersion>
4242
<CommandLineParserVersion>2.1.1</CommandLineParserVersion>
4343
<VCRuntimeVersion>1.2.0</VCRuntimeVersion>
44-
44+
4545
<!-- Scenario tests install this version of Microsoft.NetCore.App, then patch coreclr binaries via xcopy. At the moment it is
4646
updated manually whenever breaking changes require it to move forward, but it would be nice if we could update it automatically
4747
as we do with many of the package versions above -->

src/gc/unix/gcenv.unix.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
#include <unistd.h> // sysconf
4141
#include "globals.h"
4242

43+
#if defined(_ARM_) || defined(_ARM64_)
44+
#define SYSCONF_GET_NUMPROCS _SC_NPROCESSORS_CONF
45+
#else
46+
#define SYSCONF_GET_NUMPROCS _SC_NPROCESSORS_ONLN
47+
#endif
48+
4349
// The cachced number of logical CPUs observed.
4450
static uint32_t g_logicalCpuCount = 0;
4551

@@ -67,7 +73,7 @@ bool GCToOSInterface::Initialize()
6773
g_pageSizeUnixInl = uint32_t((pageSize > 0) ? pageSize : 0x1000);
6874

6975
// Calculate and cache the number of processors on this machine
70-
int cpuCount = sysconf(_SC_NPROCESSORS_ONLN);
76+
int cpuCount = sysconf(SYSCONF_GET_NUMPROCS);
7177
if (cpuCount == -1)
7278
{
7379
return false;

src/pal/src/exception/signal.cpp

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ BOOL EnsureSignalAlternateStack()
158158
// (see kAltStackSize in compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc)
159159
altStackSize += SIGSTKSZ * 4;
160160
#endif
161-
void* altStack;
162-
int st = posix_memalign(&altStack, GetVirtualPageSize(), altStackSize);
163-
if (st == 0)
161+
altStackSize = ALIGN_UP(altStackSize, GetVirtualPageSize());
162+
void* altStack = mmap(NULL, altStackSize, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_STACK | MAP_PRIVATE, -1, 0);
163+
if (altStack != MAP_FAILED)
164164
{
165165
// create a guard page for the alternate stack
166166
st = mprotect(altStack, GetVirtualPageSize(), PROT_NONE);
@@ -171,17 +171,12 @@ BOOL EnsureSignalAlternateStack()
171171
ss.ss_size = altStackSize;
172172
ss.ss_flags = 0;
173173
st = sigaltstack(&ss, NULL);
174-
if (st != 0)
175-
{
176-
// Installation of the alternate stack failed, so revert the guard page protection
177-
int st2 = mprotect(altStack, GetVirtualPageSize(), PROT_READ | PROT_WRITE);
178-
_ASSERTE(st2 == 0);
179-
}
180174
}
181175

182176
if (st != 0)
183177
{
184-
free(altStack);
178+
int st2 = munmap(altStack, altStackSize);
179+
_ASSERTE(st2 == 0);
185180
}
186181
}
187182
}
@@ -208,9 +203,8 @@ void FreeSignalAlternateStack()
208203
int st = sigaltstack(&ss, &oss);
209204
if ((st == 0) && (oss.ss_flags != SS_DISABLE))
210205
{
211-
int st = mprotect(oss.ss_sp, GetVirtualPageSize(), PROT_READ | PROT_WRITE);
206+
int st = munmap(oss.ss_sp, oss.ss_size);
212207
_ASSERTE(st == 0);
213-
free(oss.ss_sp);
214208
}
215209
}
216210
#endif // !HAVE_MACH_EXCEPTIONS

src/pal/src/misc/sysinfo.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,18 @@ PAL_GetLogicalCpuCountFromOS()
103103
int nrcpus = 0;
104104

105105
#if HAVE_SYSCONF
106-
nrcpus = sysconf(_SC_NPROCESSORS_ONLN);
106+
107+
#if defined(_ARM_) || defined(_ARM64_)
108+
#define SYSCONF_GET_NUMPROCS _SC_NPROCESSORS_CONF
109+
#define SYSCONF_GET_NUMPROCS_NAME "_SC_NPROCESSORS_CONF"
110+
#else
111+
#define SYSCONF_GET_NUMPROCS _SC_NPROCESSORS_ONLN
112+
#define SYSCONF_GET_NUMPROCS_NAME "_SC_NPROCESSORS_ONLN"
113+
#endif
114+
nrcpus = sysconf(SYSCONF_GET_NUMPROCS);
107115
if (nrcpus < 1)
108116
{
109-
ASSERT("sysconf failed for _SC_NPROCESSORS_ONLN (%d)\n", errno);
117+
ASSERT("sysconf failed for %s (%d)\n", SYSCONF_GET_NUMPROCS_NAME, errno);
110118
}
111119
#elif HAVE_SYSCTL
112120
int rc;

src/vm/gcenv.ee.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,11 +879,18 @@ void GCToEEInterface::StompWriteBarrier(WriteBarrierParameters* args)
879879
g_lowest_address = args->lowest_address;
880880
VolatileStore(&g_highest_address, args->highest_address);
881881

882-
#if defined(_ARM64_)
882+
#if defined(_ARM64_) || defined(_ARM_)
883883
// Need to reupdate for changes to g_highest_address g_lowest_address
884884
is_runtime_suspended = (stompWBCompleteActions & SWB_EE_RESTART) || args->is_runtime_suspended;
885885
stompWBCompleteActions |= ::StompWriteBarrierResize(is_runtime_suspended, args->requires_upper_bounds_check);
886886

887+
#ifdef _ARM_
888+
if (stompWBCompleteActions & SWB_ICACHE_FLUSH)
889+
{
890+
::FlushWriteBarrierInstructionCache();
891+
}
892+
#endif
893+
887894
is_runtime_suspended = (stompWBCompleteActions & SWB_EE_RESTART) || args->is_runtime_suspended;
888895
if(!is_runtime_suspended)
889896
{

0 commit comments

Comments
 (0)