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

[release/8.0] JIT: Initialize jitstdout lazily #92212

Merged

Conversation

jakobbotsch
Copy link
Member

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 18, 2023
@ghost ghost assigned jakobbotsch Sep 18, 2023
@ghost
Copy link

ghost commented Sep 18, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

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.

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a 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

@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Sep 18, 2023
@jeffschwMSFT jeffschwMSFT added this to the 8.0.0 milestone Sep 18, 2023
@carlossanlop carlossanlop merged commit 7226388 into dotnet:release/8.0 Sep 18, 2023
@radical radical mentioned this pull request Sep 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 18, 2023
@jakobbotsch jakobbotsch deleted the avoid-stdout-io-on-startup-8.0 branch November 29, 2023 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants