Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-04[mono] limit DegreeOfParallelism to 16 (#369)Bernhard Urban-Forster
We started to see the `System.Core-xunit` step on CI to hit the timeout of 15 minutes with Linux/ARM64. That was weird, because the step used to be completed in around two minutes. With my local device (jetson board) I wasn't able to reproduce it either; it took around 100s there. We then realized it's specific to the new `taishan` CI machines, which are equipped with 64 cores. Hardcoding `mono_cpu_count` to return 16 restored the performance, however that isn't a viable fix. Limiting `DefaultDegreeOfParallelism` to 16 fixes it, which is less extreme than limiting `mono_cpu_count ()`, still not ideal though. It seems to boil down to the fact that our non-netcore threadpool implementation doesn't handle a large number of cores well. `repro.cs`, extracted from here https://github.com/dotnet/corefx/blob/a9b91e205a8794327a028cb4b29953127f0f194c/src/System.Linq.Parallel/tests/QueryOperators/ConcatTests.cs#L145-L154 ```csharp using System; using System.Linq; using System.Collections.Generic; using System.Threading; public class Repro { public static void Main (string []args) { const int ElementCount = 2048; ParallelQuery<int> leftQuery = ParallelEnumerable.Range(0, ElementCount / 4).Union(ParallelEnumerable.Range(ElementCount / 4, ElementCount / 4)); ParallelQuery<int> rightQuery = ParallelEnumerable.Range(2 * ElementCount / 4, ElementCount / 4).Union(ParallelEnumerable.Range(3 * ElementCount / 4, ElementCount / 4)); var results = new HashSet<int>(leftQuery.Concat(rightQuery)); Console.WriteLine ("results.Count=" + results.Count + ", ElementCount=" + ElementCount); } } ``` Before fix: ```console $ time ./mono/mini/mono-sgen repro.exe results.Count=2048, ElementCount=2048 real 0m5.846s user 0m0.344s sys 0m1.929s $ make -C mcs/class/System.Core run-xunit-test [...] === TEST EXECUTION SUMMARY === net_4_x_System.Core_xunit-test Total: 48774, Errors: 0, Failed: 0, Skipped: 6, Time: 536.005s ``` With this fix: ```console $ time ./mono/mini/mono-sgen repro.exe results.Count=2048, ElementCount=2048 real 0m1.247s user 0m0.206s sys 0m0.225s $ make -C mcs/class/System.Core run-xunit-test [...] === TEST EXECUTION SUMMARY === net_4_x_System.Core_xunit-test Total: 48774, Errors: 0, Failed: 0, Skipped: 6, Time: 131.143s ```
2019-10-31Backport SqlCommand FixSteve Pfister
Backport of https://github.com/dotnet/corefx/pull/29614 (#368) Fixes https://github.com/mono/mono/issues/14450
2019-10-29Merge pull request #367 from baulig/work-file-copy2Martin Baulig
Put fchmod back to the top in SystemNative_CopyFile and only ignore when it fails on android
2019-10-29Still check for futimens() result on desktop, remove unnecessary fstat() callsAlexander Köplinger
2019-10-29Put fchmod back to the top in SystemNative_CopyFile and only ignore when it ↵Martin Baulig
fails on android.
2019-10-29Restore fchmod check in SystemNative_CopyFile and only ignore when it fails ↵Steve Pfister
on android (#365)
2019-10-28SystemNative_CopyFile(): move fchmod() call to top and add exception for ↵Martin Baulig
Android (#364) * SystemNative_CopyFile(): move fchmod() call to top and add exception for Android. The `fchmod()` call should happen first to ensure that the target file has the correct permissions prior to writing into it. On Android, we make an exception in case the `fchmod()` fails: if we can `fstat()` both the source and the target file and the target file's permissions are at least as restrictive as the source file's, then we allow the operation to proceed. See https://github.com/mono/mono/issues/17133 for details. * Update pal_io.c
2019-10-23Update GSS/NTLM-related sources (from .NET Core 3.0 and 2.2) (#362)Egor Bogatov
2019-10-14Modifies the RequestUri property on HttpRequestMessage to validate the same ↵Steve Pfister
way as the constructor does. (#361) It will now call into IsAllowedAbsoluteUri, which adds some mono specific checks.
2019-10-10Clean up some tests and move to new Azure endpoint (#41603) (#360)Alexander Köplinger
* Test only fixes * Port PR #36018 from master branch This PR changes the Azure test endpoint to use Azure App Service instead of the classic Azure Cloud Service endpoint. The use of the classic Azure Cloud Service is no longer recommended since it is harder to maintain. Once all remaining branches are converted, we will shut down the corefx-net.cloudapp.net endpoint. This PR also includes some other test fixes and tests disabled due to active issues.
2019-10-10Fix System.MissingMemberException (#359)Thays Grazia
* Fixing unit test error of xamarin-macios during mono 2019-10 integration. Error: System.MissingMemberException : The lazily-initialized type does not have a public, parameterless constructor. Marek suggested to use a factory lambda when calling LazyInitializer.EnsureInitialized.
2019-10-08Enable Color TypeConverter on mobile profiles (#356)Alexander Köplinger
We need to ifdef out the `Editor` attribute since System.Drawing.Design is not there on mobile.
2019-09-27Fix ReadOnlySequence.cs build with mcs (#354)Alexander Köplinger
Remove the nullability annotations for now.
2019-09-27Fix mcs build (#353)monojenkins
Backport of #350.
2019-09-26Reflect recent NS21 changes (#348)Egor Bogatov
2019-09-16Disable test ↵Martin Baulig
NetworkStreamTest.ReadAsync_ContinuesOnCurrentSynchronizationContextIfDesired(). (#346) We currently do not run any of the NetworkStream tests; disabling this one will allow us to do so with my upcoming PR that will use NetworkStream from CoreFX.
2019-09-12Add additional checks to support more platforms. (#344)Johan Lorensson
2019-09-12Merge pull request #345 from baulig/work-partial-nsEgor Bogatov
Make `NetworkStream` partial.
2019-09-12Make `NetworkStream` partial.Martin Baulig
2019-09-11Pull in fsw fix that fixes https://github.com/dotnet/corefx/issues/40888 (#343)Steve Pfister
Backport of: https://github.com/dotnet/corefx/pull/41013
2019-08-26Remove extraneous parenthesisAlexander Köplinger
2019-08-26Allow file:// uri's to be provided to HttpClient (#339)Steve Pfister
The Uri will eventually be combined w/ a base address and will eventually make a proper one. This restores mono's old Uri + HttpClient behavior, added originally by https://github.com/mono/mono/commit/0b7afa989dafd4d712d5a94044fd98ecc40f2ecc The issue was logged from: https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/967582 It appears that the test that would have caught this was disabled via this commit: https://github.com/mono/mono/commit/2f411750acfd2132f9b4970ef8cf11d9a0f62df9
2019-08-23Disable DanglingSymlinkMove/Copy tests on TVOS (#336)Alexander Köplinger
symlink() doesn't work on TVOS devices.
2019-08-20Use the proper method for getting fully resolved temporary file paths (#332)Alexis Christoforides
This was a bug in the tests from mono/mono#15616 Fixes https://github.com/mono/mono/issues/16360
2019-08-11Fix build break from #327Alexander Köplinger
2019-08-10Fix another bug in https://github.com/mono/mono/pull/16049 (#327)Alexis Christoforides
2019-08-09Fix use of Span.Slice(int start() introduced in ↵Alexis Christoforides
https://github.com/mono/mono/pull/16049 (#323)
2019-08-09Guard against attempting to creating out-of-range spans in macOS File… (#317)Alexis Christoforides
* Guard against attempting to creating out-of-range spans in macOS FileSystemWatcher * Only slice out the root watch directory from path iff it is actually the first part of the path
2019-08-08Add dependency tracking for linker to EnumerableRewriter. Fixes ↵Marek Safar
https://github.com/mono/mono/issues/15259
2019-08-01FileSystem.Unix.cs: use "== null" instead of "is null" (#315)Alexander Köplinger
mcs has problems with this new C# feature: "error CS1644: Feature `pattern matching' cannot be used because it is not part of the C# 7.3 language specification"
2019-08-01Merge pull request #314 from mono/fix-gh-14971Alexis Christoforides
Allow copying/moving/replacing broken symlinks
2019-07-31Skip old time zones adjustments with offsets higher than 14h (#18305) ↵Maxim Lipnin
(#30217) (#313) * Skip old time zones with offsets higher than 14h * apply offline feedback * fix braces Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
2019-07-30Allow copying/moving/replacing broken symlinksAlexis Christoforides
2019-07-22Log exceptions from asynchronously failing Expect: 100-continue sends (#37391)Stephen Toub
* Log exceptions from asynchronously failing Expect: 100-continue sends When Expect: 100-continue is used, the sending of the request body content is allowed to run concurrently with the receipt of the response headers. If the processing of the response headers encounters an exception, we currently fail to ever join with that send task, which results in a TaskScheduler.UnobservedTaskException event. This PR changes to observe the exception in such cases and log it. (In doing so, I also came across an async void method, and changed all of the remaining ones in the assembly to be async Task instead. The current implementation of async void isn't any cheaper than async Task, and is actually more expensive in certain ways, plus it unnecessarily interacts with any SynchronizationContext that may exist.) * Address PR feedback (cherry picked from commit 0bc3ee4a4f1debaa0dd3c957d5201ae2a47757a1)
2019-07-16Merge pull request #311 from EgorBo/fix-httpresponse-ns21Steve Pfister
Add TrailingHeaders to HttpResponseMessage (NS2.1)
2019-07-16forgot HttpResponseMessageEgor Bogatov
2019-07-16Relfect ns2.1 changesEgor Bogatov
2019-07-10Merge pull request #309 from baulig/work-no-encryption-testSteve Pfister
Disable the entire ServerNoEncryptionTest test.
2019-07-10Disable the entire ServerNoEncryptionTest test.Martin Baulig
Mono ignores the `EncryptionPolicy` enum and always requires encryption, so we should disable this entire test class.
2019-07-03Merge pull request #308 from steveisok/pathinternal-tweakSteve Pfister
Fix the fsw check for just spaces in a file name
2019-07-03Used ROS IsWhiteSpace insteadSteve Pfister
2019-07-03Fix the fsw check for just spaces in a file nameSteve Pfister
2019-07-02System.Numerics.Vectors: Remove reflection in GenericVectorTests (#306)Alexander Köplinger
This allows us to use the test with the managed linker enabled in Xamarin.iOS since it no longer strips out the MaxValue/MinValue fields. See mono/mono#14877 Port of upstream corefx PR dotnet#39095
2019-07-02Add Empty Path Check to the Start of FileSystemWatcher Notify Events (#305)Steve Pfister
* Fixes https://github.com/mono/mono/issues/15434 by checking if the path is effectively empty before interacting with any Path methods. We needed to modify the fork at this point because Mono still supports netfx Path rules, which cannot contain spaces (CoreFX allows this on nix). * Review tweaks
2019-06-26Merge pull request #303 from MaximLipnin/fix_sql_connectionSteve Pfister
Fix the issue where SQL connection hangs with zero-connection timeout
2019-06-26Fix the issue where SQL connection hangs with zero-connection timeoutMaxim Lipnin
2019-06-17Marks PropertyInfo as [Serializable] per ↵Steve Pfister
https://github.com/mono/mono/issues/14864 Note that this is a Mono CoreFX change only.
2019-06-06Make `DateTimeFormatInfo` and `DateTimeParse` more linker friendly.Martin Baulig
The goal is to allow the linker to remove some of the globalization code that is conditional to `GlobalizationMode.Invariant`. Since the linker does not currently support dead code elimination, it cannot break down any conditionals inside method bodies. One trick that we use to work around this is to move those conditional pieces into separate methods; then we can give the linker a list of those methods and tell it to replace their bodies with exceptions. In this particular case, we do not want to access the `JapaneseCalendar` and `TaiwanCalendar` types from methods that could not (currently) be linked out. The `DateTimeFormatInfo.PopulateSpecialTokenHashTable()` method does not explicitly reference any of those, but it is quite big so we benefit from having the non-invariant pieces in a separate method which can then be removed.
2019-06-05Merge pull request #300 from baulig/work-backport-28129-testMartin Baulig
Remove the newly added test again.
2019-06-05Remove the newly added test again.Martin Baulig
The test was done against corefx/master and does not compile with our fork because of changes in their `LoopbackServer` as well as a new `HttpClientTestBase` subclass that was introduced in master.