This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Merge changes from TFS - #1591
Merged
Merged
Conversation
…Lib. This change is motivated by the Reflection API work. A number of reflection type need to be migrated to System.Private.CoreLib, including Assembly. Assembly has a dependency on Stream, so it will need to be moved as well. Stream, in turn, has a dependency on Task, and Task ends up requiring most of what is currently in System.Private.Threading. As such, this change pulls almost all of the types in System.Private.Threading into System.Private.CoreLib. Future changes will move Stream and Assembly. A few things to note about this change: 1.) System.Private.Threading depended on the Random type, which is found in CoreFX. I've simply copied the implementation of Random from the CoreFX repo. We'll need to decide if we want to retire that copy in favor of this one, or simply live with two copies. 2.) Type forwards have been put in place for all public types involved in the move for the sake of those assemblies that depend on System.Private.Threading directly instead of the System.Threading or System.Threading.Tasks contracts. 3.) To avoid pulling all of the ETW tracing from CoreFX into System.Private.CoreLib, I've defined a set of callbacks for ETW events in System.Private.CoreLib. The callbacks are implemented in System.Private.Threading, along with the existing EventSource implementations. The callbacks are hooked up using the EagerOrderedStaticConstructor attribute, and ILC has been updated to force the hookup code to be kept alive. 4.) A handful of public types are left in System.Private.Threading. Since they don't have to be moved and we need to keep System.Private.Threading around for the EventSources anyway, I'm planning on leaving them where they are. 5.) I've deleted a couple of internal types that weren't being used, as well as some string resources. These were dead code even before this migration. These changes have passed precheckin.bat on x86 ret. [tfs-changeset: 1619702]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.