-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[release/8.0] JIT: Initialize jitstdout lazily #92212
[release/8.0] JIT: Initialize jitstdout lazily #92212
Conversation
Avoid duplicating a handle and doing several I/O operations on the startup path. Fixes dotnet#91856 as a side effect.
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsBackport of #92123 to release/8.0 Customer ImpactThe JIT may crash the process during startup in custom hosting scenarios where TestingManually verified that the JIT code making I/O operations on stdout no longer runs (unless needed, e.g. due to RiskLow, make some code not run during startup/shutdown, and make some mechanical changes in code that does not run in release builds.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. this can be merged when ready
Backport of #92123 to release/8.0
Customer Impact
The JIT may crash the process during startup in custom hosting scenarios where
stdout
is closed before the JIT is initialized. Customer reported in #91856.Testing
Manually verified that the JIT code making I/O operations on stdout no longer runs (unless needed, e.g. due to
DOTNET_JitDisasm
being set).Risk
Low, make some code not run during startup/shutdown, and make some mechanical changes in code that does not run in release builds.