-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Access GC settings at runtime #8700
Comments
you can know whether concurrent is enabled by checking for GCLatencyMode - if it's GCLatencyMode.Batch it means it's not enabled. This is exposed because you can change it at runtime. can you please tell me what you would do with something like RetainVM? |
I just need to print it out on startup of the app for informational
purposes.
pt., 4.08.2017, 21:19 użytkownik Maoni Stephens <notifications@github.com>
napisał:
… you can know whether concurrent is enabled by checking for GCLatencyMode -
if it's GCLatencyMode.Batch it means it's not enabled. This is exposed
because you can change it at runtime.
can you please tell me what you would do with something like RetainVM?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/dotnet/coreclr/issues/13224#issuecomment-320332204>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABeGreGiaaXFHrQcb0h9reILdc020js4ks5sU27OgaJpZM4OtgPP>
.
|
Ahh, then I view this more like a general "how do we expose settings from the runtime" than a GC specific thing. @KrzysztofCwalina do you have an opinion for exposing runtime settings from APIs? settings can be RW or RO. |
Apparently @KrzysztofCwalina has been having issues with GH notifications as well so he didn't see this - I just emailed him about it. |
I would simply open an API addition proposal with all the members you think we should add. You can put all the members in either GCSettings or RuntimeInformation, or any other type and we can have a discussion whats the best place for them at the API review. @terrajobst, could you point us to the doc describing the API addition process? |
the API additions/design process is at: https://aka.ms/apireview |
@gregolsky haven't heard from you in a while. I will close the issue for now. if you still need help please re-open it. |
We would like to access runtime GC settings programmatically. The only one we could find was the
ServerGarbageCollection
setting which is accessible through:https://github.com/dotnet/coreclr/blob/release/2.0.0/src/mscorlib/src/System/Runtime/GcSettings.cs
Can we somehow obtain the value of
ConcurrentGarbageCollection
andRetainVMGarbageCollection
settings at runtime?The text was updated successfully, but these errors were encountered: