Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
Adam Ralph 5ec20d06b8 Fix vector tests to work on non en-US culture machines 2014-11-12 17:29:25 +01:00
Matt Cohn b6b1bccffb Merge branch 'use-msbuild-12-and-14' of https://github.com/FiveTimesTheFun/corefx
Conflicts:
	src/System.Reflection.Metadata/tests/System.Reflection.Metadata.Tests.csproj
2014-11-11 23:29:48 -08:00
Matt Cohn 518e13ebad Merge branch 'fix-mdreader-tests' of https://github.com/nguerrera/corefx 2014-11-11 23:03:36 -08:00
Matt Cohn c8d365b40b build.cmd uses either MSBuild 12 or MSBuild 14 and works on x64 & x86
Previously our repositories would build in either a Dev12 or a Dev14
Developer Command Prompt, but only if Dev12 (for MSBuild 12) was
on the box due to a hard-coded path to MSBuild 12.  This change
will use MSBuild 14 if MSBuild 12 is not available.  Also previously
this would look for MSBuild in the WOW Program Files path, this change
causes us to also look in the normal Program Files path for x86
Windows.
2014-11-11 22:48:44 -08:00
Matt Cohn 2de7dce375 Replace path to 32-bit program files with an msbuild property.
This change fixes the build of our libraries on an x86 machine
using Dev14 by using an msbuild property to locate the 32-bit
program files directory.
2014-11-11 21:54:30 -08:00
dotnet-bot 466df1f69d Add PATENTS.TXT. 2014-11-11 20:22:28 -08:00
Nick Guerrera d3b3ac3ab0 Prevent disabled metadata reader tests from issuing build warnings.
One of the disabled tests was obsolete. The design decision that was pending
is closed and the behavior tested did not match the decision. That test is
simply deleted.

The other test is changed from using [Fact(Skip="...")] to /*[Fact]*/. It is
now tracked by Issue #26.

Finally, I spotted a typo: 'overload' instead of 'overlong' nearby and fixed it.
2014-11-11 20:20:52 -08:00
dotnet-bot 4d11cf1164 Update LICENSE file. 2014-11-11 20:17:51 -08:00
Nick Guerrera 67f45ab9cd Remove extra newlines in .sln files that prevented default open in VS 2013.
The Visual Studio Version Selector doesn't honor the VS version when there's
an extra newline at the beginning of the file.
2014-11-11 19:55:05 -08:00
Matt Cohn 5e81a092b5 Merge branch 'DisableSimdTests' of https://github.com/mellinoe/corefx into disable-simd-tests 2014-11-11 19:35:01 -08:00
Eric Mellino 6a44607015 Moved comment inside attribute 2014-11-11 19:04:19 -08:00
Eric Mellino 80499464bc Disable 2 SIMD Tests because of CI build break 2014-11-11 18:51:19 -08:00
Nick Guerrera 807618b7bf Merge branch 'remove-unnecessary-strings' of https://github.com/ellismg/corefx 2014-11-11 15:16:36 -08:00
Nick Guerrera a091203854 Merge branch 'master' of https://github.com/stephentoub/corefx
Conflicts:
	src/System.Xml.XDocument/System/Xml/Linq/XLinq.cs

XLinq.cs was split in to several files. Re-applied the relevant change to
XNodeReader.cs.
2014-11-11 15:07:33 -08:00
Nick Guerrera a79daeacd5 Merge branch 'FixUnsafeCodeWarning' of https://github.com/AArnott/corefx 2014-11-11 14:53:46 -08:00
Nick Guerrera 0a4d5472f3 Merge branch 'SortedSetBuilderIndexer' of https://github.com/AArnott/corefx 2014-11-11 14:47:25 -08:00
Nick Guerrera ce3f774426 Merge branch 'MoreEnumerationPerfFixes' of https://github.com/AArnott/corefx 2014-11-11 14:33:45 -08:00
Nick Guerrera b8c001edce Merge branch 'EnumerationPerfFixes' of https://github.com/AArnott/corefx 2014-11-11 14:28:22 -08:00
Nick Guerrera b250c1864b Merge branch 'lasekar/test2' of https://github.com/Priya91/corefx
Conflicts:
	src/System.Xml.XDocument/System.Xml.XDocument.csproj
2014-11-11 14:23:13 -08:00
Nick Guerrera d47b4de353 Merge branch 'master' of https://github.com/Petermarcu/corefx 2014-11-11 14:14:46 -08:00
Andrew Arnott 89c99b789d Add indexer to ImmutableSortedSet`1+Builder class.
The indexer is available on the immutable type, so its absence from the Builder is notable. Fortunately, it's simple to correct.

New tests included.
2014-11-11 13:57:06 -08:00
stephentoub 33a31df749 Use "this." in a few places to match the style of the project 2014-11-11 15:42:20 -05:00
Matt Cohn c06c16a2b4 Merge branch 'FixLicenseAndFormatting' of https://github.com/mellinoe/corefx 2014-11-11 12:02:52 -08:00
stephentoub 31e929ce15 Added guards to ICollection.CopyTo implementations to avoid allocating the indices array for SetValue when the collection being copied from is empty 2014-11-11 14:31:42 -05:00
Matt Ellis 35092b72ea Remove unnecessary ValidationStrings.resx file.
The resources in ValidationStrings.resx were not used anywhere, so I'm
just removing it as well as the coresponding designer support.
2014-11-11 11:29:07 -08:00
Andrew Arnott 64929227e3 Defend against pathalogical thread-safety case.
If SecureObjectPool.NewId were to execute in a concurrent scenario where one thread actually was suspended while other threads were allowed to increment the counter enough to go through all 32-bits of values and the timing happened to be _just write_, we could theoretically return UnassignedId. This fixes it by looping until we get it right.
2014-11-11 11:06:37 -08:00
Andrew Arnott f3f9e2069c Remove use of locks that significantly slow down enumeration.
Enumerating some immutable collections are necessarily slower than ordinary collections because they have to walk binary trees. But we needn't throw in locks into the enumerator and slow it down further in an attempt to claim enumerators are somehow thread-safe. They're not. And misusing them across threads concurrently would already lead to corruption.

By removing the locks here, we've significantly improved performance of enumerating ImmutableSortedDictionary (and the other binary tree based collections). Even though the locks weren't contested, they still took a significant chunk of time.

The loss of the locking means that technically if the enumerator is in use across multiple threads then now it's possible for a recycled Stack to still be in use on another thread, leading to data corruption for the possibly innocent subsequent user of that stack. Since we've already decided that immutable collections will not be considered as behind a security boundary (i.e. we won't treat such possibilities as security compromising to the core system), this seems quite reasonable for such an unlikely and unsupported pattern to carry this risk given the huge wins it has for all the supported cases.
2014-11-11 11:05:18 -08:00
Andrew Arnott b460c27012 Switch from locks to ThreadStatic for AllocFreeConcurrentStack. 2014-11-11 11:05:17 -08:00
Andrew Arnott fb19533a15 Add code comment. 2014-11-11 11:05:16 -08:00
Andrew Arnott 7f84859e0d Switches object pool IDs from GUIDs to Int32.
This cuts out the expensive Guid.op_Equality step from ThrowDisposedIfNotOwned.
2014-11-11 11:05:15 -08:00
Andrew Arnott ab1e10fe67 Exclude method used for perf trace collection from functional tests. 2014-11-11 11:02:25 -08:00
Andrew Arnott 11eedf76c1 Fix tests to pass after perf improvement. 2014-11-11 10:56:01 -08:00
Peter Marcu c26ee75236 Adding more details for how to build and test for the corefx repo 2014-11-11 10:51:58 -08:00
Andrew Arnott e489e950be Remove unnecessary unsafe code flag.
The Immutable PCL targets platforms that include those that don't support unsafe code. Opening the solution in VS2015 results in a warning in the error list about this. But features that required unsafe code were recently removed so we don't need this flag any more.
2014-11-11 10:45:59 -08:00
stephentoub d1d7001376 Remove or cache some unnecessary allocations 2014-11-11 13:18:55 -05:00
Andrew Arnott a75a1339fd Improve performance of enumerating empty collections.
Avoid perf hit from acquiring a reusable stack object to enumerate a collection that is empty, and thus requires no stack object.
This improves ImmutableSortedDictionary directly, and both ImmutableDictionary and ImmutableHashSet benefit as well since they use ImmutableSortedDictionary internally.
2014-11-11 10:06:43 -08:00
Matt Cohn 86e3da8e58 Remove internal package source from NuGet.config
In preparation for making our repositories public, I've uploaded
Microsoft.DotNet.BuildTools to NuGet.org.  This change removes
our internal NuGet feed, leaving the public feed.  With this change
the CoreFx repository should now build outside of Microsoft.
2014-11-11 09:41:25 -08:00
Lakshmi Priya f24cc1f5af Splitting XLinq classes into separate files. 2014-11-10 19:50:32 -08:00
Matt Cohn b69964f05a Merge branch 'xml-resource-fix' of https://github.com/nguerrera/corefx 2014-11-10 19:34:25 -08:00
Nick Guerrera f819dffdad Get XML building in VS by switching to standard .resx 2014-11-10 19:27:45 -08:00
richamsft 3dbe259f19 Issue -
ImmutableArray.CreateBuilder<int>(-1); throws overflow exception but is expected to throw ArgumentOutOfRangeException.
Fix -
This fix checks the argument "capacity" for valid range such that ArgumentOutOfRangeException is thrown instead.
Also, added a testcase for this scenario.
2014-11-10 17:41:12 -08:00
Matt Cohn 464dbb2108 Update build tools reference to 1.0.11. This version of the build
tools has been formatted, and has changes to work with our latest CI
project on Visual Studio Online.
2014-11-10 16:34:37 -08:00
Eric Mellino d6310ac8c9 Fix License wording, extra line break, and delete unused file 2014-11-10 13:44:50 -08:00
dotnet-bot f11305d31a Initial commit
_   _ _____ _____   ____            _        _
   | \ | | ____|_   _| |  _ \ ___   ___| | _____| |
   |  \| |  _|   | |   | |_) / _ \ / __| |/ / __| |
  _| |\  | |___  | |   |  _ < (_) | (__|   <\__ \_|
 (_)_| \_|_____| |_|   |_| \_\___/ \___|_|\_\___(_)
2014-11-07 18:58:41 -08:00