Commit Graph
929 Commits
Author SHA1 Message Date
chcosta bc03ea6283 Remove builds files (dotnet/corefx#14449)
Commit migrated from https://github.com/dotnet/corefx/commit/bc4d19a5e65708208d1aae6ddb2e02f12b85a919
2016-12-12 13:25:22 -08:00
chcosta 978dd4aeed vertical build port to Dev/eng [Do not merge] (dotnet/corefx#14171)
* Vertical build changes

* Build a vertical in dev/eng

* remove repro.bat from check-in

* Remove defaulttargetgroup from configurations.props files

* Remove configurations.props from test libraries

* Additional configuration files, updating traversal.

* Add default configurations for ref projects

* Remove default targetgroups, disable code analysis (currently breaking the
vertical build).

* Build vertical using Eric's changes to configurations

* Minor fixes to build from a clean enlitment

* Set targets properties in dir.props

* Make vertical build the default

* Include building src\tools in init-tools.cmd

* Add linux init-tools

* Fix msbuild.sh command

* Add build tools message to Linux

* Revert init-tools, investigate building corefx tools tomorrow

* Update configurations, remove empty targetgroup from all projects, modify
most conditionals to be positive conditions instead of negative

* Remove unneccessary generateprojectconfigurations project

* Build CoreFx.tools in init-tools

* Can't build corefx.tools in init-tools because packages aren't restored

* Hack build to build refs first

* Slightly less hacky reference project build, but still kind of hacky...

* Align properties for ref builds to prevent binclash and overbuilding

* Update BeforeTarget for rename

* Rework traversal to work with ref and corefx tools projects

* Add target for builds projects

* Fully qualify paths to projects

* Fully quality path name for corefx.tools

* testing removing osgroup from groovy on Windows

* Remove OSGroup from config.json

* revert change to groovy

* return os property

* Try changing osgroup to hostos

* hack around osgroup setting

* Fix passing groups

* Add system.collections which was missing from system.console

* Add some missing references for Unix build

* Add references for unix

* Unix support changes

* Fix typo in system.net.http

* Fix typo in system.threading.overlapped

* no ref project available for system.reflection.metadata

* Unix changes

* Exclude system.memory

* diagnostics.fileversioninfo was missing reference to Path

* Unix changes

* Fix reference name

* Add reference for unix

* Move source file to windows only

* Disable building system.threading.overlapped


Commit migrated from https://github.com/dotnet/corefx/commit/a07f6aac5309b30154d0fe00debe7f9979600ea1
2016-12-10 11:29:31 -08:00
Eric StJohn 441a20e248 Merge pull request dotnet/corefx#14292 from ericstj/NETCoreApp.package
Net core app.package

Commit migrated from https://github.com/dotnet/corefx/commit/851f6e9aad1e5658e5406f9c5f79f95a03701d68
2016-12-08 11:13:52 -08:00
Eric St. John e65e1b8a60 Binplace NETCoreApp package contents
Set up a separate destination for package contents for NETCoreApp since
it won't necessarily be everything that we build.

Libraries were determined as follows:
1. If its currently in NETStandard.Library its in.
2. If it was a ref in NETCoreApp before its in.
3. If its part of the reference closure for 1 or 2 its in.
4. If it was a lib only in NETCoreApp its in, but only lib.
5. If its part of the lib closure for 1-4 its in, but only lib.


Commit migrated from https://github.com/dotnet/corefx/commit/5cef65d8a3363592d06caf2bc4e36e5dc2a3a5b4
2016-12-08 09:58:44 -08:00
Jose Perez Rodriguez 11e7a62b8b Delete project.jsons
Commit migrated from https://github.com/dotnet/corefx/commit/09e45e8d1cc901184accb168fe082a260a0de6e6
2016-12-06 13:16:43 -08:00
Eric Mellino 966c8e0251 [dev/eng] Overhaul ref and src project references, and start binplacing things (dotnet/corefx#14062)
* Used GenerateBuilds.ps1 script to generate the P2P references from the project.json files in ref

* Update refs to build with ProjectReference's instead of package references

This deletes all the ref\project.json files and instead adds ProjectReference
to other refs that are used to build.

There is only one exception which was System.Net.Http which needed a project.json
to get the net46 targeting pack otherwise everything else is P2P.

* Update Reflection.Emit contracts to support latest version of contracts

* Add depproj to get windows.winmd support when building refs

* Special handle System.Net.Http ref project to deal with net46 targeting pack

* Moved CLSCompliant to SecureString ctor instead of type

* Add P2P reference from S.IO -> S.R.Extensions

* Add additional ProjectReferences to more ref projects after master rebase

* Start binplacing ref assemblies and disable rest of build

* Simplify all ref projects to only build for netcoreapp (default target group)

* Only binplace netcoreapp refs

* Allow Reference's to be resolved from targeting pack directories

* Use GenerateBuilds.ps1 to convert src project.json refs to References

* Allow overriding stuff in Tools

* System.Runtime src project building against targeting pack

* Re-purpose GenerateBuilds.ps1 to re-write src references

* Only build csproj files in src.builds

* More custom stuff in GenerateBuilds.ps1

* Binplace all netstandard assemblies into netcoreapp as well.

* Add project.json to System.Collections.Immutable

* More custom generatebuilds.ps1 stuff

* Normalize csproj files before running GenerateBuilds.ps1

* Better match the replaced  'None Include="project.json"' line.

* Another missing project.json inclusion in csproj

* Remove ExcludeFromCodeCoverageAttribute from Immutable project

* Include another project.json

* Add some P2P references

* Add another project.json include

* Disable Http.Rtc project.

* Disable two more UWP projects and another P2P ref"

* More Cleanup

* Run GenerateBuilds.ps1 to re-write all nuget refs as <Reference>'s

* Binplace netstandard runtime assemblies to netcoreapp as well.

* Re-hook all src projects into build.proj

* Fix bin clashing caused by bad ProjectReference metadata

* Use 'copy' instead of 'cp' in init-tools.cmd. Add copying to init-tools.sh as well.

* Correct casing of windows.winmd in depproj

* Disable System.Memory.csproj outside of Windows

* Fix unix exclusion of System.Memory, and include vbproj files

* Fix VisualBasic compilation

* There was an extra definition of MemberTypes that was internal to the
  assembly. It's now defined in System.Private.CoreLib, so I deleted the
  extra here.
* There was an invalid call in Operators.vb that I fixed.

* Add additional project references and configuration fixes after rebase

* Fix build warnings in ref projects

* Fix build warnings in src projects


Commit migrated from https://github.com/dotnet/corefx/commit/a9f6d7d749f9946cc6b10c50b54bcae0e43e859e
2016-11-29 18:01:35 -08:00
Eric St. John 34d56a4c14 Update stable dependencies to latest stable
This reduces total download of packages.


Commit migrated from https://github.com/dotnet/corefx/commit/d6fa06e13d29ce9931c395c729d5e61441c02ee8
2016-11-22 11:03:12 -08:00
dotnet-bot f7a208ba73 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24721-04, beta-24721-02, beta-24721-00, beta-24721-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/bd9f87de00538052b6cf4c4faa261c0d22e04f90
2016-11-21 23:52:28 +00:00
Stephen Toub 42aff03523 Disable SSLv3 default test on older libcurls
libcurl prior to v7.39 allows SSLv3 by default.  Since we've switched our defaults to accepting whatever the platform defaults are, this commit disables our SSLv3-disabled-by-default test on libcurl versions earlier than 7.39.


Commit migrated from https://github.com/dotnet/corefx/commit/460503134b4995c997b46f2439f6704eb1951f1c
2016-11-18 08:06:14 -05:00
dotnet-bot 17b9d2afa6 Update CoreFx, ProjectNTfs to beta-24717-03, beta-24718-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/dbccc58ac0186bbcf9fe0445b255b33ea583ff56
2016-11-18 04:16:59 +00:00
Stephen Toub 534906e2ef Reduce allocations in HttpClient.GetString/ByteArrayAsync
Today, HttpClient.GetStringAsync and GetByteArrayAsync copy all of the response data to a MemoryStream.  For strings, that buffer is never exposed, so it ends up being temporary garbage.  For byte arrays, the data is extracted from the MemoryStream with ToArray, which means double the allocations.

This commit does three things:
    - It introduces a helper Stream based on ArrayPool, where all buffers come from the shared pool.
    - GetStringAsync uses that stream as the target, such that the byte[]s used are recycled with the pool, avoiding per-request allocations.
    - GetByteArrayAsync uses that stream as the target if a content length couldn't be determined, so that the byte[]s incurred as the stream grows are recycled.  And if a content length can be determined, it uses a MemoryStream and then returns that MemoryStream's buffer directly to the caller, avoiding the extra buffer allocation and copy.


Commit migrated from https://github.com/dotnet/corefx/commit/6d7fca5aecc135b97aeb3f78938a6afee55b1b5d
2016-11-17 18:09:38 -05:00
dotnet-bot 709886b4f3 Update CoreClr, CoreFx, ProjectNTfs to beta-24717-03, beta-24717-02, beta-24717-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/67690bd0f2bff10db494e829755fffa667184600
2016-11-17 14:43:31 -05:00
dotnet-bot f016cc9f63 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24716-02, beta-24715-03, beta-24716-00, beta-24716-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/75c2a6a9154044fe61e913db297e34a47f588994
2016-11-16 09:23:13 +00:00
Stephen Toub 482458afd0 Update CoreFx, External, ProjectNTfs to beta-24715-02, beta-24715-00, beta-24715-00, respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/9e8050a2bdca9aeff16bd8e704f380e86813821d
2016-11-15 11:43:51 -05:00
Stephen Toub 7aeebdb5b6 Merge pull request dotnet/corefx#13631 from stephentoub/http_allocs
Reduce allocations in HttpClient

Commit migrated from https://github.com/dotnet/corefx/commit/cc734eb7816f0dad03b7073eae357c86d1904d96
2016-11-15 06:43:26 -05:00
Stephen Toub c29c12aecb Fix System.Net.Http.WinHttpHandler build
All of the previous commits were focused on System.Net.Http.  This fixes up the System.Net.Http.WinHttpHandler build to work with the changes.


Commit migrated from https://github.com/dotnet/corefx/commit/035f06ab40dab532080bc5026f7fd92b2c463687
2016-11-14 17:00:02 -05:00
Stephen Toub cdb0e289a5 Reduce allocations in GetString/ByteArray/StreamAsync
GetStreamAsync:
The GetContentAsync<T> helper was only being used for GetStreamAsync, but was taking a delegate as an argument to compute the stream result.  That delegate takes up space in the state machine.  We can instead just eliminate the delegate and make the GetContentAsync<T> method specific to streams, avoiding the delegate entirely.  This reduces the state machine size on 64-bit from 96 to 88 bytes.

GetStringAsync / GetByteArrayAsync:
Both of these were implemented with an async method that took a delegate with which to determine the results.  They also only involved a single await, in which case ContinueWith is cheaper in allocations, and they're simple enough to just use ContinueWith.  So do so.


Commit migrated from https://github.com/dotnet/corefx/commit/b68308b2637e7edad561954b73cc8251850c3910
2016-11-14 16:59:26 -05:00
Stephen Toub 00522f27c8 Reduce size of FinishSendAsync state machine
Currently the same async method handles both the buffered and unbuffered cases, which means even for the unbuffered case, the state machine needs to hold the relevant fields for the buffered case.  This commit makes it more pay for play by splitting it into two methods.  This reduces the size of the unbuffered state machine by 20% (on 64-bit from 120 bytes to 96 bytes).


Commit migrated from https://github.com/dotnet/corefx/commit/d85d630677621f623ed8d1cd9feb207f56bd0e91
2016-11-14 16:59:26 -05:00
Stephen Toub 13f1b6e89c Avoid collection allocations for TransferEncodingChunked and ConnectionClose
Checking these properties to see whether a special value is set forces the underlying collection to be initialized.  We can avoid that, instantiating them only when they're actually needed.


Commit migrated from https://github.com/dotnet/corefx/commit/6b6ac7523ded82cd879659dc2cdb85ca10b16dca
2016-11-14 16:59:26 -05:00
Stephen Toub dacbc6e6fa Remove delegate allocation from HttpContent.Headers
There's no need to allocate a delegate that stores a reference to this... we can just pass in this.


Commit migrated from https://github.com/dotnet/corefx/commit/211c8a119f8bd5abed3a4941ac93e0193ee6bfb2
2016-11-14 16:59:26 -05:00
Stephen Toub 69c44884a9 Remove ReadOnlyStream allocation and shrink response content
Use a custom stream content that doesn't force us to allocate a ReadOnlyStream wrapper, that gives us the CancellationToken-based ctor we need, and that's smaller, without unnecessary fields.


Commit migrated from https://github.com/dotnet/corefx/commit/786e23394e997bd82f0ff9e657f5ea9ac002901c
2016-11-14 16:59:26 -05:00
Stephen Toub c9dbea388d Avoid allocating StringBuilder in HttpHeaders when empty
We can just return an empty string.


Commit migrated from https://github.com/dotnet/corefx/commit/98665281e78eb7880755287d528a3ee4e11a4cc5
2016-11-14 16:59:26 -05:00
Stephen Toub 308bd45f62 Avoid allocation(s) in ReadAsStreamAsync
We were using an async method to store and return the results from CreateContentReadStreamAsync, putting the resulting Stream into a field typed as Stream.  This required having an async method to unwrap the result of of CreateContentReadStreamAsync, which in the best case (when CreateContentReadStreamAsync completes synchronously) would result in just a Task<Stream> allocation, and in the worst case (when CreatecontentReadStreamAsync completes asynchronously) would result in allocations for that async method's machinery.  We can instead just store the Task<Stream> in the field instead of the Stream, and avoid those allocations entirely.  (This also avoids an extra Task allocation each time the same stream is retrieved, though that's not particularly common.)


Commit migrated from https://github.com/dotnet/corefx/commit/7301572be85ddca88f6af2186736b33129cc4ced
2016-11-14 16:59:26 -05:00
Stephen Toub ed1fd29e3a Use ArrayPool to avoid a per-response char[] allocation
We currently allocate a new char[] to hold all of the response headers.  Use ArrayPool instead.


Commit migrated from https://github.com/dotnet/corefx/commit/e3dfaf26f6f75a71916d78b374496704fffdf5a2
2016-11-14 16:59:26 -05:00
Stephen Toub 44c9914f41 Use Stream.CopyToAsync in StreamToStreamCopy
Now that the base Stream.CopyToAsync has been optimized with ArrayPool and that LimitMemoryStream has its own optimized CopyToAsync override, we're better off using those and deleting most of the custom code in StreamToStreamCopy.


Commit migrated from https://github.com/dotnet/corefx/commit/7f3a155ec11a265d5e4cff4a1da46aba0323fd61
2016-11-14 16:58:25 -05:00
Stephen Toub 74ac16201f Override CopyToAsync on LimitMemoryStream
The base MemoryStream's CopyToAsync implementation only provides its optimizations when the concrete type of the stream is MemoryStream and not for derived streams.  This commit adds a similar optimization to to LimitMemoryStream, such that it'll write its whole buffer to the destination in a single write.


Commit migrated from https://github.com/dotnet/corefx/commit/23b4fa71707970c7828af237fcee7ac0407f88be
2016-11-14 16:58:25 -05:00
Stephen Toub 4e4ec69612 Avoid allocating the CancellationTokenSource when not needed
A new CancellationTokenSource is currently always allocated, which then also means that the data structures inside the CTS that are lazily-initialized on first use will end up getting allocated as well for each operation.  But if the supplied user's token isn't cancelable and there's no timeout, we can avoid these allocations.


Commit migrated from https://github.com/dotnet/corefx/commit/b967c767dfec8ab866dfb503b1b79b7892ec6a73
2016-11-14 16:58:25 -05:00
Stephen Toub 70e9d85cda Remove an empty enumerator allocation with HttpHeaders
Commit migrated from https://github.com/dotnet/corefx/commit/82c7d061e60e1d3ce826195006fefe036d9d4d94
2016-11-14 16:58:25 -05:00
Stephen Toub 90d406d447 Strongly-type the static fields on GenericHeaderParser
Commit migrated from https://github.com/dotnet/corefx/commit/898806b33b2a159c6cdfdf51ee5e4c3057a06179
2016-11-14 16:58:25 -05:00
Eric Mellino 1435610de7 Enable ApiCompat in S.R.WinRT by updating WinRT targeting pack
Commit migrated from https://github.com/dotnet/corefx/commit/0af44e88bd4a6ce633a542189f0536f1e6e215b0
2016-11-14 12:31:25 -08:00
dotnet-bot bb01d482d2 Update CoreFx, ProjectNTfs to beta-24714-01, beta-24714-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/3342536d369d922f14cc1a9c0fb91b4440a6967e
2016-11-14 15:46:09 +00:00
Wes Haggard e9a1bf21a6 Merge pull request dotnet/corefx#13565 from weshaggard/AddFacades
Add facades

Commit migrated from https://github.com/dotnet/corefx/commit/1f26e27b677e5f256b2cfd4e67acb63661d25a91
2016-11-11 11:54:59 -08:00
Wes Haggard ac2e16bf88 Delete all older individual compat ref/src projects
We are no going to build these in one project instead of individual projects


Commit migrated from https://github.com/dotnet/corefx/commit/d3a2e1a955410d294f39642775c8215aae63a1d0
2016-11-11 09:31:59 -08:00
Eric St. John 8d0ead0175 Fix warnings when building corefx
A couple of these were harbingers of test issues so I cleaned everything
up so that folks can pay attention when they add a warning.


Commit migrated from https://github.com/dotnet/corefx/commit/811ea81d1fad349649e844a76cf0574f6460841d
2016-11-11 09:19:09 -08:00
dotnet-bot a02764567f Update CoreFx to beta-24711-02
Commit migrated from https://github.com/dotnet/corefx/commit/3709a83afb9ffb8aa05b6c6f5561859527226595
2016-11-11 15:52:34 +00:00
dotnet-bot b9b36cbb7a Update CoreFx, External, ProjectNTfs to beta-24711-01, beta-24711-00, beta-24711-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/2ab7ba374f98bb0c3785435169d9b568c5f24eba
2016-11-11 06:19:20 +00:00
dotnet-bot d1fb8ddc0f Update CoreFx, External, ProjectNTfs to beta-24710-01, beta-24710-00, beta-24710-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/0a2361383fda2720c5eada8c80d24850a9d61246
2016-11-10 14:31:27 -08:00
Stephen Toub bd16d17031 Merge pull request dotnet/corefx#13527 from stephentoub/curl_defaults
Make HttpClient on Unix treat SslProtocols.None as meaning system defaults

Commit migrated from https://github.com/dotnet/corefx/commit/28e8fdf7fb6717e29206a155abc6d92308ef3663
2016-11-09 20:23:03 -05:00
Jeremy Kuhne f05a8c4187 Move IO types into System.Runtime.Extensions (dotnet/corefx#13451)
Move all of System.IO into System.Runtime.Extensions.
Finish moving System.IO.Primitives into System.Runtime.

Commit migrated from https://github.com/dotnet/corefx/commit/55eb2f16c4ccdb6e4c50a89af5c14ac843239901
2016-11-09 14:44:50 -08:00
Cristian Pop fad54f95d4 Merge pull request dotnet/corefx#13075 from CIPop/tls_pr
TLS SystemDefault support.

Commit migrated from https://github.com/dotnet/corefx/commit/1ae37add7583acebfa21bbc2074ab627a2f765a7
2016-11-09 14:01:31 -08:00
Stephen Toub 4c57b8d7f1 Make HttpClient on Unix treat SslProtocols.None as meaning system defaults
This way, as libcurl and OpenSSL are updated to support newer protocols and disable older ones, we inherit the latest settings.


Commit migrated from https://github.com/dotnet/corefx/commit/79777327b700f6d14fa5c64b072e5a031d6d512b
2016-11-09 14:23:32 -05:00
dotnet-bot c5bd931c2d Update CoreFx to beta-24709-02
Commit migrated from https://github.com/dotnet/corefx/commit/68a1670fc7b9c9419f5d3100ac9a4347874aeef8
2016-11-09 15:38:49 +00:00
dotnet-bot d6f29b0517 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24709-02, beta-24709-01, beta-24709-00, beta-24709-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/8a5167a13e1ae72cff71285c49f5f84e10a64248
2016-11-09 09:19:32 +00:00
dotnet-bot c561086403 Update CoreClr, CoreFx to beta-24709-01, beta-24708-05, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/bafbeec4841285834d31bee295c225a61de2b780
2016-11-09 01:10:38 +00:00
Cristian Pop 1fb0a8ece8 TLS SystemDefault support.
Commit migrated from https://github.com/dotnet/corefx/commit/e882577f1cdf1c6505681c0a52a532d78f03c24f
2016-11-08 16:07:26 -08:00
Stephen Toub 27794c3e5c Update corefx to beta-24708-03
Commit migrated from https://github.com/dotnet/corefx/commit/9f9c2885208315215b7e328ea399f13c83d1b8a7
2016-11-08 17:10:15 -05:00
dotnet-bot b740f1d2bd Update CoreClr, CoreFx, External, ProjectNTfs to beta-24708-02, beta-24707-01, beta-24708-00, beta-24708-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b255d0bf4df94eb383c1bb4b42b1bfe9b64f3238
2016-11-08 17:07:45 -05:00
Stephen Toub 7928cb6303 Use std::nothrow with new operator in native shims
To avoid exceptions propagating out of native shims and crashing at interop boundary.


Commit migrated from https://github.com/dotnet/corefx/commit/02dda0a64c651573928fbafe0218f023890442d4
2016-11-06 07:18:09 -05:00
dotnet-bot d63a7b41df Update CoreFx to beta-24705-01
Commit migrated from https://github.com/dotnet/corefx/commit/c7603507fe200426130f10d6b2cc67dfeda2c83f
2016-11-05 02:22:03 +00:00
dotnet-bot 540789c36c Update CoreClr, CoreFx, External, ProjectNTfs to beta-24704-04, beta-24704-03, beta-24704-00, beta-24704-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d75d49704cffb9652304a357750d7f3f357be6fc
2016-11-05 00:21:20 +00:00