platform/upstream/dotnet/runtime.git
6 years agoUpdate CoreClr, CoreFx, CoreSetup to preview1-26806-01, preview1-26806-01, preview1...
dotnet-maestro-bot [Mon, 6 Aug 2018 02:44:33 +0000 (19:44 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26806-01, preview1-26806-01, preview1-26805-04, respectively (dotnet/corefx#31603)

Commit migrated from https://github.com/dotnet/corefx/commit/e267ad25d58459b90be7cea74ea11b9689daf191

6 years agoFix implementation of WriteKeyParameterInteger
Filip Navara [Sun, 5 Aug 2018 22:49:33 +0000 (00:49 +0200)]
Fix implementation of WriteKeyParameterInteger

Commit migrated from https://github.com/dotnet/corefx/commit/1e2dfe2c2ef9ca04a46e38f6645021e5da39ffe3

6 years agoUse GeneralNameAsn in SubjectAlternativeNameBuilder
Filip Navara [Sun, 5 Aug 2018 22:49:06 +0000 (00:49 +0200)]
Use GeneralNameAsn in SubjectAlternativeNameBuilder

Commit migrated from https://github.com/dotnet/corefx/commit/8d2407974c88b50c54f29ee20fd9deb8e6d00b1f

6 years agoUpdate CoreClr, CoreFx, CoreSetup to preview1-26805-04, preview1-26805-04, preview1...
dotnet-maestro-bot [Sun, 5 Aug 2018 15:28:03 +0000 (08:28 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26805-04, preview1-26805-04, preview1-26805-01, respectively (dotnet/corefx#31594)

Commit migrated from https://github.com/dotnet/corefx/commit/28cb4c8917c25033bb136055c3c2462907a281fe

6 years agoConsolidate IsLegalKeySize and related methods into common code.
Filip Navara [Sat, 4 Aug 2018 22:52:08 +0000 (00:52 +0200)]
Consolidate IsLegalKeySize and related methods into common code.

Commit migrated from https://github.com/dotnet/corefx/commit/aa731cb68cd60128cc4b1efcd8b1a8e859750755

6 years agoRename S.S.C.Pkcs internal `Helpers` class into `PkcsHelpers`
Martin Baulig [Sat, 4 Aug 2018 17:56:40 +0000 (13:56 -0400)]
Rename S.S.C.Pkcs internal `Helpers` class into `PkcsHelpers`

There are a variety of different parial `Internal.Cryptography.Helper` class parts split across
multiple assemblies.  This is causing problems for Mono because you cannot "combine" different
parts of partial class across assembly boundaries.

In Mono, the `System.Security.Cryptography.Pkcs` namespace lives in `System.Security.dll`,
but we are already using different parts of that internal class in our `mscorlib.dll`, which is
now causing conflicts due to [InternalsVisibleTo]

Commit migrated from https://github.com/dotnet/corefx/commit/5812dcbef2cde02a8213139085deefe666376f2c

6 years agoMerge X509Certificates Oids with the common ones.
Filip Navara [Sat, 4 Aug 2018 17:54:58 +0000 (19:54 +0200)]
Merge X509Certificates Oids with the common ones.

Commit migrated from https://github.com/dotnet/corefx/commit/85c4b4bdae8095c3681d4cd91e00894f26c3baf6

6 years agoMerge pull request dotnet/corefx#30923 from BruceForstall/Arm64VSBuild2
Bruce Forstall [Sat, 4 Aug 2018 00:36:46 +0000 (17:36 -0700)]
Merge pull request dotnet/corefx#30923 from BruceForstall/Arm64VSBuild2

Change arm64 build to use public VS tools instead of private toolset

Commit migrated from https://github.com/dotnet/corefx/commit/c1788c695d4349c522fc5620eff7d3dd46a0ab5f

6 years agoAdd macOS 10.14 Mojave to the RID graph (dotnet/corefx#31548)
Josh Free [Fri, 3 Aug 2018 22:17:11 +0000 (15:17 -0700)]
Add macOS 10.14 Mojave to the RID graph  (dotnet/corefx#31548)

Add macOS 10.14 Mojave to Microsoft.NETCore.Platforms

Fixes https://github.com/dotnet/corefx/issues/31547

Commit migrated from https://github.com/dotnet/corefx/commit/b101ed555dd1fb91b24c4a9d5d665df9e68f335c

6 years agoExpose EventWrittenEventArgs.OSThreadId and EventWrittenEventArgs.TimeStamp in the...
Brian Robbins [Fri, 3 Aug 2018 18:03:40 +0000 (11:03 -0700)]
Expose EventWrittenEventArgs.OSThreadId and EventWrittenEventArgs.TimeStamp in the System.Diagnostics.Tracing contract. (dotnet/corefx#31564)

Commit migrated from https://github.com/dotnet/corefx/commit/c8c882c7366f2facfca4c8069de79da477dcf05b

6 years agoHandle nt auth with Connection: close on initial challenge (dotnet/corefx#31527)
Geoff Kizer [Fri, 3 Aug 2018 17:55:11 +0000 (10:55 -0700)]
Handle nt auth with Connection: close on initial challenge (dotnet/corefx#31527)

When we receive an initial NT auth challenge that has Connection: close set on the response, we need to proceed with authentication on a new connection.

Fixes dotnet/corefx#30327

Commit migrated from https://github.com/dotnet/corefx/commit/eedddac1bd10a7c8629a9db7f46fc8afc7385d63

6 years agoUpdate CoreClr, CoreFx, CoreSetup to preview1-26803-04, preview1-26803-03, preview1...
dotnet-maestro-bot [Fri, 3 Aug 2018 17:09:30 +0000 (10:09 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26803-04, preview1-26803-03, preview1-26803-02, respectively (dotnet/corefx#31582)

Commit migrated from https://github.com/dotnet/corefx/commit/408fe4f405f4d67c554f03d8fc9e94eb7da55dbb

6 years agoUpdate ProjectNTfs, ProjectNTfsTestILC to beta-26803-00, beta-26803-00, respectively...
dotnet-maestro-bot [Fri, 3 Aug 2018 12:31:22 +0000 (05:31 -0700)]
Update ProjectNTfs, ProjectNTfsTestILC to beta-26803-00, beta-26803-00, respectively (dotnet/corefx#31574)

Commit migrated from https://github.com/dotnet/corefx/commit/38c51476dea06b15d32b98caa64bf292f85f4258

6 years agoMake `Vector64<T>`, `Vector128<T>`, and `Vector256<T>` readonly (dotnet/corefx#31573)
Tanner Gooding [Fri, 3 Aug 2018 12:31:12 +0000 (05:31 -0700)]
Make `Vector64<T>`, `Vector128<T>`, and `Vector256<T>` readonly (dotnet/corefx#31573)

Commit migrated from https://github.com/dotnet/corefx/commit/ebbd513f2b9750e52b2db46cc78a0cd69c61943c

6 years agoMove GeneralNameAsn from Pkcs to Common for sharing
Filip Navara [Fri, 3 Aug 2018 05:24:30 +0000 (07:24 +0200)]
Move GeneralNameAsn from Pkcs to Common for sharing

Commit migrated from https://github.com/dotnet/corefx/commit/23915a606017197aed1d24960096b532d24d626e

6 years agoAdded System.Runtime.ProfileOptimization (dotnet/corefx#31067)
Marco Rossignoli [Fri, 3 Aug 2018 04:16:26 +0000 (06:16 +0200)]
Added System.Runtime.ProfileOptimization (dotnet/corefx#31067)

Commit migrated from https://github.com/dotnet/corefx/commit/23fab4631ed927f5657e4ab4a6ce4d45d08bcf7a

6 years agoUpdate CoreClr, CoreFx, CoreSetup to preview1-26803-01, preview1-26803-01, preview1...
dotnet-maestro-bot [Fri, 3 Aug 2018 02:36:40 +0000 (19:36 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26803-01, preview1-26803-01, preview1-26802-04, respectively (dotnet/corefx#31572)

Commit migrated from https://github.com/dotnet/corefx/commit/54516d08450150cb5fab4e07d999c5d4d4b46398

6 years agoFix looking up headers on HttpClient response (dotnet/corefx#31550)
Dustin Masters [Fri, 3 Aug 2018 01:16:03 +0000 (18:16 -0700)]
Fix looking up headers on HttpClient response (dotnet/corefx#31550)

Headers marked as `HttpHeaderType.Request` were not able to be accessed
via the `Headers.GetValues` method. When looking up a header,
the `HeaderDescriptor` gets set to to `HttpHeaderType.Custom` in
`GetHeaderDescriptor`, but the persisted header in `_headerStore` had
`HeaderType` set to `HttpHeaderType.Request`, so lookups would fail.
This change makes the insert logic consistent with the lookup logic.

Fixes dotnet/corefx#31143

Commit migrated from https://github.com/dotnet/corefx/commit/8917abaf35ea153f4bbf1098d74d02963ef08e76

6 years agoUpdate CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26802...
dotnet-maestro-bot [Thu, 2 Aug 2018 13:37:53 +0000 (06:37 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26802-05, preview1-26802-04, preview1-26802-01, beta-26802-00, beta-26802-00, respectively

Commit migrated from https://github.com/dotnet/corefx/commit/94044e225179b9e7cd5d45d9c959ccb5a222e5d2

6 years agoMerge pull request dotnet/corefx#31566 from MattGal/update-fedoras
Matt Galbraith [Thu, 2 Aug 2018 22:41:30 +0000 (15:41 -0700)]
Merge pull request dotnet/corefx#31566 from MattGal/update-fedoras

Removing Fedora 26 and adding 28 as appropriate.

Commit migrated from https://github.com/dotnet/corefx/commit/2642a25cb86b5897eebe9e3ff32da1155ca8de3e

6 years agoRemoving Fedora 26 and adding 28 as appropriate. Fix a couple README.md typos.
Matt Galbraith [Thu, 2 Aug 2018 21:48:18 +0000 (14:48 -0700)]
Removing Fedora 26 and adding 28 as appropriate.  Fix a couple README.md typos.

Commit migrated from https://github.com/dotnet/corefx/commit/e4559a3ca8b32edd8f8c2c8b51ee484b2b29e01b

6 years agoUsing Utimes instead of utime hence setting millisecond attribute of last access...
Anirudh Agnihotry [Thu, 2 Aug 2018 21:10:30 +0000 (14:10 -0700)]
Using Utimes instead of utime hence setting millisecond attribute of last access and last modified time to non-zero (dotnet/corefx#31522)

* using utimes instead of utime

* Test for checking millisec attribute is set or not

* Documenting the values in case of the failure

* NanoSecond enabled

* feedback addressed

* int64_t added

* Fixing build on ci Osx(on which utimensat is not available)

* Minor nits done

Commit migrated from https://github.com/dotnet/corefx/commit/cd62bb271e98410319460b4ba48332416bcccf65

6 years agoStart migration of S.S.C.X509Certificates to new Asn.1 APIs
Filip Navara [Thu, 2 Aug 2018 18:06:59 +0000 (20:06 +0200)]
Start migration of S.S.C.X509Certificates to new Asn.1 APIs

* Read/write X509 extensions using the new ASN classes.
  * Change to accept BER, because netfx accepted it.
* Migrate AppleCertificatePal's CertificateData to new ASN classes.
* Migrate CertificateRequest to new ASN classes.
* Update PKCSdotnet/corefx#9 and PKCSdotnet/corefx#10 serialization to use new ASN.1 classes.
* Add test for normalizing zero-only serial number.
* Reimplement RSAPssX509SignatureGenerator using AsnSerializer.
* Reuse PssParamAsn from S.S.C.Pkcs.

Commit migrated from https://github.com/dotnet/corefx/commit/9853efb2db2063621a40612dc66adc06188b8778

6 years agoImprove performance for GetViewBetween and enumerating TreeSubSet (dotnet/corefx...
Alexkumar Patel [Thu, 2 Aug 2018 17:39:00 +0000 (13:39 -0400)]
Improve performance for GetViewBetween and enumerating TreeSubSet (dotnet/corefx#30921)

* Improve performance for GetViewBetween and enumerating TreeSubSet

* VersionCheckImpl is not called within the constructor

* count does not get updated by VersionCheckImpl

* count is now updated within VersionCheckCount which is
  only called when retrieving Count property. As a result
  count has been replaced with Count inside TreeSubSet/SortedSet
  where nessessary.

* For TreeSubSet the enumerator now uses the Count of the
  parent set (entire tree) when creating the stack.
  This results in a larger stack size, however it eliminates the
  need to get the count of TreeSubSet, which drastically
  increases the performance.

* Cleaned up code and added comments

* Fixed logic error with updateCount

* Removed unnecessary blank line

* Changed VersionCheckCount -> VersionCheck

* Cleaning code

Commit migrated from https://github.com/dotnet/corefx/commit/cc4d621fc57b5b515d6601c623337ce552ad7f86

6 years agoChange arm64 build to use public VS tools instead of private toolset
Bruce Forstall [Mon, 9 Jul 2018 20:26:07 +0000 (13:26 -0700)]
Change arm64 build to use public VS tools instead of private toolset

Commit migrated from https://github.com/dotnet/corefx/commit/aea747d507b1c7f3587b92d158c21e4047068ece

6 years agoUpdate BuildTools, CoreClr, CoreFx, CoreSetup to preview1-03101-02, preview1-26802...
dotnet-maestro-bot [Thu, 2 Aug 2018 03:52:37 +0000 (20:52 -0700)]
Update BuildTools, CoreClr, CoreFx, CoreSetup to preview1-03101-02, preview1-26802-01, preview1-26802-01, preview1-26801-04, respectively (dotnet/corefx#31549)

Commit migrated from https://github.com/dotnet/corefx/commit/384cd87dbf91a21d2a2fa7c4ebb2a96b44616684

6 years agoIO.Ports UAP: use GetCommPorts (dotnet/corefx#31539)
Paulo Janotti [Thu, 2 Aug 2018 03:44:03 +0000 (20:44 -0700)]
IO.Ports UAP: use GetCommPorts (dotnet/corefx#31539)

IO.Ports UAP: use GetCommPorts

Commit migrated from https://github.com/dotnet/corefx/commit/0d4ade609e2b08ee33364beccbe435040f4814cd

6 years agoExpose the x86 HWIntrinsics via a set of class hierarchies matching the underlying...
Tanner Gooding [Tue, 31 Jul 2018 17:18:37 +0000 (10:18 -0700)]
Expose the x86 HWIntrinsics via a set of class hierarchies matching the underlying ISA hierarchies

Commit migrated from https://github.com/dotnet/corefx/commit/e8afef97b7fc3d1c45efa467c8e71b1322c84891

6 years agoProvide a desktop-only implementation of RuntimeThread.CurrentOSThreadId for Microsof...
Brian Robbins [Wed, 1 Aug 2018 19:48:42 +0000 (12:48 -0700)]
Provide a desktop-only implementation of RuntimeThread.CurrentOSThreadId for Microsoft.Diagnostics.Tracing.EventSource.Redist.

Commit migrated from https://github.com/dotnet/corefx/commit/267b16e0495281e503eca0837eb30914ad973393

6 years agoAdd S.R.WindowsRuntime implemenation assembly into .NetCoreApp (dotnet/corefx#30761)
Luqun Lou [Wed, 1 Aug 2018 19:49:00 +0000 (12:49 -0700)]
Add S.R.WindowsRuntime implemenation assembly into .NetCoreApp (dotnet/corefx#30761)

Commit migrated from https://github.com/dotnet/corefx/commit/724ffdee9db1c95314ca3c45f2692c2b7f73d78e

6 years agoAdd test helper to enable SocketsHttpHandler HTTP/2 testing (dotnet/corefx#31530)
David Shulman [Wed, 1 Aug 2018 18:49:23 +0000 (11:49 -0700)]
Add test helper to enable SocketsHttpHandler HTTP/2 testing (dotnet/corefx#31530)

The HTTP/2 feature is turned off by default on SocketsHttpHandler since the implementation
is not done. It can be enabled via AppContext or environment variable settings. However,
using those settings is not practical because we need a more granular way of turning on
the HTTP/2 feature for running certain tests.

This PR adds a test helper that uses reflection to set the internal _maxHttpVersion field
of SocketsHttpHandler. I also enabled one HTTP/2 test to demonstrate how to use this test
helper method.

Contributes to dotnet/corefx#31496

Commit migrated from https://github.com/dotnet/corefx/commit/2f9483cdf78c8b6319f471ccb09422a2b0248ee7

6 years agoUpdate BuildTools to preview1-03101-01 (dotnet/corefx#31537)
dotnet-maestro-bot [Wed, 1 Aug 2018 17:49:54 +0000 (10:49 -0700)]
Update BuildTools to preview1-03101-01 (dotnet/corefx#31537)

Commit migrated from https://github.com/dotnet/corefx/commit/7534eddc90495eac1d7276b740367db0cd04fdc4

6 years agofix a race condition (dotnet/corefx#31437)
Jiayi Yu [Wed, 1 Aug 2018 17:27:58 +0000 (10:27 -0700)]
fix a race condition (dotnet/corefx#31437)

Commit migrated from https://github.com/dotnet/corefx/commit/07f9f7ed665d6a8e20667dd33740e810978ff523

6 years agoUpdate CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26801...
dotnet-maestro-bot [Wed, 1 Aug 2018 13:37:38 +0000 (06:37 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26801-06, preview1-26801-04, preview1-26801-01, beta-26801-00, beta-26801-00, respectively

Commit migrated from https://github.com/dotnet/corefx/commit/627d2d365c88178c161c8a5344765a569fc1f871

6 years agoUpdate Ubuntu 18.04 build instructions
Josh Free [Tue, 31 Jul 2018 22:22:06 +0000 (15:22 -0700)]
Update Ubuntu 18.04 build instructions

Update Ubuntu 18.04 build instructions to include OpenSSL 1.0.2 headers

https://github.com/dotnet/corefx/issues/28924#issuecomment-379889142

Commit migrated from https://github.com/dotnet/corefx/commit/89fe18fc44397309b59af62a01d5e6a8a662a2e8

6 years agocorrect clean -all line
Josh Free [Tue, 31 Jul 2018 21:34:39 +0000 (14:34 -0700)]
correct clean -all line

correct the clean -all line

Commit migrated from https://github.com/dotnet/corefx/commit/24a41c3be54ae6fd99c4cb7870f738667c69178e

6 years agoFix buffer size in gpstream for netcoreapp20 (dotnet/corefx#31518)
Santiago Fernandez Madero [Tue, 31 Jul 2018 21:06:56 +0000 (14:06 -0700)]
Fix buffer size in gpstream for netcoreapp20 (dotnet/corefx#31518)

* Fix buffer size in gpstream for netcoreapp20

* Bring back System.Buffers using

Commit migrated from https://github.com/dotnet/corefx/commit/43d8f38a949c8602a0cc552d1fcb5b1a0c79cae5

6 years agoRemove unecessary DiagnosticUtility from Syndication code (dotnet/corefx#31184)
Hugh Bellamy [Tue, 31 Jul 2018 21:03:08 +0000 (22:03 +0100)]
Remove unecessary DiagnosticUtility from Syndication code (dotnet/corefx#31184)

* Remove unecessary DiagnosticUtility from Syndication code

Commit migrated from https://github.com/dotnet/corefx/commit/8b5269680e2bf05e610ecaa2320c965007cec84e

6 years agoUpdate CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26731...
dotnet-maestro-bot [Tue, 31 Jul 2018 14:21:36 +0000 (07:21 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26731-07, preview1-26731-04, preview1-26731-01, beta-26731-00, beta-26731-00, respectively

Commit migrated from https://github.com/dotnet/corefx/commit/465b377e030a292616bb9e97dba733a7d17985f6

6 years agoMake non-file URL support optional in XmlUrlResolver
Michal Strehovský [Tue, 31 Jul 2018 13:57:24 +0000 (15:57 +0200)]
Make non-file URL support optional in XmlUrlResolver

This adds [removable feature annotation](https://github.com/dotnet/designs/pull/42) to `XmlDownloadManager`.

If the user specifies that they would like to remove support for this at publish/native compilation time, the linker/compiler is going to replace the method body of `CreateWebRequestOrThrowIfRemoved` with a throwing method body. The exception message is going to inform the user that the feature has been removed because they opted into the removal.

Contributes to dotnet/corefx#30597. Saves 1.2 MB of the size of the Windows UWP People app. This is a size on disk regression that came with NetStandard 2.0.

Commit migrated from https://github.com/dotnet/corefx/commit/5898cdd5b835fde14bb3c25c39755725de02f2b9

6 years agoAdd RemovableFeatureAttribute
Michal Strehovský [Tue, 31 Jul 2018 13:52:03 +0000 (15:52 +0200)]
Add RemovableFeatureAttribute

Commit migrated from https://github.com/dotnet/corefx/commit/e5720ae475b90710586b734f149df2ded318cf73

6 years agoX509Certificates2Collection.Find Ignores LRM ('\u200E') when decoding hex string
Alfred Myers [Tue, 31 Jul 2018 14:48:57 +0000 (11:48 -0300)]
X509Certificates2Collection.Find Ignores LRM ('\u200E') when decoding hex string

* Skip Left-To-Right-Mark (copied out of MMC) when it's the first character while parsing hex strings
* Added tests for FindByThumbprint and FindBySerialNumber

Commit migrated from https://github.com/dotnet/corefx/commit/ba505f52eb415364c1fd4f52ac00c51f37b8d125

6 years agoFix [de]serializing ASN.1 classes with default values used together with explicit...
Filip Navara [Tue, 31 Jul 2018 14:47:17 +0000 (16:47 +0200)]
Fix [de]serializing ASN.1 classes with default values used together with explicit tag.

* Fix deserializing ASN.1 classes with default values used together with explicit tag.
* Fix default values in PssParamsAsn not to include the explicit tags.
* Fix default values in PssParamsAsn to include explicit NULLs as per comments and RFC.

Commit migrated from https://github.com/dotnet/corefx/commit/c78053f43e4634a29eabcd6d82ff6d7589b5b120

6 years agoPorted BooleanType to corefx (dotnet/corefx#31497)
Anirudh Agnihotry [Tue, 31 Jul 2018 03:05:54 +0000 (20:05 -0700)]
Ported BooleanType to corefx (dotnet/corefx#31497)

Commit migrated from https://github.com/dotnet/corefx/commit/1ac5ad6d8d2ec93d81db51e727008afe038343d2

6 years agoImprove GdiPlusStreamHelper to use Span stream apis and kill allocations and make...
Santiago Fernandez Madero [Tue, 31 Jul 2018 00:40:54 +0000 (17:40 -0700)]
Improve GdiPlusStreamHelper to use Span stream apis and kill allocations and make it somehow faster (dotnet/corefx#31494)

* Disable drawing tests that use not implemented gdiplus apis

* Improve GdiPlusStreamHelper to use Span stream apis and kill allocations and make it somehow faster

* PR Feedback

Commit migrated from https://github.com/dotnet/corefx/commit/f563bfa8064c5b720b165ae0dc40d59d3f6b04cb

6 years agoMove platform-specific pieces of `CertificatePal` into separate classes.
Martin Baulig [Mon, 30 Jul 2018 23:13:36 +0000 (19:13 -0400)]
Move platform-specific pieces of `CertificatePal` into separate classes.

* Pal.OSX/CertificatePal.cs: Move `AppleCertificatePal` into its own file and add
  all static methods from `CertificatePal` to it, turning `CertificatePal` into a
  tiny proxy.

* Pal.Unix/CertificatePal.cs: Move static methods into `OpenSslCertificatePal`, then add `CertificatePal` proxy.

* Pal.Unix/OpenSslX509Encoder.cs and StorePal.cs: use `OpenSslCertificatePal` instead
  of `CertificatePal`.

Commit migrated from https://github.com/dotnet/corefx/commit/3117285369d4f4ed924751950e491bfdc47374cb

6 years agoAdd SocketsHttpHandler AppContext and Env variables for HTTP/2 opt-in (dotnet/corefx...
David Shulman [Mon, 30 Jul 2018 21:21:59 +0000 (14:21 -0700)]
Add SocketsHttpHandler AppContext and Env variables for HTTP/2 opt-in (dotnet/corefx#31462)

The conclusion from the API review meetings was that we are not adding any
new public APIs to control MaxHttpVersion. This PR adds AppContext and
environment variable controls for opting into HTTP/2.0 support for SocketsHttpHandler.

The default for now is that max version is HTTP/1.1 unless these switches are
used. We will re-evaluate changing the default as we get closer to shipping to
determine if HTTP/2.0 support should be on by default.

Fixes dotnet/corefx#31424

Commit migrated from https://github.com/dotnet/corefx/commit/5bff639f1afd949852bc098fed27c002d5916036

6 years agoRemove version increment from Dictionary<K,V>.Remove overloads (dotnet/corefx#30956)
Wraith2 [Mon, 30 Jul 2018 20:07:26 +0000 (21:07 +0100)]
Remove version increment from Dictionary<K,V>.Remove overloads (dotnet/corefx#30956)

* change tests to support safe enumeration modification operations

* change tests to support safe enumeration modification operations

* restore intrinsic changes

* fix flag comparison copy paste error

* fixing project

* Address feedback

* Address feedback, disable remove tests for 31112

* fix serialization of SortedDictionary.ValueCollection being marked possible

* remove ActiveIssue exclusions for 31112

Commit migrated from https://github.com/dotnet/corefx/commit/55fd6fed4505d65de2870988802ba642fbf3e61d

6 years agoUpdate BuildTools to preview1-03030-01
dotnet-maestro-bot [Mon, 30 Jul 2018 15:53:46 +0000 (08:53 -0700)]
Update BuildTools to preview1-03030-01

Commit migrated from https://github.com/dotnet/corefx/commit/6dc43c7d545d6d42eb251ca8d88ef41db7d5c8ca

6 years agoReduce redundant code between S.S.C.X509Certificates and S.S.C.Pkcs
Filip Navara [Mon, 30 Jul 2018 17:20:34 +0000 (19:20 +0200)]
Reduce redundant code between S.S.C.X509Certificates and S.S.C.Pkcs

* Move X509ExtensionAsn to common source
* Move GetSubjectKeyIdentifier from Helpers directly to ManagedPal and reimplement it using X509SubjectKeyIdentifierExtension public API.
* Remove now-unused Certificate, TbsCertificateLite classes.

Commit migrated from https://github.com/dotnet/corefx/commit/a07f0c8d4efcb384c2d831c2582645098922d3ca

6 years agoAdd back dotnet restore to compat pack validation script (dotnet/corefx#31481)
Santiago Fernandez Madero [Mon, 30 Jul 2018 16:27:03 +0000 (09:27 -0700)]
Add back dotnet restore to compat pack validation script (dotnet/corefx#31481)

Commit migrated from https://github.com/dotnet/corefx/commit/f15471a929e6a29d5a257f8128b59b020fb2e9a3

6 years agoSkip Linq test for UWP (dotnet/corefx#31467)
Dan Moseley [Mon, 30 Jul 2018 16:05:13 +0000 (09:05 -0700)]
Skip Linq test for UWP (dotnet/corefx#31467)

Commit migrated from https://github.com/dotnet/corefx/commit/bbd8b4d67090afcf23f4f0f69e94f7cfa41a7e62

6 years agoDisable tests for UAP (dotnet/corefx#31466)
Dan Moseley [Mon, 30 Jul 2018 16:05:01 +0000 (09:05 -0700)]
Disable tests for UAP (dotnet/corefx#31466)

Commit migrated from https://github.com/dotnet/corefx/commit/622839530dec891f196b1b7f68aa45e35b435bf8

6 years agoAdd Conversions.To* VB tests (dotnet/corefx#31341)
Hugh Bellamy [Mon, 30 Jul 2018 16:03:56 +0000 (17:03 +0100)]
Add Conversions.To* VB tests (dotnet/corefx#31341)

* Add Conversions.To* VB tests

* Fixes to test data

* Cleanup tests

* Fix parsing on spanish CI

* Update ConversionsTests.cs

Be robust wrt culture

* Consolidate test data, address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/55c2eb8c9fd3a7171d46b48ed444af0c4edfe17d

6 years agoUpdate compat pack test to restore for 3.0 (dotnet/corefx#31446)
Santiago Fernandez Madero [Mon, 30 Jul 2018 15:51:53 +0000 (08:51 -0700)]
Update compat pack test to restore for 3.0 (dotnet/corefx#31446)

Commit migrated from https://github.com/dotnet/corefx/commit/f9e73743c76e1d5963508aa85dcfdda802334de7

6 years agoUpdate CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26730...
dotnet-maestro-bot [Mon, 30 Jul 2018 15:35:41 +0000 (08:35 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26730-04, preview1-26730-04, preview1-26730-01, beta-26730-00, beta-26730-00, respectively (dotnet/corefx#31472)

Commit migrated from https://github.com/dotnet/corefx/commit/82b732db451f4912b73e7913dc70dac06d0f1c03

6 years agoEnable strict globally, fix comparison of IntPtr, Guid with null (dotnet/corefx#31457)
Dan Moseley [Mon, 30 Jul 2018 15:35:18 +0000 (08:35 -0700)]
Enable strict globally, fix comparison of IntPtr, Guid with null (dotnet/corefx#31457)

* Fix comparison of IntPtr with null

* Enable strict globally and fix

* another

* More fixes

* Disable for S.T.L

Commit migrated from https://github.com/dotnet/corefx/commit/a0e4d78a74b241289dcf0c4c1c6fa026e394a150

6 years agoAdd PipeStream.FlushAsync (dotnet/corefx#31454)
Andrew Arnott [Mon, 30 Jul 2018 15:21:15 +0000 (09:21 -0600)]
Add PipeStream.FlushAsync (dotnet/corefx#31454)

This saves GC pressure by avoiding a TaskFactory.StartNew call in the base FlushAsync implementation.

Commit migrated from https://github.com/dotnet/corefx/commit/28b4581515d7dbd334d5640e91c68e30005b32ac

6 years agoUpdate CoreClr, CoreFx, CoreSetup to preview1-26730-01, preview1-26730-01, preview1...
dotnet-maestro-bot [Mon, 30 Jul 2018 02:49:51 +0000 (19:49 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26730-01, preview1-26730-01, preview1-26729-02, respectively (dotnet/corefx#31465)

Commit migrated from https://github.com/dotnet/corefx/commit/f9d403be123af9af4097b52403f61a17273727e6

6 years agoMake CoreFX/Native be valid C++. (dotnet/corefx#31342)
Jay Krell [Mon, 30 Jul 2018 01:04:34 +0000 (18:04 -0700)]
Make CoreFX/Native be valid C++. (dotnet/corefx#31342)

* Make CoreFX/Native be valid C++.
 - Assignment from void* to non-void.
    Add cast.
 - sizeof_member(struct foo, bar)
   Add typedef struct foo foo and remove struct in member_sizeof.

* Change IsInBounds to accept const void* to avoid every caller
needing to cast.

* Remove struct on c_static_assert(offsetof) also.

Commit migrated from https://github.com/dotnet/corefx/commit/3686f5a4b5eab5eb8678063864a44df4cae05e4c

6 years agoUpdate CoreClr, CoreFx, CoreSetup to preview1-26729-04, preview1-26729-03, preview1...
dotnet-maestro-bot [Sun, 29 Jul 2018 19:32:57 +0000 (12:32 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26729-04, preview1-26729-03, preview1-26729-01, respectively (master) (dotnet/corefx#31450)

* Update CoreClr, CoreFx, CoreSetup to preview1-26729-04, preview1-26729-03, preview1-26729-01, respectively

* Version increment for TrimExcess and EnsureCapacity (dotnet/corefx#31007)

Tests for version increment in TrimExcess and EnsureCapacity (dotnet/corefx#31007)

Revert "Version increment for TrimExcess and EnsureCapacity (dotnet/corefx#31007)"

This reverts commit dotnet/corefx@92d8f19e11e01948fdbdd3c87867b019a4250006.

Tests for enumeration invalidation in TrimExcess and EnsureCapacity (dotnet/corefx#31007)

Commit migrated from https://github.com/dotnet/corefx/commit/fff6642338839959fffabb1e2e68b64014ce1ef5

6 years agoAdd VB test project (dotnet/corefx#31455)
Dan Moseley [Sun, 29 Jul 2018 19:03:18 +0000 (12:03 -0700)]
Add VB test project (dotnet/corefx#31455)

* Add VB test project

* Fix VB Guid

Commit migrated from https://github.com/dotnet/corefx/commit/1750822c9e7861c6c0eed02821c809e93cb5ef85

6 years agoSet ECDsaCng default hash algorithm to SHA256
Dávid Kaya [Sun, 29 Jul 2018 17:36:36 +0000 (19:36 +0200)]
Set ECDsaCng default hash algorithm to SHA256

Also added tests for both ECDsaCng and ECDiffieHellmanCng to ensure the default matches .NET Framework.

Commit migrated from https://github.com/dotnet/corefx/commit/d60303de08c9c9c4b2138f02ad597f6486648c11

6 years agoFix networking tests to work against NETFX (dotnet/corefx#31397)
David Shulman [Sun, 29 Jul 2018 14:57:08 +0000 (07:57 -0700)]
Fix networking tests to work against NETFX (dotnet/corefx#31397)

Several of these tests were disabled because they failed on NETFX. This PR adjusts the tests
to work properly on NETFX due to some differences in behavior from .NET Core.

Fixes dotnet/corefx#28882

Commit migrated from https://github.com/dotnet/corefx/commit/f5a165540c4067b8fe0635b9beb6102d0b1d87a3

6 years agoMove CryptMsgClose to Common Interop from Pkcs and X509
Adam Gauthier [Sat, 28 Jul 2018 23:34:05 +0000 (19:34 -0400)]
Move CryptMsgClose to Common Interop from Pkcs and X509

Commit migrated from https://github.com/dotnet/corefx/commit/96f782f1cededf1528510f4ddfb5721a056d68b5

6 years agoDisable WinRT test from Server Core and Iot Core (dotnet/corefx#31442)
Dan Moseley [Sat, 28 Jul 2018 23:31:58 +0000 (16:31 -0700)]
Disable WinRT test from Server Core and Iot Core (dotnet/corefx#31442)

* Disable WinRT test from Server Core and Iot Core

* Update ActivatorTests.netcoreapp.cs

Commit migrated from https://github.com/dotnet/corefx/commit/2a1f993f7666b733a56310cfadbd40408d44676c

6 years agoAdd properties Now and Today (dotnet/corefx#30682)
EdwinEngelen [Sat, 28 Jul 2018 05:31:29 +0000 (07:31 +0200)]
Add properties Now and Today (dotnet/corefx#30682)

Commit migrated from https://github.com/dotnet/corefx/commit/dfa1338034a24eacda7a89d63363ab267a603449

6 years agoUpdate CoreClr, CoreFx, CoreSetup to preview1-26728-01, preview1-26728-01, preview1...
dotnet-maestro-bot [Sat, 28 Jul 2018 04:09:12 +0000 (21:09 -0700)]
Update CoreClr, CoreFx, CoreSetup to preview1-26728-01, preview1-26728-01, preview1-26727-03, respectively (dotnet/corefx#31444)

Commit migrated from https://github.com/dotnet/corefx/commit/52a747941c5fe36e253c7bac2012794d31dfe300

6 years agoUse CertFreeCertificateContext from Common Interop in Cryptography.Pkcs (dotnet/coref...
Adam Gauthier [Sat, 28 Jul 2018 03:24:57 +0000 (23:24 -0400)]
Use CertFreeCertificateContext from Common Interop in Cryptography.Pkcs (dotnet/corefx#31406)

Commit migrated from https://github.com/dotnet/corefx/commit/916062220f361e24646b13b5d1448795d33cb4bf

6 years agoAdd Strings.Filter methods (dotnet/corefx#31181) (dotnet/corefx#31408)
EdwinEngelen [Sat, 28 Jul 2018 00:37:43 +0000 (02:37 +0200)]
Add Strings.Filter methods (dotnet/corefx#31181) (dotnet/corefx#31408)

Commit migrated from https://github.com/dotnet/corefx/commit/fcb0efcd92035c22c93bd7442adbb5a5a99cdffb

6 years agoPlace argument name in exception message (dotnet/corefx#31086) (dotnet/corefx#31438)
EdwinEngelen [Sat, 28 Jul 2018 00:36:03 +0000 (02:36 +0200)]
Place argument name in exception message (dotnet/corefx#31086) (dotnet/corefx#31438)

Commit migrated from https://github.com/dotnet/corefx/commit/e72860e6255af3b99545fafe5d6604bb304000aa

6 years agoKeep test path under max path when test method names are long (dotnet/corefx#31396)
Dan Moseley [Sat, 28 Jul 2018 00:29:49 +0000 (17:29 -0700)]
Keep test path under max path when test method names are long (dotnet/corefx#31396)

* Keep test path under max path

* Feedback

* Truncate GUID

Commit migrated from https://github.com/dotnet/corefx/commit/40170c6b50261b28c78a3b5558d1b2757cbdd2fa

6 years agoUpdate CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26727...
dotnet-maestro-bot [Fri, 27 Jul 2018 18:35:22 +0000 (11:35 -0700)]
Update CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-26727-01, preview1-26727-04, preview1-26727-01, beta-26727-00, beta-26727-00, respectively (dotnet/corefx#31411)

Commit migrated from https://github.com/dotnet/corefx/commit/129c5f6b24016ccb1142aef648926e94ccbbefed

6 years agoAdd Marshal API Marshal.GetExceptionPointers (dotnet/corefx#31169)
Luqun Lou [Fri, 27 Jul 2018 16:38:22 +0000 (09:38 -0700)]
Add Marshal API Marshal.GetExceptionPointers (dotnet/corefx#31169)

Commit migrated from https://github.com/dotnet/corefx/commit/f97d4ca98c46bb8914d74e5ab6c349e0e1dedbbc

6 years agoAdd T61String support to AsnReader.
Filip Navara [Fri, 27 Jul 2018 15:30:52 +0000 (17:30 +0200)]
Add T61String support to AsnReader.

Commit migrated from https://github.com/dotnet/corefx/commit/579c40f1c1f7e5b62ffa949c6c1e26829e5c0f07

6 years agoSeal Appdomain to match NETFX (dotnet/corefx#31399)
Dan Moseley [Fri, 27 Jul 2018 12:17:24 +0000 (05:17 -0700)]
Seal Appdomain to match NETFX (dotnet/corefx#31399)

Commit migrated from https://github.com/dotnet/corefx/commit/b9d82ae7fd6912b6c0c758e47d0824689adaeafc

6 years agoCleanup CAS attributes (dotnet/corefx#31386)
Marco Rossignoli [Fri, 27 Jul 2018 00:37:49 +0000 (02:37 +0200)]
Cleanup CAS attributes (dotnet/corefx#31386)

* cleanup CAS attributes

* fix spaces

Commit migrated from https://github.com/dotnet/corefx/commit/a9d16d97206aa8d2aead52194f40acdd3c85ca28

6 years agoDo not expand stacktraces when completion exception is rethrown multiple times (dotne...
Pavel Krymets [Thu, 26 Jul 2018 22:20:23 +0000 (15:20 -0700)]
Do not expand stacktraces when completion exception is rethrown multiple times (dotnet/corefx#31375)

Commit migrated from https://github.com/dotnet/corefx/commit/24c278065c55ee0afa08322b1794f08533634897

6 years agoUpdate CoreClr, CoreSetup to preview1-26726-04, preview1-26726-01, respectively ...
dotnet-maestro-bot [Thu, 26 Jul 2018 20:45:34 +0000 (13:45 -0700)]
Update CoreClr, CoreSetup to preview1-26726-04, preview1-26726-01, respectively (dotnet/corefx#31385)

Commit migrated from https://github.com/dotnet/corefx/commit/f36495b1ceb1fbe7f29c765d08367506db5e9f70

6 years agoMove the Export method from ICertificatePal to ICertificatePalCore
Jeremy Barton [Thu, 26 Jul 2018 15:24:38 +0000 (08:24 -0700)]
Move the Export method from ICertificatePal to ICertificatePalCore

Conflicting changes.

Commit migrated from https://github.com/dotnet/corefx/commit/f391820c4808bcb02c7b3dd88b684f36a0a98b6a

6 years agoFix HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP setup
Eden [Thu, 26 Jul 2018 14:45:18 +0000 (23:45 +0900)]
Fix HAVE_SHM_OPEN_THAT_WORKS_WELL_ENOUGH_WITH_MMAP setup

Commit migrated from https://github.com/dotnet/corefx/commit/24d18a33552e5488ab584051719ca0e95e193917

6 years agoSplit ICertificatePal across the needs for X509Certificate and X509Certificate2
Filip Navara [Thu, 26 Jul 2018 14:40:28 +0000 (16:40 +0200)]
Split ICertificatePal across the needs for X509Certificate and X509Certificate2

Facilitates Mono code reuse, where the two classes (and their PAL interfaces) are in different assemblies.

Commit migrated from https://github.com/dotnet/corefx/commit/963e4ffe9e39d29723899823d04e79321d594221

6 years agoUpdate BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to...
dotnet-maestro-bot [Thu, 26 Jul 2018 08:52:06 +0000 (01:52 -0700)]
Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview1-03025-01, preview1-26726-01, preview1-26725-04, preview1-26725-04, beta-26726-00, beta-26726-00, respectively (dotnet/corefx#31345)

Commit migrated from https://github.com/dotnet/corefx/commit/b93095e8fd025747cb1f9686ed4851dc71b9960e

6 years agoChanged internal value to readonly for primitive types (dotnet/corefx#30717)
Phil Garcia [Thu, 26 Jul 2018 02:50:08 +0000 (19:50 -0700)]
Changed internal value to readonly for primitive types (dotnet/corefx#30717)

* Changed internal value to readonly for primitive types

* Updated ApiCompatBaseline.uapaot.txt

Commit migrated from https://github.com/dotnet/corefx/commit/43f0fd2465d3a10500da7cae74f811b9c7be73f4

6 years agoUse CertCloseStore from Common Interop in X509Certificates (dotnet/corefx#31339)
Adam Gauthier [Thu, 26 Jul 2018 01:20:39 +0000 (21:20 -0400)]
Use CertCloseStore from Common Interop in X509Certificates (dotnet/corefx#31339)

Commit migrated from https://github.com/dotnet/corefx/commit/75f6028c60d6c36d75f1a5999492b2c0812337ad

6 years agoUse CertFreeCertificateContext from Common Interop in X509Certificates
Adam Gauthier [Wed, 25 Jul 2018 23:45:31 +0000 (19:45 -0400)]
Use CertFreeCertificateContext from Common Interop in X509Certificates

Commit migrated from https://github.com/dotnet/corefx/commit/0c044218122730ff2f91e771ee3e372b89e6e759

6 years agoAdd ICertificatePal.Export() and use it in X509Certificate.Export().
Martin Baulig [Wed, 25 Jul 2018 23:44:37 +0000 (19:44 -0400)]
Add ICertificatePal.Export() and use it in X509Certificate.Export().

Partial layering breakup to help with Mono code sharing.

Commit migrated from https://github.com/dotnet/corefx/commit/c9176baf0080fa5296855295cd06fb61d13e4302

6 years agoUsa AsnReader.ThrowIfNotEmpty instead of explicit checks.
Filip Navara [Wed, 25 Jul 2018 22:26:03 +0000 (00:26 +0200)]
Usa AsnReader.ThrowIfNotEmpty instead of explicit checks.

Commit migrated from https://github.com/dotnet/corefx/commit/90aed6e851d7ad2d7374b294cca601dbaeb01083

6 years agoMake CertificateData.ReadReverseRdns() accept T61String.
Martin Baulig [Wed, 25 Jul 2018 22:22:01 +0000 (18:22 -0400)]
Make CertificateData.ReadReverseRdns() accept T61String.

Commit migrated from https://github.com/dotnet/corefx/commit/5a1c99a35456fee918da5f712dd3f078c86d1709

6 years agoMerge pull request dotnet/corefx#31211 from keeratsingh/gh_31082_ExistingTransaction_...
Keerat Singh [Wed, 25 Jul 2018 22:21:33 +0000 (15:21 -0700)]
Merge pull request dotnet/corefx#31211 from keeratsingh/gh_31082_ExistingTransaction_SqlBulkCopy

[Fix] GH 31082 'Unexpected existing transaction' exception occurs when use SqlBulkCopy

Commit migrated from https://github.com/dotnet/corefx/commit/bf2083a75d65038d9e6f14b160853a0adbafd224

6 years agoUse ReferencePath instead of Reference so it contain the project reference. (dotnet...
Huangli Wu [Wed, 25 Jul 2018 22:20:53 +0000 (15:20 -0700)]
Use ReferencePath instead of Reference so it contain the project reference. (dotnet/corefx#31234)

Commit migrated from https://github.com/dotnet/corefx/commit/9824353f83a5d45aef94b732a13f097b836a4687

6 years agoSyncronize cancellation in ReadAsyncCompletesIfFlushAsyncCanceledMidFlush (dotnet...
Pavel Krymets [Wed, 25 Jul 2018 22:07:05 +0000 (15:07 -0700)]
Syncronize cancellation in ReadAsyncCompletesIfFlushAsyncCanceledMidFlush (dotnet/corefx#31365)

Commit migrated from https://github.com/dotnet/corefx/commit/dd4a30881d8c0979c65cba7bfdf1f3ab27b3f79b

6 years agoAdded Tests and packaging for System.Windows.Extensions. (dotnet/corefx#31334)
Anirudh Agnihotry [Wed, 25 Jul 2018 21:58:16 +0000 (14:58 -0700)]
Added Tests and packaging for System.Windows.Extensions. (dotnet/corefx#31334)

* Adding packaging for System.Windows.Extensions

* Implemenation fixed and tests added

* feedback and dead code removed

Commit migrated from https://github.com/dotnet/corefx/commit/2de91853bcc016958950c42e27cfa40e7d84cabe

6 years agoMerge pull request dotnet/corefx#31366 from dotnet/max-retry-increase
Matt Galbraith [Wed, 25 Jul 2018 21:04:30 +0000 (14:04 -0700)]
Merge pull request dotnet/corefx#31366 from dotnet/max-retry-increase

Increase retry count for Windows test runs

Commit migrated from https://github.com/dotnet/corefx/commit/f5e69a38ef312a1cdc33da96738bba4f1699f626

6 years agoIncrease retry count
Matt Galbraith [Wed, 25 Jul 2018 18:07:04 +0000 (11:07 -0700)]
Increase retry count

Add /p:MaxRetryCount=3 to get more retries for flaky OS issues

Commit migrated from https://github.com/dotnet/corefx/commit/18dd0c4b6ef98eb7ff135a75961ad90effcfa877

6 years agoPort and test VB Information, DoubleType, DecimalType, Versioned (dotnet/corefx#31252)
Bruce Bowyer-Smyth [Wed, 25 Jul 2018 17:53:30 +0000 (03:53 +1000)]
Port and test VB Information, DoubleType, DecimalType, Versioned (dotnet/corefx#31252)

* Port from referencesource

* Cleanup and tests

* Remove parameter name validation

* Address PR feedback

* Address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/5f635b214b74e69324c65d0f1863653b6249e7d4

6 years agoUpdated some incorrect grammar (dotnet/corefx#31356)
David Perfors [Wed, 25 Jul 2018 16:35:02 +0000 (18:35 +0200)]
Updated some incorrect grammar (dotnet/corefx#31356)

Commit migrated from https://github.com/dotnet/corefx/commit/131062cf61a209d99af8aee0209348ce6f67c8b7

6 years agoExpose SpinWait.SpinOnce(int sleep1Threshold) overload (dotnet/corefx#29989)
Koundinya Veluri [Wed, 25 Jul 2018 14:06:17 +0000 (07:06 -0700)]
Expose SpinWait.SpinOnce(int sleep1Threshold) overload (dotnet/corefx#29989)

Expose SpinWait.SpinOnce(int sleep1Threshold) overload

Depends on https://github.com/dotnet/coreclr/pull/18204

To allow customizing the spin count threshold for Sleep(1) usage, and to allow disabling the use of Sleep(1).

API review: https://github.com/dotnet/corefx/issues/29623
Part of fix for https://github.com/dotnet/corefx/issues/29595

Commit migrated from https://github.com/dotnet/corefx/commit/ee03cd041fdf8ac44b01e20b1225d2e2207cb13e

6 years agoAdded GetInt32 to RandomNumberGenerator. (dotnet/corefx#31243)
Kevin Jones [Wed, 25 Jul 2018 02:55:58 +0000 (22:55 -0400)]
Added GetInt32 to RandomNumberGenerator. (dotnet/corefx#31243)

Fixes 30873.

Commit migrated from https://github.com/dotnet/corefx/commit/928873f0027f3c4fbea94c501990a7037ad27066

6 years agoNo repro for issue dotnet/corefx#14750 - enable test (dotnet/corefx#31337)
Paulo Janotti [Tue, 24 Jul 2018 22:50:28 +0000 (15:50 -0700)]
No repro for issue dotnet/corefx#14750 - enable test (dotnet/corefx#31337)

Commit migrated from https://github.com/dotnet/corefx/commit/f8928fec18a2f326b9a37dc4f3ddc8dab6b36e23