Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix ARM bad GC info for CpObj - #14600

Merged
BruceForstall merged 1 commit into
dotnet:masterfrom
BruceForstall:FixArmBadGCInfoForCpObj
Oct 20, 2017
Merged

BruceForstall merged 1 commit into
dotnet:masterfrom
BruceForstall:FixArmBadGCInfoForCpObj

Conversation

@BruceForstall

Copy link
Copy Markdown

In the case where the dst lives on the stack, after the first
gcref/byref was copied, we never set the type back to non-GC
for subsequent copies using the same temp register.

In the case where the dst lives on the stack, after the first
gcref/byref was copied, we never set the type back to non-GC
for subsequent copies using the same temp register.
@BruceForstall

Copy link
Copy Markdown
Author

@rartemev I looked into your change #14559 (it appears you were investigating function GetContainingSectionIndex in Tests.lst=_dbgthrow.cmd_7830), and I think this PR is the correct change. It causes the temp reg to be "killed", or marked non-GCref. E.g.:

IN000c: 00003C  A801           add     r0, sp, 4    // [V04 loc2]
IN000d: 00003E  4639           mov     r1, r7
gcrReg +[r2]
IN000e: 000040  F851 2B04      ldr     r2, [r1!+4]
IN000f: 000044  F840 2B04      str     r2, [r0!+4]
gcrReg -[r2]
IN0010: 000048  F851 2B04      ldr     r2, [r1!+4]
IN0011: 00004C  F840 2B04      str     r2, [r0!+4]

Before this change, the gcrReg -[r2] was not there, so we kept thinking r2 was a gc ref.

@BruceForstall

Copy link
Copy Markdown
Author

@dotnet/jit-contrib PTAL
cc @sjsinju

@sdmaclea sdmaclea left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks Bruce, I think I made this mistake when I added the GC info.

LGTM

@rartemev

Copy link
Copy Markdown

Thank you for help #14601

@rartemev

rartemev commented Oct 19, 2017 •

Copy link
Copy Markdown

@BruceForstall I know. I realize it, but since I was fighting with our great Visual Studio almost during the whole day I wasn't able to check it and update the PR.

@BruceForstall
BruceForstall merged commit 92b6b7d into dotnet:master Oct 20, 2017
@BruceForstall
BruceForstall deleted the FixArmBadGCInfoForCpObj branch October 20, 2017 03:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants