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

JIT: Prezero memory for RefPosition and Interval #103707

Closed

Conversation

jakobbotsch
Copy link
Member

Swap out the jitstd::list used for RefPosition and Interval to a
new PreZeroedList that allocates memory in chunks and zeroes it all at
once. Then get rid of all the RefPosition and Interval field zeroing
done as part of their constructors.

Swap out the `jitstd::list` used for `RefPosition` and `Interval` to a
new `PreZeroedList` that allocates memory in chunks and zeroes it all at
once. Then get rid of all the `RefPosition` and `Interval` field zeroing
done as part of their constructors.
@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 Jun 19, 2024
Copy link
Contributor

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

@jakobbotsch
Copy link
Member Author

I don't think there is a way to do this in a well-defined way in C++ until C++23's std::start_lifetime_as.
We do rely on similar undefinedness for instrDesc's zeroing, so maybe it still wouldn't be that bad.

@jakobbotsch
Copy link
Member Author

TP improvements look like:
image
image

Still not clear if the existing zeroing actually has any impact on performance.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant