Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify SOS' discovery/hosting of CoreCLR by using nethost + hostfxr #4772

Open
jkoritzinsky opened this issue Jul 2, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request sos

Comments

@jkoritzinsky
Copy link
Member

Background and Motivation

Today, SOS manually directly calls the CoreCLR hosting APIs on coreclr.dll/libcoreclr.so. This requires is to do a significant amount of work to locate CoreCLR and construct valid hosting parameters. This also means it does not benefit from any improvements in the hosting layer (of which there have been a few in recent years).

Proposed Feature

Rewrite hostcoreclr.cpp to use nethost (or libnethost) to discover and load the .NET runtime for the managed components of SOS.

Usage Examples

@jkoritzinsky jkoritzinsky added enhancement New feature or request sos labels Jul 2, 2024
@mikem8361 mikem8361 self-assigned this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sos
Projects
None yet
Development

No branches or pull requests

2 participants