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

SPMI: Implement fallback schema layout #78594

Merged
merged 3 commits into from
Nov 21, 2022
Merged

Conversation

jakobbotsch
Copy link
Member

Fallback to doing actual layout of the schema data when the schema does not match the recorded schema. This ensures replays are still consistent with the recording in cases where the JIT and environment variables match, but that we can still succeed a replay on changes to these.

Fix #74718

Fallback to doing actual layout of the schema data when the schema does
not match the recorded schema. This ensures replays are still consistent
with the recording in cases where the JIT and environment variables
match, but that we can still succeed a replay on changes to these.

Fix dotnet#74718
@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 Nov 19, 2022
@ghost ghost assigned jakobbotsch Nov 19, 2022
@ghost
Copy link

ghost commented Nov 19, 2022

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

Issue Details

Fallback to doing actual layout of the schema data when the schema does not match the recorded schema. This ensures replays are still consistent with the recording in cases where the JIT and environment variables match, but that we can still succeed a replay on changes to these.

Fix #74718

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch
Copy link
Member Author

jakobbotsch commented Nov 19, 2022

I still need to double check why inlining has an impact on the requested schema.

@jakobbotsch
Copy link
Member Author

I still need to double check why inlining has an impact on the requested schema.

Hmm, I actually cannot reproduce this anymore, even with this change reverted. @SingleAccretion does it still reproduce for you?

@SingleAccretion
Copy link
Contributor

@jakobbotsch just checked, it doesn't.

@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib

@jakobbotsch
Copy link
Member Author

/azp run runtime-coreclr superpmi-asmdiffs-checked-release

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jakobbotsch
Copy link
Member Author

@EgorBo can you take a look at this?

Copy link
Member

@EgorBo EgorBo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, curious why we didn't see any asserts/crashes before

@jakobbotsch
Copy link
Member Author

Interesting, curious why we didn't see any asserts/crashes before

It's pretty rare that the schema is different, but we have seen those in a few cases

@jakobbotsch jakobbotsch merged commit 4f0f5b5 into dotnet:main Nov 21, 2022
@jakobbotsch jakobbotsch deleted the fix-74718 branch November 21, 2022 15:41
@ghost ghost locked as resolved and limited conversation to collaborators Dec 21, 2022
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.

SPMI with JitNoInline=1 asserts in instrumentation code
3 participants