Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
VM: Include generic instantiations in stack frames #96440
VM: Include generic instantiations in stack frames #96440
Changes from 11 commits
1e21c17
44f2275
250472a
dbc1445
a804a43
dc44a0d
869f439
fbe823e
2048e41
9ec2532
504c3fe
69ca3eb
fa307d5
93ee9a7
60d2c0c
a1598bb
f6e0743
e6cc527
a6d49b0
37502b1
c2742cc
359e396
07d86bb
f3118e1
70059c5
54790f7
8e9c556
6cc5a6a
bd83c8a
5465ff4
1a6c019
58ec764
657e2b3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@AndyAyersMS - Do you know if the JIT is currently preserving the generic context when optimizations are disabled somehow? I expected this would be something we already do but looking around at how CORINFO_GENERICS_CTXT_KEEP_ALIVE is used now that didn't seem to be the case.
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.
It is not.
Generally speaking the generic context is only kept alive if we see the
CORINFO_GENERICS_CTXT_KEEP_ALIVE
flag from the jithost, or if there is a runtime lookup that uses the context.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.
This test will likely fail in native aot outerloop testing.
Implementing this level of detail on native aot side is not possible without a size regression because we simply don't have this information in the file format. It is not an easy fix on native aot side.
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.
I expect such information only being emitted for methods with optimization disabled. So there shouldn't be any size regression for production.