Repository navigation
JIT: Keep FieldSeq in AssertionDesc - #78616
Merged
Merged
Conversation
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsCloses #64876 This PR slightly changes memory layout in AssertionDsc (diff) while keeping total size the same (48 bytes) in order to save a reference to FieldSeq*. Example: static byte Foo()
{
ReadOnlySpan<byte> RVA = new byte[] { 1, 2, 3, 4, 5 };
return RVA[3];
}JITDump diff: https://www.diffchecker.com/HVVahKbd e.g.: This also is required to be able to fold constant index + RVA in future.
|
EgorBo
force-pushed
the
keep-fldseq-assertdesc
branch
from
November 21, 2022 11:27
3f2f953 to
9f57e78
Compare
jakobbotsch
reviewed
Nov 21, 2022
Co-authored-by: Jakob Botsch Nielsen <[email protected]>
EgorBo
marked this pull request as ready for review
November 22, 2022 10:14
Member
Author
|
@SingleAccretion @jakobbotsch please, take a look |
SingleAccretion
left a comment
Contributor
There was a problem hiding this comment.
LGTM modulo minor comments.
jakobbotsch
approved these changes
Nov 23, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Closes #64876
This PR slightly changes memory layout in AssertionDsc (diff) while keeping total size the same (48 bytes) in order to save a reference to FieldSeq*.
Example:
JITDump diff: https://www.diffchecker.com/HVVahKbd e.g.:
This also is required to be able to fold constant index + RVA in future.