Commit Graph
19 Commits
Author SHA1 Message Date
Stephen Toub 6e335aa872 Enable several StyleCopAnalyzers (dotnet/corefx#39921)
* Fix ordering of keywords in member signatures

* Add StyeCop.Analyzers

Most rules are disabled.  Many of them we'll want to leave disabled, however there are a handful it'll be good to enable over time.

* Use built-in type alias

* Fix straggling stylecop warnings in all configurations

* Replace tabs with spaces


Commit migrated from https://github.com/dotnet/corefx/commit/a12c557a72988070b8624cc7ecc46899629895c4
2019-07-31 19:10:59 -04:00
Santiago Fernandez Madero f99391a048 Add nullable annotations to System.Threading.ThreadPool ref assembly. (dotnet/corefx#38239)
* Re-generate System.Threading.ThreadPool ref assembly against implementation

* Enable nullable context on System.Threading.ThreadPool

* Add nullable annotations to System.Threading.ThreadPool


Commit migrated from https://github.com/dotnet/corefx/commit/040b28ca57fbe57db32a0b56c977d4956991e34c
2019-06-14 18:55:23 -07:00
Koundinya Veluri 8ea83020c4 Expose and test APIs for some threading metrics (CoreFX) (dotnet/corefx#37401)
* Expose and test APIs for some threading metrics (CoreFX)

- API review: https://github.com/dotnet/corefx/issues/35500
- Depends on https://github.com/dotnet/coreclr/pull/22754, https://github.com/dotnet/corert/pull/7066

* Separate and expose pending local vs global work item count

* Remove local/global variants of PendingWorkItemCount

* Remove unrelated test

* Add test for a fix to ThreadLocal.Values property throwing NullReferenceException when disposed

Fix is in https://github.com/dotnet/corert/pull/7066

* Fix build

* Fix test

* Add API compat baselines for uapaot

* Fix test

* Use RemoteExecutor for MetricsTest

* Address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/34fe566b6f6bd739a876e7e1dc48cf631647e5d7
2019-05-09 06:44:39 -04:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Stephen Toub 42ba83bf19 Expose\test generic UnsafeQueueUserWorkItem overload (dotnet/corefx#33637)
* Expose\test generic UnsafeQueueUserWorkItem overload

* Suppress ApiCompat warning


Commit migrated from https://github.com/dotnet/corefx/commit/a3cef9c4c589a414a4add343f154bc8eaa9e21fd
2018-11-27 14:55:27 -05:00
Stephen Toub d8493736a7 Expose ThreadPool.UnsafeQueueUserWorkItem(IThreadPoolWorkItem, bool) (dotnet/corefx#32859)
Commit migrated from https://github.com/dotnet/corefx/commit/e67b42976c48b4ac581c11f6cefcb935208deca2
2018-10-23 21:04:12 -07:00
Stephen Toub 41524bf7b8 Change new ThreadPool.QueueUserWorkItem overload to be generic
Commit migrated from https://github.com/dotnet/corefx/commit/3980e74d867f260702310d59773fa1d5a28b81f9
2018-02-28 08:13:58 -05:00
Jan Kotas 27d98c0776 Delete unnecessary SecurityCritical and SecuritySafeCritical annotations
Commit migrated from https://github.com/dotnet/corefx/commit/0bb106232745aedfc0d0c5a84ff2b244bf190317
2017-11-19 10:37:38 -08:00
Stephen Toub 5e94726b83 Expose/test ThreadPool.QueueUserWorkItem(..., bool preferLocal) (dotnet/corefx#24396)
Commit migrated from https://github.com/dotnet/corefx/commit/59f127d39937a97b5b2bce27c70785b1cde2ade0
2017-10-03 13:37:02 -04:00
Jeremy Kuhne 9b64ad7df6 Revert "Strip out SecurityCritical attributes" (dotnet/corefx#14393)
Commit migrated from https://github.com/dotnet/corefx/commit/e0aa1e7697fb66057ed4f0be1b93e9adccd1b8c5
2016-12-09 18:06:12 -08:00
Jeremy Kuhne 7fc1664e7e Strip out SecurityCritical attributes (dotnet/corefx#14383)
They don't have any function in Core.

Stripped via regex:

^.*\[(System\.Security\.)?Security(Safe)?Critical(Attribute)?\](\s*//.*|\s*)$[\r\n]*

Commit migrated from https://github.com/dotnet/corefx/commit/1abd60c9f57777e1fcb3b0727285d7478a1c7788
2016-12-09 17:48:55 -08:00
Stephen Toub 757582b621 More ordering consistency
- "static unsafe" instead of "unsafe static"
- "extern unsafe" instead of "unsafe extern"
- "protected internal" instead of "internal protected"


Commit migrated from https://github.com/dotnet/corefx/commit/9c06da6a34fcefa6fb37776ac57b80730e37387c
2016-12-09 10:27:50 -05:00
Koundinya Veluri da77e87b10 Expose some threading-related things for ns2.0 (dotnet/corefx#13722)
Expose some threading-related things for ns2.0

Fixes dotnet/corefxdotnet/corefx#11638
Fixes dotnet/corefxdotnet/corefx#11633
Fixes dotnet/corefxdotnet/corefx#11635
Fixes dotnet/corefxdotnet/corefx#11636
Fixes dotnet/corefxdotnet/corefx#13484

Commit migrated from https://github.com/dotnet/corefx/commit/1ee59d81e35fb9576ba37d0071388da0d8a6cc5e
2016-11-18 14:37:11 -08:00
Rama Krishnan Raghupathy c4a7c97f4c Adding Overlapped Class to Threading
Commit migrated from https://github.com/dotnet/corefx/commit/963ab7a366db240b5dde1c5dece3a4938fbaea4a
2016-11-01 16:56:18 -07: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 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
stephentoub 685d9f5063 Add API review headers to ref files
Commit migrated from https://github.com/dotnet/corefx/commit/5240b324e50f9aabaa11d4b0c46acc34e370a724
2016-02-11 10:50:44 -05:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Eric St. John 77309d4821 Update the version of all assemblies
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions.  Assemblies with API differences
get a minor version bump.  Assemblies with only bugfixes get a build version
bump.

In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.

[tfs-changeset: 1514419]


Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae
2015-08-13 17:07:57 -07:00