Roman Konecny [Fri, 27 Nov 2020 09:02:08 +0000 (10:02 +0100)]
Optimize HTTP2 HPack huffman decoding (#43603)
Optimized to use 8 bits lookup tables tree with result of about 0.35 CPU utilization as oppose to former version.
Decoding table is lazy generated as ushort[].
Jan Kotas [Fri, 27 Nov 2020 03:07:06 +0000 (19:07 -0800)]
Fix unicode marshaling defaults in crossgen2 (#45268)
Michal Strehovský [Fri, 27 Nov 2020 01:28:50 +0000 (02:28 +0100)]
Teach coreclr/src/tools about Checked configuration (#43017)
We never test managed tools in Debug configuration because we never build the runtime partition in the Debug configuration - we only build Checked.
But managed tools don't know what Checked means because it's not an MSBuild concept. So we never run the tools with asserts turned on.
Jan Kotas [Fri, 27 Nov 2020 00:48:51 +0000 (16:48 -0800)]
Convert several FCalls to QCalls, plus misc cleanup (#45258)
* Convert several FCalls to QCalls, plus misc cleanup
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Jan Kotas [Thu, 26 Nov 2020 16:25:40 +0000 (08:25 -0800)]
Move Sha1ForNonSecretPurposes under Common (#45242)
Avoid code duplication and contribute to #45237 and #45032
yowl [Thu, 26 Nov 2020 16:24:41 +0000 (11:24 -0500)]
fix path to Unix folder for wasm (#45261)
dotnet-maestro[bot] [Thu, 26 Nov 2020 15:09:46 +0000 (15:09 +0000)]
Update dependencies from https://github.com/dotnet/xharness build
20201126.1 (#45255)
[master] Update dependencies from dotnet/xharness
Peter Sollich [Thu, 26 Nov 2020 14:19:02 +0000 (15:19 +0100)]
Optimize plan phase for foreground gcs (#45208)
* Changes to allow us to use the mark list for foreground GCs.
The key point is to clear the background GC mark bits for objects that the foreground GC found to be dead.
The existing code walked all the dead objects individually and cleared their mark bits, but as it turns out, it is significantly cheaper to turn off the mark bits in bulk.
* Address code review feedback - factor out common while-loop.
Peter Sollich [Thu, 26 Nov 2020 13:38:10 +0000 (14:38 +0100)]
Move sync block scan (#41600)
This change implements some primitive work stealing by executing GCScan::GcWeakPtrScanBySingleThread on the first thread that finishes GCScan::GcWeakPtrScan and sort_mark_list.
Adeel Mujahid [Thu, 26 Nov 2020 12:24:13 +0000 (14:24 +0200)]
Share unix getexepath() definition via src/native (#44999)
* Share unix getexepath() definition via src/native
* Address CR feedback
* Remove duplicate property
* Inline variable with single usage
* Fix include path in tests
* Remove unixcoreruncommon static lib dependency
* Merge coreruncommon.{cpp,h} into corerun.cpp
* Include local headers before the first use
* Remove Unix case from (Win32 only) corerun
* Use realpath in getauxval case
* Delete obsolete comment
Marek Safar [Thu, 26 Nov 2020 11:48:41 +0000 (12:48 +0100)]
Reverse ctors chaining for few SPC types to avoid calling complex ctors unnecessary (#45239)
Stephen Toub [Thu, 26 Nov 2020 11:07:40 +0000 (06:07 -0500)]
Remove closure/delegate allocation from ConsoleLoggerProvider.CreateLogger (#45236)
* Remove closure/delegate allocation from ConsoleLoggerProvider.CreateLogger
* Update src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerProvider.cs
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Khalid Abuhakmeh [Thu, 26 Nov 2020 08:42:53 +0000 (03:42 -0500)]
Add AggressiveInline To BitConverter Methods (#43105)
Add AggressiveInline To BitConverter.ToXXX methods that take ReadOnlySpan<byte>
Fixes #2106
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Ryan Lucia [Thu, 26 Nov 2020 08:18:02 +0000 (03:18 -0500)]
[mono] Fix warnings on OSX, re-enable -Werror on CI with CMake (#44747)
* Ifdef out removed icalls on netcore
* Fix format string for cross builds
desc here is based on the pointer size of the target, whereas void* is based on the host
* Re-enable -WError on CI for OSX and Wasm
This got lost in the CMake transition
* Improve ep_rt_thread_id_t handling.
* Make types_str local to mono_fdhandle_insert
* Fix OSX build error.
* Align os thread id to uint64_t.
* Update src/mono/mono/sgen/sgen-descriptor.c
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
* Update src/mono/mono/sgen/sgen-descriptor.c
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
* Update src/mono/mono/sgen/sgen-descriptor.c
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
* Revert "Make types_str local to mono_fdhandle_insert"
This reverts commit
04f56efcb8e9d33dca12f831f9c05591c649678c.
* Put types_str under appropriate ifdef
* Disable Werror on wasm
Co-authored-by: lateralusX <lateralusx.github@gmail.com>
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Levi Broderick [Thu, 26 Nov 2020 07:32:13 +0000 (23:32 -0800)]
Improve performance of Activator.CreateInstance (#32520)
- Use modern C# calli features to invoke allocator and ctor
- Share arg validation code between CreateInstance and GetUninitializedObject
- Improve exception message when CreateInstance fails
- Lay foundation for future work in Activator
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Justin Kotalik [Thu, 26 Nov 2020 04:23:43 +0000 (20:23 -0800)]
Close accept loop when closing connection for Quic (#44885)
Tom Deseyn [Thu, 26 Nov 2020 04:23:14 +0000 (05:23 +0100)]
NetworkInterface.Linux: take into account physical link status for OperationalStatus and GetIsNetworkAvailable (#44867)
Alexander Köplinger [Wed, 25 Nov 2020 23:56:58 +0000 (00:56 +0100)]
Remove manually maintained msvc projects from src/mono (#45219)
They're no longer needed after https://github.com/dotnet/runtime/pull/44976
dotnet-maestro[bot] [Wed, 25 Nov 2020 23:06:27 +0000 (18:06 -0500)]
Update dependencies from https://github.com/dotnet/xharness build
20201125.2 (#45216)
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Xunit
From Version 1.0.0-prerelease.20574.2 -> To Version 1.0.0-prerelease.20575.2
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Stephen Toub [Wed, 25 Nov 2020 23:05:23 +0000 (18:05 -0500)]
Reduce allocation in OptionsManager (#45231)
* Reduce allocation from OptionsCache's concurrent dictionary
This type is primarily used for getting and rarely mutated after startup; we don't need to pay for lots of lock objects to optimize for mutation.
* Avoid closure/delegate allocations in `OptionsManager<T>.Value`
* Update src/libraries/Microsoft.Extensions.Options/src/OptionsCache.cs
Co-authored-by: David Fowler <davidfowl@gmail.com>
Co-authored-by: David Fowler <davidfowl@gmail.com>
Stephen Toub [Wed, 25 Nov 2020 23:05:11 +0000 (18:05 -0500)]
Remove allocations from `OptionsCache<T>` (#45229)
Marie Píchová [Wed, 25 Nov 2020 21:22:44 +0000 (22:22 +0100)]
Disabled Http2_PingKeepAlive (#45214)
Buyaa [Wed, 25 Nov 2020 21:20:52 +0000 (13:20 -0800)]
Handle unsupported browser warnings (#43363)
* Handle browser warnings
* Apply feedback, revert updates handled with different PRs
* Add misssing diagnotic id
* Address multitargeted warnings
* Apply feedback
* Small type/comment updates
* Apply more feedback
* Use project settings instead adding Directory.Build.props
* Annotate APIs injecting unsupported type through DI
* Fix window support related warnings found with generic type parameter
* Fix another browser warning found with generic type parameter bug fix
* All public APIs of ConsoleLoggerExtensions are unsupported, so marking entire type as unsupported on browser
* Try handle mono warnings
* Revert mono related changes, it was mistake
* Try handle browser warninga in mono
* Apply feedback and fix new warnings caused from corelib changes
* Review update
* Apply feedback
* Move platform specific section from HttpTelemetry
* Revering unwanted changes
* Remove redundant attributes
* Exclude cross platform build with browser target
* small updates
* Annotate entire type DiagnosticCounter unsupported
* Apply feedback, improve suppression comments
* Remove Unsupported browser from TypeDescriptor.CreateInstance, TypeDescriptionProvider.CreateInstance and related updates
Andy Ayers [Wed, 25 Nov 2020 19:22:54 +0000 (11:22 -0800)]
Initial version of class profiling for PGO (#45133)
* Initial version of class profiling for PGO
Add support to the jit and runtime so that PGO can determine the distribution of
classes at virtual and indirect call sites.
Use this information when jitting to enable guarded devirtualization, if there
is a suitably likely class to guess for.
Enable by setting:
```
COMPlus_TieredCompilation=1
COMPlus_TieredPGO=1
COMPlus_JitClassProfiling=1
COMPlus_JitEnableGuardedDevirtualization=1
```
impact can be enhanced by also setting
```
COMPlus_TC_QuickJitForLoops=1
```
to allow more methods to pass through Tier0.
Marie Píchová [Wed, 25 Nov 2020 19:20:18 +0000 (20:20 +0100)]
Disabled test, fixed some typos as well. (#45212)
Jeremy Koritzinsky [Wed, 25 Nov 2020 18:43:40 +0000 (10:43 -0800)]
Fix ninja package name (#45217)
Alexander Köplinger [Wed, 25 Nov 2020 17:56:52 +0000 (18:56 +0100)]
Mono: switch to CMake build on Windows (#44976)
This unifies the build with the other platforms.
Hooks up the versioning targets so the mono libraries get the correct version.
Marek Safar [Wed, 25 Nov 2020 16:51:13 +0000 (17:51 +0100)]
Remove unused Enum::InternalFlagsFormat parameter (#45196)
Tammy Qiu [Wed, 25 Nov 2020 16:18:33 +0000 (11:18 -0500)]
[wasm] change filtering system timezones from zone.tab as a task parameter (#45138)
* change filtering system timezones from zone.tab as a task parameter
Co-authored-by: Ankit Jain <radical@gmail.com>
dotnet-maestro[bot] [Wed, 25 Nov 2020 15:32:31 +0000 (15:32 +0000)]
[master] Update dependencies from dotnet/icu dotnet/llvm-project dotnet/arcade dotnet/runtime-assets dotnet/xharness (#44459)
[master] Update dependencies from dotnet/icu dotnet/llvm-project dotnet/arcade dotnet/runtime-assets dotnet/xharness
- Merge branch 'master' into darc-master-
f04f89fe-a712-45ce-96bf-
a8d278fcda72
- Revert changes to dotnet sdk in global.json
See https://github.com/dotnet/runtime/pull/45108#pullrequestreview-
536374298
Stephen Toub [Wed, 25 Nov 2020 14:35:39 +0000 (09:35 -0500)]
Fix spelling of OverideEventProvider (#45113)
* Fix spelling of OverideEventProvider
* Fix a few more "overrides" in comments
Anton Firszov [Wed, 25 Nov 2020 14:13:09 +0000 (15:13 +0100)]
Implement TCP Keep-Alive for WinHttpHandler (#44889)
Implements the final version of the API proposal in #44025 except the [SupportedOSPlatform("windows10.0.2004")] bits
Stephen Toub [Wed, 25 Nov 2020 11:31:15 +0000 (06:31 -0500)]
Fix Socket telemetry outerloop test failures (#45170)
Based purely on code inspection, since I couldn't repro the failures happening in the lab, I believe what's happening is we're not outputting the right events if the connect ends up completing so fast that it's treated as a synchronous completion. The fix is to move the relevant tracing to be done when the work completes, regardless of the completion mode.
I was able to simulate at least one set of failures by delaying the calling thread before it reaches a particular point, and this fixes that issue, so even if it's not fixing all known problems (hopefully it is), it's at least fixing some.
Levi Broderick [Wed, 25 Nov 2020 11:04:05 +0000 (03:04 -0800)]
Skip some PKCS9 tests on NetFx (#45199)
Tarek Mahmoud Sayed [Wed, 25 Nov 2020 04:44:54 +0000 (20:44 -0800)]
Fix Activity Start Time Precision (#45175)
Marek Safar [Wed, 25 Nov 2020 03:30:25 +0000 (04:30 +0100)]
Remove redundant ExecutionContext private ctor parameter (#45173)
Stephen Toub [Wed, 25 Nov 2020 01:25:27 +0000 (20:25 -0500)]
Remove ForceAsync from CryptoStream (#45150)
Sergey Andreenko [Wed, 25 Nov 2020 00:44:23 +0000 (16:44 -0800)]
Keep precise argument sizes between import and morph. (#43130)
Create `GT_PUTARG_TYPE` when signature type does not match node type.
Check in morph that this information has survived inlining and other phases between.
Alex Perovich [Tue, 24 Nov 2020 23:52:26 +0000 (15:52 -0800)]
Fix work item exit code for helix tests (#45164)
* Fix work item exit code for helix tests
The helix work items are only supposed to return non-zero if they fail
to report tests for some reason.
* Fix if
Stephen Toub [Tue, 24 Nov 2020 22:59:42 +0000 (17:59 -0500)]
Reduce SafeHandle allocation in CertEnumCertificatesInStore (#45166)
And avoiding leaving the last invalid one for finalization.
Andy Ayers [Tue, 24 Nov 2020 22:25:04 +0000 (14:25 -0800)]
JIT: change basic block weight to float (#45052)
Change the core data type for basic block weights from unsigned to float,
to simplify overall calculations and allow for a wider dynamic range.
Many changes are straightforward, but a few are worth noting:
* LSRA needs a true max weight, so had to introduce infinity
* I removed some of the overflow checking as floats naturally saturate.
* The simple geometric loop weight scaling (*8 per loop nest level) leads
to some very large counts in some tests (15 level loop nests). We may
want to rethink this and scale less aggressively in deep nests.
* Morph's use of the weighted ref counts for RCS_EARLY is nonstandard
and the values are not actually weights, so I just added a cast back to unsigned.
* Several places in the jit seem to try and compare or combine unweighted
and weighted counts; I don't think this makes sense. But have left as is.
* Lower, LIR, and Decompose were passing around weights but never using them.
* I had to introduce a special new weight for the inline projection we do
for the prejit root.
These changes lead to small numbers of diffs, mostly places where small rounding
changes have altered heuristics; notably:
* cse weights
* LSRA's initial take on whether a parameter should be enregistered
Overall diff impact is a wash.
There are almost no diffs without PGO/IBC data. Diffs are slightly more
prominent in the Roslyn assemblies prejitted with some IBC.
I've tried to keep the format of weights the same in dumps (in most places)
and see minimal diffs in dumps too.
Tarek Mahmoud Sayed [Tue, 24 Nov 2020 21:51:46 +0000 (13:51 -0800)]
Fix Full Width Chars Casing (#45079)
Marek Safar [Tue, 24 Nov 2020 21:08:33 +0000 (22:08 +0100)]
Delay initialization of Task related properties which are rarely used (#45127)
* Delay initialization of Task related properties which are rarely used
to reduce the dependencies chain
* Apply PR review suggestions
* fix up previous commit
* Update src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Tomas Weinfurt [Tue, 24 Nov 2020 18:37:02 +0000 (10:37 -0800)]
add support for less standard serial port speeds on macOS (#44052)
* add support for less standard serial port speeds on macOS
* s/ifdef/if
Jeremy Barton [Tue, 24 Nov 2020 14:53:00 +0000 (06:53 -0800)]
Handle inconsistent \0 in Pkcs9Document{Name|Description}
Stephen Toub [Tue, 24 Nov 2020 12:03:10 +0000 (07:03 -0500)]
Reduce RuntimeType.MakeGenericType overheads (#45137)
- Avoid an extra GetGenericArguments() call for all arities.
- Special-case a Type[] with just one type. In looking at all calls to MakeGenericType when starting up a basic ASP.NET MVC app, 70% were for a single generic argument (the rest were for two).
Stephen Toub [Tue, 24 Nov 2020 03:45:58 +0000 (22:45 -0500)]
Update nullability.md
Sergey Andreenko [Tue, 24 Nov 2020 02:42:23 +0000 (18:42 -0800)]
Fix CoreRT frozen strings handling. (#45095)
* Fix CoreRT frozen strings handling.
* Review response.
* Delete noway_assert.
* Additional checks.
* Fix failures.
Sergey Andreenko [Tue, 24 Nov 2020 02:32:24 +0000 (18:32 -0800)]
Fix native build on arm and arm64. (#45131)
* Fix native build on arm and arm64.
* Fix a typo.
Levi Broderick [Mon, 23 Nov 2020 23:53:09 +0000 (15:53 -0800)]
Remove most uses of RuntimeTypeHandle.Allocate (#45085)
- Refactoring paves way for related work in https://github.com/dotnet/runtime/pull/32520
- Fixes some possible GC holes in the reflection stack
Jan Kotas [Mon, 23 Nov 2020 21:51:34 +0000 (13:51 -0800)]
Update ILVerify readme (#45123)
ILVerify is published on nuget now. It is not required to use the nightly feed anymore.
Stephen Toub [Mon, 23 Nov 2020 20:48:27 +0000 (15:48 -0500)]
Use Type.EmptyTypes consistently (#45112)
We currently have several hundred uses of `Array.Empty<Type>()` and several hundred uses of `Type.EmptyTypes`. This just changes the repo to use the latter consistently.
Sergey Andreenko [Mon, 23 Nov 2020 18:57:27 +0000 (10:57 -0800)]
Use `argIsInvariant` instead of `argNode->OperIsConst()` for inlining observations. (#44790)
* Use `argIsInvariant` instead of `argNode->OperIsConst()`.
* add a small repro test for the current issue.
Zoltan Varga [Mon, 23 Nov 2020 17:25:52 +0000 (12:25 -0500)]
Add support for stack walks on wasm for the reflection methods which need them. (#45076)
Fixes https://github.com/dotnet/runtime/issues/44269.
Egor Bogatov [Mon, 23 Nov 2020 16:33:40 +0000 (19:33 +0300)]
[Android] Introduce AndroidApkFileReplacerTask task (#44993)
Ben Adams [Mon, 23 Nov 2020 15:02:35 +0000 (15:02 +0000)]
Skip Invariant initialization test for CultureData.Invariant (#45064)
* Skip Invariant initalization test for CultureData.Invariant
* Feedback
Geoff Kizer [Mon, 23 Nov 2020 14:19:09 +0000 (06:19 -0800)]
disable ReadWrite_Success_Large test for CryptoStream because it takes too long to run (#45081)
Co-authored-by: Geoffrey Kizer <geoffrek@windows.microsoft.com>
Marek Safar [Mon, 23 Nov 2020 12:58:33 +0000 (13:58 +0100)]
Create cancellation token registration wrapper only when it's needed (#45075)
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Stephen Toub [Sun, 22 Nov 2020 22:59:47 +0000 (17:59 -0500)]
Improve throughput of Environment.GetEnvironmentVariables() (#45057)
Use IndexOf to search for positions rather than open-coded loops, taking advantage of vectorization to improve throughput.
Jan Kotas [Sun, 22 Nov 2020 15:30:25 +0000 (07:30 -0800)]
Delete unused WinRT related strings (#45067)
Fix a few typos
N [Sun, 22 Nov 2020 06:59:00 +0000 (01:59 -0500)]
Fix Typos (#45024)
Marek Safar [Sun, 22 Nov 2020 06:06:04 +0000 (07:06 +0100)]
Drop Convert static constructor dependency from RuntimeType (#45054)
* Drop Convert static constructor dependency from RuntimeTypeto make it trimmable
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Marek Safar [Sat, 21 Nov 2020 23:06:52 +0000 (00:06 +0100)]
Use HexConverter directly when producing hex representation of enum value (#44945)
instead of hopping over layers of ToString indirections which end up calling HexConvertor anyway.
Egor Bogatov [Sat, 21 Nov 2020 23:01:32 +0000 (02:01 +0300)]
Handle non-ASCII strings in GetNonRandomizedHashCodeOrdinalIgnoreCase (#44688)
* Fix GetNonRandomizedHashCodeOrdinalIgnoreCase
* Add a test
Co-authored-by: Levi Broderick <levib@microsoft.com>
Bruce Forstall [Sat, 21 Nov 2020 18:46:03 +0000 (10:46 -0800)]
Implement getMethodModule (#45046)
R2R testing was failing by hitting an assert about unimplemented
getMethodModule, called as part of R2R-only devirtualization handling
in the JIT.
I didn't determine why this regressed now.
Fixes #45016
Shay Rojansky [Sat, 21 Nov 2020 07:11:41 +0000 (09:11 +0200)]
Correct nullability annotation for IDataRecord (#44938)
Fixes #44886
Adeel Mujahid [Sat, 21 Nov 2020 03:12:31 +0000 (05:12 +0200)]
Use OutputRid for host packs (#45041)
Kenneth Pouncey [Sat, 21 Nov 2020 02:45:12 +0000 (03:45 +0100)]
[browser][tests] Standup System.Net.WebSockets.Client.Tests in CI (#44781)
* [browser][tests] Standup System.Net.WebSockets.Client.Tests in CI
* Just a small test to see if tests are actually kicked off and failing.
* Remove comment from ActiveIssue to pass tests
* Address review comments
- mark the loopback issues as activeIssue - [ActiveIssue("https://github.com/dotnet/runtime/issues/34690", TestPlatforms.Browser)]
* Address review comments
* Correct confusion I caused
* Remove extra extra exclusion that snuck in
* Make browser specific failure browser specific
Co-authored-by: Larry Ewing <lewing@microsoft.com>
Jan Kotas [Sat, 21 Nov 2020 02:32:04 +0000 (18:32 -0800)]
Hide DispatchTailCalls helper in stacktraces (#45019)
Fixes #45011
Kevin Jones [Sat, 21 Nov 2020 00:02:53 +0000 (19:02 -0500)]
Add GetCiphertextLength for CBC, CFB, and ECB.
Stephen Toub [Fri, 20 Nov 2020 23:58:31 +0000 (18:58 -0500)]
Remove more LINQ usage from various dotnet/runtime libraries (#44964)
* Remove unnecessary OrderBy / copy from MemoryCache.Compact
* Replace First() in ILEmitResolverBuilder with [0]
* Remove stale "using System.Linq;" from System.Text.Json
* Remove stale "using System.Linq;" from System.Security.Cryptography.X509Certificates
* Remove some LINQ usage from System.Security.Cryptography.Pkcs
* Remove System.Linq reference from System.Private.Xml
* Remove System.Linq reference from System.Net.WebHeaderCollection
* Remove stale "using System.Linq;" from CookieContainer
* Remove stale "using System.Linq;" from AltSvcHeaderParser
* Remove Enumerable.Contains on a string from System.IO.Packaging
* Remove System.Linq dependency from System.Diagnostics.Process
* Remove LINQ usage from Microsoft.Extensions.Options
* Remove LINQ usage from Microsoft.Extensions.Logging
* Remove LINQ usage from Microsoft.Extensions.Logging.Console
* Remove LINQ from CollectionExtensions.GetAssets/RuntimeFiles
* Update src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Rfc3161TimestampToken.cs
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
Stephen Toub [Fri, 20 Nov 2020 23:57:40 +0000 (18:57 -0500)]
Remove LINQ usage from EnvironmentVariablesConfigurationProvider (#44923)
Stephen Toub [Fri, 20 Nov 2020 23:17:35 +0000 (18:17 -0500)]
Remove Convert.ToByte usage from Enum (#45004)
Geoff Kizer [Fri, 20 Nov 2020 23:12:55 +0000 (15:12 -0800)]
Fix buffer comparison in stream conformance tests (#45012)
* avoid using Assert.Equals for buffer comparison in stream conformance tests because it's super, super slow
* Apply suggestions from code review
update span comparisons
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Geoffrey Kizer <geoffrek@windows.microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Kunal Pathak [Fri, 20 Nov 2020 21:30:42 +0000 (13:30 -0800)]
Register allocation cleanup (#44977)
* Register allocation cleanup
- Comment updates
- Misc code cleanup
* jit format
Krzysztof Wicher [Fri, 20 Nov 2020 20:32:07 +0000 (21:32 +0100)]
Add missing XML docs to System.Security.* (#44461)
* Add missing XML docs to System.Security.*
* add missing <
* Apply suggestions from code review
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
* Update src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Rfc3161TimestampTokenInfo.cs
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
* apply feedback
* fix merge conflict (renamed parameters)
* Apply suggestions from code review
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
* Update src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Rfc3161TimestampTokenInfo.cs
Co-authored-by: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
Drew Scoggins [Fri, 20 Nov 2020 20:00:40 +0000 (12:00 -0800)]
Add chmod for the SoD tool (#45014)
* Add chmod for the SoD tool
* crossgen.out input path
Drew Scoggins [Fri, 20 Nov 2020 19:46:32 +0000 (11:46 -0800)]
Add Linux ARM64 runs (#44887)
Fan Yang [Fri, 20 Nov 2020 19:27:44 +0000 (14:27 -0500)]
Updated mono testing doc (#44360)
* Update testing.md
* Create testing-mono.md
* Update mono testing doc
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* PR feedback
* Fix format
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* PR feedback
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Update docs/workflow/testing/mono/testing.md
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
* Replace bullet points with sub-headers
* Update sub-headers to remove the duplicated part
Co-authored-by: Ryan Lucia <rylucia@microsoft.com>
imhameed [Fri, 20 Nov 2020 19:15:46 +0000 (11:15 -0800)]
[mono] Define ENABLE_MONOTOUCH and MONOTOUCH when building iOS/tvOS AOT cross compilers (#45005)
Vadim Galaktionov [Fri, 20 Nov 2020 17:17:20 +0000 (20:17 +0300)]
Fix add user secrets (#44838)
Kevin Jones [Fri, 20 Nov 2020 16:37:48 +0000 (11:37 -0500)]
Fix CFB8 with Zero padding
Dan Moseley [Fri, 20 Nov 2020 15:50:13 +0000 (07:50 -0800)]
Disable on Server Core a couple tests that use notepad (#44972)
Stephen Toub [Fri, 20 Nov 2020 15:40:20 +0000 (10:40 -0500)]
Use TryParseUInt32HexNumberStyle directly from Guid.TryParse (#44918)
Skips public entry points of uint.TryParse, including argument validation, branches for style, but most impactfully fetching the current number culture when it won't actually be needed.
Levi Broderick [Fri, 20 Nov 2020 15:38:00 +0000 (07:38 -0800)]
Use substitute SHA-1 implementation in wasm (#44982)
* Use different managed SHA-1 implementation
* Add missing call to Start
Adeel Mujahid [Fri, 20 Nov 2020 15:37:07 +0000 (17:37 +0200)]
Fix parsed RID condition for VS (#44998)
Eric Erhardt [Fri, 20 Nov 2020 15:35:39 +0000 (09:35 -0600)]
Increase Hosting test delay to fix flaky BackgroundServiceAsyncExceptionGetsLogged test. (#44953)
* Increase Hosting test delay to fix flaky BackgroundServiceAsyncExceptionGetsLogged test.
Fix #43389
* Use a Task to control the delay on the background service.
Juan Hoyos [Fri, 20 Nov 2020 14:34:29 +0000 (06:34 -0800)]
Preserve symbols in dbgshim (#44970)
* Preserve symbols in the dbgshim
* Remove unused library group option.
Tom Deseyn [Fri, 20 Nov 2020 14:19:55 +0000 (15:19 +0100)]
Fix pal cgroup v2 implementation (#44990)
* Fix pal cgroup v2 implementation
Fixes two issues in src/pal/src/misc/cgroup.cpp:
* No subsystem match must be performed for cgroup v2.
* Incorrect arguments for sscanf_s when reading cgroup path.
The src/gc/unix/cgroup.cpp implementation doesn't have these issues.
* Rename is_subsystem_match to isSubsystemMatch
Shreyas Jejurkar [Fri, 20 Nov 2020 11:27:36 +0000 (03:27 -0800)]
Removed unwanted ManualResetEvent from ServiceController (#44716)
* Removed unwanted ManualResetEvent from ServiceController
Fixes https://github.com/dotnet/runtime/issues/44699
* Addressed PR feedback.
Added delay of 250 ms.
Anton Lapounov [Fri, 20 Nov 2020 08:36:32 +0000 (00:36 -0800)]
Build osx-x64 Crossgen2 package (#44984)
Stephen Toub [Fri, 20 Nov 2020 05:07:08 +0000 (00:07 -0500)]
Fix handling of \G in Regex.Split/Replace (#44975)
In our optimized Regex.Split loop, we failed to update runtextstart, which means the \G anchor (aka starting where the previous match ended).
Viktor Hofer [Thu, 19 Nov 2020 23:46:44 +0000 (00:46 +0100)]
Fix syntax error in Signing.props (#44971)
Steve Pfister [Thu, 19 Nov 2020 23:40:23 +0000 (18:40 -0500)]
Enables the interpreter on iOS (#44911)
To enable on tests, you can pass MonoForceInterpreter=true as an extra MSBuild property.
AppleAppBuilder will also have a ForceInterpreter property on it in order to flow down to device / simulator.
Marek Safar [Thu, 19 Nov 2020 23:25:25 +0000 (00:25 +0100)]
Use simple convert method for internal bool to ulong enum conversion (#44942)
Simon Nattress [Thu, 19 Nov 2020 23:16:41 +0000 (15:16 -0800)]
Move xunit test harness to its own directory under core_root (#44921)
Running `xunit.console` from within the CoreRoot directory is problematic. It is executed by the shared runtime but has a full copy of the runtime and framework libraries next to it from which assemblies are getting loaded despite being for a pre-release test runtime.
Place the xunit assemblies under `<core_root>/xunit` and update the places that invoke it in local and Helix test runs.
The loaded tests do reference the xunit assemblies so they need to also be available in core_root for when the tests run (with the exception of the harness specific assemblies like xunit.console).
Jeremy Koritzinsky [Thu, 19 Nov 2020 23:01:30 +0000 (15:01 -0800)]
Fix post build signing props and enable post build signing. (#44951)
Zoltan Varga [Thu, 19 Nov 2020 22:42:01 +0000 (17:42 -0500)]
Run class cctor in RuntimeHelpers.GetUninitializedObject(type). (#44898)
* Run class cctor in RuntimeHelpers.GetUninitializedObject(type).
Fixes https://github.com/dotnet/runtime/issues/44852.
* Reenable test.
* Don't run the cctor for beforefieldinit classes.
Steve Harter [Thu, 19 Nov 2020 21:16:38 +0000 (15:16 -0600)]
Custom attribute properties were not always applied correctly (#44813)
Adeel Mujahid [Thu, 19 Nov 2020 21:04:40 +0000 (23:04 +0200)]
Use multibyte character path for bundle_probe (#44466)