Commit Graph
728 Commits
Author SHA1 Message Date
Stephen Toub ecb2adf496 Merge pull request dotnet/corefx#11375 from stephentoub/fix_async_test
Fix FileStreamBase Begin/End race condition

Commit migrated from https://github.com/dotnet/corefx/commit/1ee4b359ea2fc13e451e08a8aa6d5ac561c1e989
2016-09-06 20:02:15 -04:00
Jose Perez Rodriguez 72a0d666a2 Adding Reflection changes back after merge from master (dotnet/corefx#11386)
Adding Reflection changes back after merge from master


Commit migrated from https://github.com/dotnet/corefx/commit/65e117580923503b1e970c95798f19baff568b5e
2016-09-03 14:00:39 -07:00
dotnet-bot cec9baaf99 Update CoreClr, CoreFx to beta-24503-02, beta-devapi-24503-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/062c5a22cef03332558c4726078615061a88d7b6
2016-09-03 09:30:27 +00:00
dotnet-bot a37985e165 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24502-03, beta-devapi-24502-02, beta-24502-00, beta-24502-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/3c724e11c6d1c94ed8d22b510e23333471a9a50c
2016-09-02 19:42:48 +00:00
Stephen Toub 03d9aaf411 Fix FileStreamBase Begin/End race condition
The new FileStreamBase.Begin/End overloads do argument and state validation similar to that of desktop.  There is a subtle but critical difference, however: in this validation, desktop checks to see whether the stream is closed via ```_handle.IsClosed```, whereas FileStreamBase does it via ```SafeFileHandle.IsClosed```.  ```SafeFileHandle``` is an abstract property that returns the handle... but it also flushes.  The base Stream's Begin/End implementation has synchronization to ensure that only one async operation is in flight at a time, but this call to ```SafeFileHandle.IsClosed``` comes before that synchronization kicks in (it's in the base), and as such we end up potentially having a Flush invocations concurrently with Write invocations (Write is called asynchronously from the base BeginWrite), which is very unsafe.

This commit fixes it by adding an IsClosed property that goes directly to the underlying handle, bypassing the publicly exposed SafeFileHandle (that flushes so that direct access to the file via the handle is consistent with operations already performed on the FileStream).

(I also fixed a small issue in the ManyConcurrentWriteAsyncs that highlighted the issue.  Order of async read/write operations is only guaranteed on FileStream when in async mode; in non-async mode, it's theoretically possible (though unlikely) for operations to complete out-of-order, but the test is validating that the operations completed in order.  While I've never seen this fail, I'm proactively fixing it.)


Commit migrated from https://github.com/dotnet/corefx/commit/5afb9f69400cbb61971a7eeb4fcfc49fbbc1080b
2016-09-02 11:48:36 -04:00
Jose Perez Rodriguez 1e6d178df5 Changes required to have dev/api building again after merge
Commit migrated from https://github.com/dotnet/corefx/commit/bf7911a1ba3cfdf389527276d7991312dbd2b8c9
2016-09-01 16:47:55 -07:00
Jose Perez Rodriguez 6cb037809c Revert "Expose all Reflection APIs in System.Runtime"
Commit migrated from https://github.com/dotnet/corefx/commit/1b9fa4bc4e4ed2da511374543c6460ba6b4f8c6b
2016-09-01 14:19:37 -07:00
Sepideh Khoshnood 2c5119c7e2 Expose all Reflection APIs in System.Runtime (dotnet/corefx#11099)
Expose all System.Reflection APIs

Commit migrated from https://github.com/dotnet/corefx/commit/b647c01bba129ad9194b6dee2de888c00c59f962
2016-09-01 11:31:12 -07:00
Jose Perez Rodriguez 6328e7431b Merge remote-tracking branch 'upstream/master' into dev/api
Commit migrated from https://github.com/dotnet/corefx/commit/ea0cc674b8116a10c18c2879390c39ec08df8020
2016-09-01 11:30:16 -07:00
dotnet-bot dba1111349 Update CoreFx to beta-24501-02
Commit migrated from https://github.com/dotnet/corefx/commit/3a8894d373c2ef2814265363d70ff0c09bbf36be
2016-09-01 14:38:48 +00:00
dotnet-bot 75194b0891 Update CoreClr, CoreFx, External to beta-24431-03, beta-24501-01, beta-24501-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b2704a1b772c5478cecbb7e9e6d2c02866e0b943
2016-09-01 05:24:53 +00:00
dotnet-bot deb0efc960 Update External, ProjectNTfs to beta-24501-00, beta-24501-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/876715e44d8b37fcc4f0215977ccf2c83bc91b9f
2016-09-01 05:17:19 +00:00
Jose Perez Rodriguez 8a6892f2fb Enable netcoreapp1.1 tests to run as part of the CI build (dotnet/corefx#11236)
Enable netcoreapp1.1 tests to run as part of the CI build

Commit migrated from https://github.com/dotnet/corefx/commit/4644f59c447b56106594883a3f9a022bfbe870a4
2016-08-31 19:28:16 -07:00
Lakshmi Priya Sekar bf56168dfc Update xunit.netcore.extensions version.
Commit migrated from https://github.com/dotnet/corefx/commit/193dbf7f96120b2bb2ce95cf48576abae5db33bd
2016-08-31 12:55:52 -07:00
Davis Goodin 8902a6c513 Update ProjectNTfs to beta-24430-00
Commit migrated from https://github.com/dotnet/corefx/commit/19252996e2f45356f6614a2a513b9d2fa7191e7f
2016-08-31 10:27:53 -05:00
dotnet-bot 6606d42d64 Update CoreClr, CoreFx, External to beta-24431-02, beta-24431-01, beta-24431-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d0fb971379e06a252337b387816337a8fa982903
2016-08-31 09:11:00 +00:00
Eric St. John e6e5ed7c59 Remove PackageTargetFramework usage
Commit migrated from https://github.com/dotnet/corefx/commit/c3042ed04fa3a246c544a7ead7d564b1d43e9862
2016-08-30 15:30:50 -07:00
dotnet-bot ddc164fae1 Update CoreClr, CoreFx, External to beta-24430-01, beta-24430-01, beta-24430-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/da73762cccc73f9eeb8aa7e906b4255fc63433d4
2016-08-30 06:23:40 +00:00
Jeremy Kuhne afb9b1a7a4 Update package versions.
Commit migrated from https://github.com/dotnet/corefx/commit/5a91f48d10ced6f6d7ac7bed656296898bb00453
2016-08-25 15:29:17 -07:00
Jeremy Kuhne 644299cdb6 Add Begin/End to FileStream.
Commit migrated from https://github.com/dotnet/corefx/commit/c31504af97642e9700b01258d72073fd91700298
2016-08-25 14:45:35 -07:00
dotnet-bot 05cdb1c739 Update CoreClr, CoreFx, External to beta-24425-04, beta-devapi-24424-01, beta-24424-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/c4a64f09e5f959e5e4df8e43117593cc638b1e23
2016-08-25 18:29:39 +00:00
Eric St. John 068e51cb68 Clean up redundant AssemblyVersion properties
These are now redundant to the property defined in src\<lib>\dir.props.


Commit migrated from https://github.com/dotnet/corefx/commit/765ea591f0dd0079e8f71125ca22c8f31d119528
2016-08-24 06:48:04 -07:00
Eric St. John 26c607ddfc Central nupkg versioning & library assm versioning
This moves to a central versioning scheme for all packages that is tied
to the product release.  1.1 will include packages all with a common
version.


Commit migrated from https://github.com/dotnet/corefx/commit/589f5a13b6844a44b369cc468d05885ab9546d82
2016-08-24 06:47:56 -07:00
dotnet-bot f7dc0cd84c Update CoreFx to beta-24422-01
Commit migrated from https://github.com/dotnet/corefx/commit/fb21d552768d14eee3952dbc9f6be566edc0f333
2016-08-22 14:27:27 +00:00
Stephen Toub 46bee4ed23 Update dev/api corefx packages to 24422-01
Commit migrated from https://github.com/dotnet/corefx/commit/9a56ea0f3fc583cb50e174c269ff806702f59d2f
2016-08-22 09:48:02 -04:00
Stephen Toub e6c04e117f Update dev/api corefx dependencies to 24421-01
Commit migrated from https://github.com/dotnet/corefx/commit/069806fcaf2ba7a74795584f7769a0a818892b06
2016-08-21 07:38:01 -04:00
Stephen Toub e092967612 Update dev/api corefx dependencies to 24420-01
Commit migrated from https://github.com/dotnet/corefx/commit/8dc0eb899de2ed4a69682b1ca1ba62ba7595e746
2016-08-20 07:28:26 -04:00
dotnet-bot 1acadfe091 Update CoreFx to beta-24420-01
Commit migrated from https://github.com/dotnet/corefx/commit/6caa29c79b5353c3b95e8b7721adf6ff338b1ede
2016-08-20 04:10:43 +00:00
dotnet-bot f01e3b6024 Update CoreFx to beta-24419-03
Commit migrated from https://github.com/dotnet/corefx/commit/d854ecd7757124ccbdfe0aeb13688119830d2ef0
2016-08-19 23:22:42 +00:00
Stephen Toub bf361cd27f Update dev/api dependencies, coreclr to 24419-04, corefx to 24419-01
Commit migrated from https://github.com/dotnet/corefx/commit/edbf01bd6d52f1ae40dd26aacf09a5831a2ada9a
2016-08-19 17:00:06 -04:00
dotnet-bot 346ab2b247 Update CoreFx to beta-24419-02
Commit migrated from https://github.com/dotnet/corefx/commit/8430a202bedd30a1453169c2d527c5a4a8cf239a
2016-08-19 14:21:26 +00:00
dotnet-bot 67fcb83db4 Update CoreClr, CoreFx to beta-24419-02, beta-24419-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/0feb5c05a7eda514eb9e397976dfd23670451216
2016-08-19 08:35:19 +00:00
dotnet-bot e51e07b82a Update CoreFx to beta-24418-03
Commit migrated from https://github.com/dotnet/corefx/commit/5acf643e5ec36a0650ba523bc97f246702cb9ec3
2016-08-18 23:59:51 +00:00
dotnet-bot b2170df75d Update CoreClr, CoreFx to beta-24418-03, beta-24418-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/7c1dfb8e7d952c246efda2bf956d3391c6da8544
2016-08-18 16:35:06 +00:00
Stephen Toub 06046efb31 Update devapi package versions
Commit migrated from https://github.com/dotnet/corefx/commit/4a30f6b2d34826fe1e0d1973d1104a2804f36ddd
2016-08-18 08:18:20 -04:00
dotnet-bot d699af90da Update CoreClr, CoreFx, External to beta-24418-02, beta-24418-01, beta-24418-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/c95c1904c4efbae900744fafc98592530fab2726
2016-08-18 08:33:21 +00:00
Jose Perez Rodriguez 729079fd49 Updating CoreFx dependencies to beta-devapi-24416-01
Commit migrated from https://github.com/dotnet/corefx/commit/e8521f9b3a9fc1a8239a432f781edb274a44bdf5
2016-08-17 16:37:46 -07:00
Jose Perez Rodriguez 240a2669cd Required changes post-merge to get a succesfull build in dev/api
Commit migrated from https://github.com/dotnet/corefx/commit/f03238e592e63ca00a01f6fb36d2ba6d126857fe
2016-08-17 10:30:47 -07:00
Deepak Shankargouda 6b7cfa7c55 Revving xunit perf packages to fix perf test runs (dotnet/corefx#10869)
Commit migrated from https://github.com/dotnet/corefx/commit/a118b9a76e7e4d0a2d1b650091bda5c076e56838
2016-08-16 17:37:54 -07:00
Jose Perez Rodriguez fca828ff09 Merging master
Commit migrated from https://github.com/dotnet/corefx/commit/232775cf23351ccad8d538b9421d8b9640655cad
2016-08-16 12:02:31 -07:00
dotnet-bot 39ae5fc430 Update CoreClr, CoreFx to beta-24416-04, beta-24416-03, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/727593b9fae753fd12a0f53ecedcc9b7db2d9a78
2016-08-16 16:39:56 +00:00
dotnet-bot ae71404cf2 Update CoreClr, CoreFx to beta-24416-03, beta-24416-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/9da7e25b03c3fa6cc8135a445fb1470292695780
2016-08-16 08:35:17 +00:00
dotnet-bot 5b24eda3e2 Update CoreClr, CoreFx to beta-24415-03, beta-24415-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/2ffeaf70ba986937f7db938dda0ac349a9c8742a
2016-08-15 16:37:43 +00:00
Stephen Toub 28294ac5e0 Merge pull request dotnet/corefx#10771 from dotnet-bot/UpdateDependencies20160815052151
Updating External dependencies to beta-24415-00

Commit migrated from https://github.com/dotnet/corefx/commit/6b2664a6a53051c4f8c0e7fa48cb19f24298ce9b
2016-08-15 11:29:35 -04:00
dotnet-bot 4a38e877ed Update CoreClr, External to beta-24415-02, beta-24415-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/cf4f9c87ad78a59e7af474d278ad8abe2ced03a9
2016-08-15 08:35:24 +00:00
dotnet-bot 28881cc748 Updating External dependencies to beta-24415-00
Commit migrated from https://github.com/dotnet/corefx/commit/1ade673973dee4ce388745c632da1965361a93d2
2016-08-15 05:21:51 +00:00
dotnet-bot adb6092908 Updating CoreFx dependencies to beta-devapi-24415-01
Commit migrated from https://github.com/dotnet/corefx/commit/250c23e343960f138b99fa15b00cba308dc76b57
2016-08-15 03:41:50 +00:00
Wes Haggard 5065d4915f Merge pull request dotnet/corefx#10761 from dotnet-bot/UpdateDependencies20160814051751
Updating External dependencies to beta-24414-00

Commit migrated from https://github.com/dotnet/corefx/commit/fdf317194d3804a7ae2770a6808b3211bb786c14
2016-08-13 23:11:13 -07:00
dotnet-bot 25a080648a Update CoreClr, External to beta-24414-01, beta-24414-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ab11a0d1cdea20722e61189a8543f4335b2feaaa
2016-08-14 05:20:25 +00:00
dotnet-bot 7ee2ebbe71 Updating External dependencies to beta-24414-00
Commit migrated from https://github.com/dotnet/corefx/commit/1cd6eca450531bf37e74a7246c6ad45270c96d7f
2016-08-14 05:17:51 +00:00