Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Store the relocation offset delta in the code stream #2271

Merged
merged 1 commit into from
Nov 27, 2016
Merged

Store the relocation offset delta in the code stream #2271

merged 1 commit into from
Nov 27, 2016

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Nov 26, 2016

RyuJIT depends on the relocation offset delta to be stored in the code stream because of it applies additional fixups to it.

Tweak the list of Top200 tests to include coverage for this issue.

Fixes #2254

{
fixed (void* location = &blob[i])
{
delta = Relocation.ReadValue(reloc.RelocType, location);
Copy link
Member Author

Choose a reason for hiding this comment

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

This method will need to be completely rewritten for efficiency - I did not spent time on making this fix look pretty.

@jkotas
Copy link
Member Author

jkotas commented Nov 26, 2016

@MichalStrehovsky PTLA

RyuJIT depends on the relocation offset delta to be stored in the code stream because of it applies additional fixups to it.

Tweak the list of Top200 tests to include coverage for this issue.

Fixes #2254
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Looks good!

@jkotas jkotas merged commit da458b2 into dotnet:master Nov 27, 2016
@jkotas jkotas deleted the issue-2254 branch November 27, 2016 00:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FailFast: (InternalError): Runtime internal error
3 participants