-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Restore original stack ref enumeration behavior #84034
Conversation
The previous change to ICorDebugGCReferenceEnum accidently inverted the logic for interior pointers.
Tagging subscribers to this area: @tommcdon Issue DetailsThe previous change to ICorDebugGCReferenceEnum accidently inverted the logic for interior pointers.
|
|
||
const SOSStackRefData &sosStackRef = mList.Get(i); | ||
if (sosStackRef.Flags & GC_CALL_INTERIOR) | ||
{ | ||
stackRefs[i].i64ExtraData = GC_CALL_INTERIOR; | ||
stackRefs[i].objHnd.SetDacTargetPtr(CLRDATA_ADDRESS_TO_TADDR(sosStackRef.Address)); | ||
stackRefs[i].pObject = CLRDATA_ADDRESS_TO_TADDR(sosStackRef.Object) | 1; |
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.
So i64ExtraData no longer needs to be set to GC_CALL_INTERIOR in this branch?
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.
Or either branch?
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.
The original behavior was that i64ExtraData
was always set to 0, for all kinds of stack pointers. (It probably should be set, but it's not.) Setting it to 0 in both cases just makes sure we preserve the previous behavior that VS might have taken a dependency on.
I'm solving this a different way in the upcoming change to improve performance. (That PR will come later, after VS takes a look at it.)
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.
Sounds good.
The previous change to ICorDebugGCReferenceEnum accidently inverted the logic for interior pointers.