Commit Graph
860 Commits
Author SHA1 Message Date
dotnet-bot 5eb2424d89 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24628-02, beta-24628-01, beta-24628-00, beta-24628-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/56b92839e58ab41582e98eaf87452ec4b50712b4
2016-10-28 09:16:27 +00:00
dotnet-bot 4ed327f131 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24627-05, beta-24627-05, beta-24627-00, beta-24627-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b030c0a58466c70ca34b56933903b31e580e6189
2016-10-27 22:28:54 +00:00
Alex Ghiondea 81e93c452c Re-enable tests for issues that have already been resolved.
Commit migrated from https://github.com/dotnet/corefx/commit/51394d7ca62027468d488b25a4ab87f4a12dc5ba
2016-10-26 15:00:58 -07:00
dotnet-bot a196fb6572 Update CoreFx to beta-24626-02
Commit migrated from https://github.com/dotnet/corefx/commit/ffd454cef1f7dd4a2f6969747cf45a4729e6387c
2016-10-26 14:46:03 +00:00
dotnet-bot bdd9e7d523 Update CoreClr, External, ProjectNTfs to beta-24626-02, beta-24626-00, beta-24626-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/6298d44830ce3afc0a0c2f8004ccb2ea94d7a146
2016-10-26 08:24:40 +00:00
dotnet-bot de5dd7cba0 Update CoreClr, CoreFx, ProjectNTfs to beta-24626-01, beta-24625-02, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ff859b462ada317c02c96b93918ec0e2d072459e
2016-10-26 00:20:25 +00:00
Eric St. John d9eaa2e3b1 Remove use of runtimes from project.json
All tests use supports clauses, the only remaining use of runtimes was
left over from when it was needed to avoid guardrails errors.


Commit migrated from https://github.com/dotnet/corefx/commit/3db515a2293d76e6ca6bb334e834be486f94d707
2016-10-25 14:28:55 -07:00
Stephen Toub 5b6557277c Merge pull request dotnet/corefx#13009 from stephentoub/fix_flock_ro
Fix handling of flock in FileStream on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/cb32f4312426b3b7796f6173e42e5f3d22414596
2016-10-25 16:42:06 -04:00
Stephen Toub f2f5f798f3 Fix handling of flock in FileStream on Unix
On Unix, we implement FileShare in FileStream with flock.  On some file systems, flock returns EACCES, which causes us to fail to allow usage of FileStream at all.  This commit changes the code to only handle the one error we actually care about, EWOULDBLOCK, which indicates that the operation would block and hence that sharing failed.  All other errors can be ignored, as this is only advisory / best-effort.


Commit migrated from https://github.com/dotnet/corefx/commit/9d6289e370a21f1add2072a7652973246f59b812
2016-10-25 15:03:42 -04:00
Sedar Gokbulut 72197ccd2e Enabling auto-update of ProjectNTfs and updating ProjectNTfs commit hash to
reflect the latest.


Commit migrated from https://github.com/dotnet/corefx/commit/b761bac5491b6dc0eaefe6b894b714502d4710ad
2016-10-25 09:14:57 -07:00
dotnet-bot b943e5d281 Update CoreClr, CoreFx, External to beta-24625-02, beta-24625-01, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/e1bdcc213a47f4761a6a46e8e0d612d7bc237c9a
2016-10-25 08:19:47 +00:00
Jose Perez Rodriguez 132e478c7b Updating Corefx versions to beta-24624-01
Commit migrated from https://github.com/dotnet/corefx/commit/cd40177af397e309c41f2bbcec007e21761bb688
2016-10-24 12:01:45 -07:00
Jeremy Kuhne 2f3fb8b086 Merge pull request dotnet/corefx#12900 from JeremyKuhne/fscommon3
More FileStream code unification

Commit migrated from https://github.com/dotnet/corefx/commit/b2ac1f8950d79954d5369fd14748c7f14e60e6ec
2016-10-24 11:24:28 -07:00
Stephen Toub e95ddc204b Fix FileStream.InitFromHandle to avoid calling virtual CanSeek on Unix
Doing so breaks IsolatedStorageFileStream


Commit migrated from https://github.com/dotnet/corefx/commit/1a4a219382a709d4dae63df92d68c9c0e1cf1585
2016-10-23 17:46:15 -04:00
Stephen Toub e25b3cdf40 Fix FileStream.VerifyHandleIsSync to avoid calling virtual CanRead/CanWrite methods
Doing so breaks IsolatedStorageFileStream, as they're being called during construction, leading to null ref exceptions.


Commit migrated from https://github.com/dotnet/corefx/commit/dfc9a008edac2ed69965cf17b62d10b16a398ef0
2016-10-23 13:06:56 -04:00
Stephen Toub 344ae45288 Update CoreFx dependencies to beta-24623-01
Commit migrated from https://github.com/dotnet/corefx/commit/617811c779e36848fb1af4c2e8d8b3b1dba42e83
2016-10-23 11:50:14 -04:00
Jeremy Kuhne cbc3816b12 Move Read/WriteByte common code
Moves ReadByteCore() and WriteByteCore() to common.
Move FlushInternalBuffer() and FlushReadBuffer() to common.
Rename VerifyBufferInvariants to AssertBufferInvariants.
Change ReadCore methods to align between impl.


Commit migrated from https://github.com/dotnet/corefx/commit/46a7d8d30ba30fc759d2b57f51f96bce24d5a5af
2016-10-21 14:32:36 -07:00
Jeremy Kuhne 03a954218a Move buffer init to common
Commit migrated from https://github.com/dotnet/corefx/commit/6ab195766a95593c8331e9fb41eb6c183025cccd
2016-10-21 12:55:39 -07:00
Jeremy Kuhne f46ed49673 Move Position property to common code
Commit migrated from https://github.com/dotnet/corefx/commit/11f584e8325934a5412c8f7b13103d24416edb38
2016-10-21 12:36:36 -07:00
Jeremy Kuhne 3e1f7c20ef Move VerifyOSHandlePosition to common file
Commit migrated from https://github.com/dotnet/corefx/commit/64a9156c7733af4d6bead66ec611132e1d930824
2016-10-21 12:23:49 -07:00
Jeremy Kuhne 57803ccf46 Merge pull request dotnet/corefx#12877 from JeremyKuhne/fscommon2
Move FileStream field init into constructors

Commit migrated from https://github.com/dotnet/corefx/commit/771085c1ff054fcce3515783f3e025410ab61c8a
2016-10-21 12:05:40 -07:00
Eric St. John 4a6c9bbb81 Update all projects to last stable packages
And remove imports.

Now that we have netstandard packages that support all targets we should
use them.  This means we don't need imports.

I opted to use the stable packages rather than the LKG ones since this
will reduce churn in the product assemblies.

This has the added benefit of reducing download time for the repo.


Commit migrated from https://github.com/dotnet/corefx/commit/a330f3651c999b241d55ca25d9baa7fb0f247c5c
2016-10-21 06:32:53 -07:00
Santiago Fernandez Madero cb20856738 Fix CS0197 error that was produced on FileStreamCompletionSource.Win32 (dotnet/corefx#12875)
* Added a private method on FileStream class that would call Interlocked.CompareExchange instead of being called from FileStreamCompletionSource because a MarshallByRefObj is being passed as a ref parameter

* Added comments to CompareExchangeCurrentOverlappedOwner method


Commit migrated from https://github.com/dotnet/corefx/commit/d2a205f74f331abf4706798f56dc3fff97a3d66b
2016-10-21 08:05:27 -04:00
Santiago Fernandez Madero f720329782 Fix for Build 20161020-31 (dotnet/corefx#12857)
Commit migrated from https://github.com/dotnet/corefx/commit/fd87838f34c31811c3f2355caedfa2d0fee6fd9e
2016-10-20 22:06:59 -04:00
Jeremy Kuhne 36c1cd6f04 Move FileStream field init into constructors
Makes invariant fields readonly as they were in Unix impl.
Folds some more common validation / member logic.


Commit migrated from https://github.com/dotnet/corefx/commit/e56d0b65f6c44f059eba65f44cc1ebfbb4c0f57b
2016-10-20 18:51:16 -07:00
Jeremy Kuhne cca0c24582 Align field names
This aligns the names of the private fields to faciltate sharing common
code. Moved CanRead/Write to common in this change- other than that is
just renaming the fields.


Commit migrated from https://github.com/dotnet/corefx/commit/15f6dd29ac0d92ee2644e16a613426ac0a2650da
2016-10-20 14:50:21 -07:00
Jeremy Kuhne 0cadf0af0c Rename FileStream files
Commit migrated from https://github.com/dotnet/corefx/commit/8059dbfcfc52ee5f350bf1c645f89a4a8c034639
2016-10-20 14:14:31 -07:00
Jeremy Kuhne 6dc20f92aa Merge pull request dotnet/corefx#12809 from JeremyKuhne/squashfilestream
Break out nested FileStream

Commit migrated from https://github.com/dotnet/corefx/commit/cc1dd4f57a0fd63e3f56a926a2d87702555cd1cc
2016-10-20 14:04:20 -07:00
Stephen Toub 5d5d55e507 Merge pull request dotnet/corefx#12826 from stephentoub/update_dependencies
Update CoreFx to beta-24619-02 (master)

Commit migrated from https://github.com/dotnet/corefx/commit/9bad9e2c4710baedecad20d8821ff1a817ceb5c7
2016-10-20 07:09:39 -04:00
Santiago Fernandez Madero a4bc3cea20 Adding MarshalByRefObject base class to types. (dotnet/corefx#12773)
* Adding MarshalByRefObject base class to types.

Commit migrated from https://github.com/dotnet/corefx/commit/93826ebec41822c49b833f56b4707f1c80b55659
2016-10-19 23:52:35 -07:00
Stephen Toub fc416399f6 Update CoreFx to beta-24619-02 (master)
Commit migrated from https://github.com/dotnet/corefx/commit/85567505126195558e104adec718be1d6325e43f
2016-10-20 00:13:39 -04:00
Jeremy Kuhne e3e343ff41 Remove FileStreamBase
Commit migrated from https://github.com/dotnet/corefx/commit/9084b8435ab6ee8add2e0dd7eb6abcfc9ae19e57
2016-10-19 14:25:24 -07:00
Jeremy Kuhne a7d5c14c71 Break out nested FileStream
This breaks out the nested FileStream in preparation for
moving the code down to corlib.

Will follow up with:

1. Rename of files (from Unix/Win32FS to FS.os.cs)
2. Moving of common code to FileStream.cs
3. Copy to corlib
4. Move ref to System.Runtime and type forward to corlib
5. Further prep work for bringing up UAP 10.1


Commit migrated from https://github.com/dotnet/corefx/commit/e3fc18c58396737ee5e6bc80acf508031d63cc8e
2016-10-19 13:25:07 -07:00
Karthik Rajasekaran 9255a2e649 Combine test dependencies into a common project.json.
Restore this common project.json upfront to improve sync time and avoid download contention from nuget.


Commit migrated from https://github.com/dotnet/corefx/commit/654f5548f946659c694d110a4bbce8aa33f1a7a1
2016-10-18 11:39:53 -07:00
Stephen Toub bf51176a20 Update additional dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/b0c0f372746dec30221b7d32883930d899f4d13f
2016-10-18 08:43:58 -04:00
dotnet-bot 94f229c6a7 Update CoreClr, CoreFx to beta-24617-03, beta-24617-03, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/4c6df2edbad3b5d8ec3914c0366f80ebb73f7c12
2016-10-18 08:43:24 -04:00
Stephen Toub 8bc0c7486e Add System.IO.FileSystem serialization
Commit migrated from https://github.com/dotnet/corefx/commit/a8c26b8f37139e7b2fc25acd8859b1782319dcd6
2016-10-17 23:26:49 -04:00
dotnet-bot 7b31a1e04a Update CoreClr, CoreFx, External to beta-24615-02, beta-24615-03, beta-24614-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/025cec5bf1e82980a77e473f2e5d599ffd60af49
2016-10-15 08:33:01 +00:00
Sedar Gokbulut bf05a3521c updating ProjectN-Tfs dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/54f84b9e39b50a26749f951a68ae55856db9e480
2016-10-13 14:13:06 -07:00
Stephen Toub 52e3c3d7ae Change all refs to use "throw null;" as member bodies
Following our new guidelines for ref assembly implementations and what GenApi now creates, this updates all of our ref .cs files to use "throw null;" for member bodies that can't just be empty (i.e. members that need to return a value either via the return type or via an out parameter).  I made the change programatically using a simple Roslyn-based tool.


Commit migrated from https://github.com/dotnet/corefx/commit/a9fdc79ff8feb5ad46e9fcbe18fdffcd0bd74679
2016-10-13 09:43:23 -04:00
dotnet-bot 511149ab83 Update CoreClr, CoreFx, External to beta-24613-02, beta-24613-01, beta-24613-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/8f355c66ac9adbf9f36cfdd019ba1d2cefb54001
2016-10-13 08:37:30 +00:00
Koundinya Veluri 0dd80e4488 Expose some missing threading types/members (Timer, exceptions, etc.) (dotnet/corefx#12392)
- Expose: Timer members, some exception types and members, ThreadExceptionEventArgs/Handler, Monitor.Wait with exitContext parameter
- Move CriticalHandle and remaining types from System.Runtime.Handles to System.Runtime, expose CriticalHandle[ZeroOr]MinusOneIsInvalid
- Revert base class of safe handle types that used to derive from SafeHandle[ZeroOr]MinusOneIsInvalid, and upgrade those projects to ns1.7

Commit migrated from https://github.com/dotnet/corefx/commit/de8eee4b26f5154698fddcd150a4c7487a69da64
2016-10-12 18:31:26 -07:00
Stephen Toub 0a3f401731 Merge pull request dotnet/corefx#12588 from dotnet-bot/master-UpdateDependencies
Update CoreClr, CoreFx to beta-24612-03, beta-24612-03, respectively (master)

Commit migrated from https://github.com/dotnet/corefx/commit/0b765ce570150f623f1fb97de6df668b9f69639b
2016-10-12 16:52:49 -04:00
Stephen Toub 474c4b5973 Merge pull request dotnet/corefx#12578 from jamesqo/streamhelpers-copyto
Rename ValidateCopyToAsyncArgs -> ValidateCopyToArgs

Commit migrated from https://github.com/dotnet/corefx/commit/97ff6132fce1682c05a049e3ddb944fc04502438
2016-10-12 12:31:49 -04:00
dotnet-bot 4a517b60c6 Update CoreClr, CoreFx to beta-24612-03, beta-24612-03, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/f01cf91423391f80ad5269340eb8e602ea9cb087
2016-10-12 16:28:54 +00:00
James Ko 45da6cf9be Add ArrayBuilder<T> struct, delete LowLevelList (dotnet/corefx#12287)
* Add new ValueList<T> type, delete LowLevelList

* Rename Extract* -> As

* Rename to ArrayBuilder

* Clarify assert

* Fix comments

* Some refinement

* Tiny refinement for ZeroExtend

* Bugfix for ToArray

* Add XML docs to ArrayBuilder

* Perf bug: Check _count == 0, not _array == null, in ToArray

* Add comprehensive tests for ArrayBuilder

* Refactor System.Linq.Expressions to use the new ArrayBuilder

* Respond to PR feedbck no. 1

* Include the file in some assemblies that are using it indirectly thru EnumerableHelpers

* Remove AddRange and ZeroExtend for now

* Remove GetEnumerator

* Remove *InDebug methods

* Change resizing pattern back to that of List's

* Some nits in the tests

* Remove _count == 0 optimization from EnsureCapacity

* Handle arrays that go past 1B elements

* Fix compile and test errors

* Better seed generation

* Remove comment on Array.Resize


Commit migrated from https://github.com/dotnet/corefx/commit/9eaf364b8ca8180bace20aab188b1efe6a55835f
2016-10-12 11:54:37 -04:00
James Ko dc3b64cf83 Rename ValidateCopyToAsyncArgs -> ValidateCopyToArgs
Commit migrated from https://github.com/dotnet/corefx/commit/ac66976c1388353254828ddb4df4e67f2f80c190
2016-10-12 00:52:52 -04:00
Stephen Toub f54cfb8704 Update CoreClr, CoreFx to beta-24611-01, beta-24611-02 respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/b7cc4e219207cff50cdbb11176d3cee25be724f0
2016-10-11 15:32:17 -04:00
Stephen Toub 08f5cc3e37 Fix System.IO build with ArrayPool dependency
The previous commit added usage of StreamHelpers.cs.  The dependency is only on some validation routines, but the same file also includes usage of ArrayPool, and thus the build breaks without a dependency on System.Buffers.  Since we don't currently have another need for System.Buffers in System.IO (this could change in the future), for now I'm splitting the StreamHelpers.cs file into two files, one that needs ArrayPool, and one that doesn't, so that System.IO can include only the latter.


Commit migrated from https://github.com/dotnet/corefx/commit/eb211927ca0fe0196f992caeedb5260bcb1e15d6
2016-10-10 11:28:39 -04:00
Stephen Toub 320ec958ba Update CoreClr, CoreFx to beta-24608-02, beta-24608-01, respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/0fe592ec0a6be3cb49ecf37a798ca482b0d261dc
2016-10-08 08:25:01 -04:00