Skip to content

Fix MethodDesc::CbStackPop for string ctors on x86#63391

Merged
jkotas merged 1 commit intodotnet:mainfrom
janvorli:fix-methoddesc-cbstackpop-for-string-ctor
Jan 5, 2022
Merged

Fix MethodDesc::CbStackPop for string ctors on x86#63391
jkotas merged 1 commit intodotnet:mainfrom
janvorli:fix-methoddesc-cbstackpop-for-string-ctor

Conversation

@janvorli
Copy link
Member

@janvorli janvorli commented Jan 5, 2022

This method was not taking into account the fact that string ctors
don't have dummy this argument after a recent change. Stack walking
in cases where prestub for the ctor was invoked resulted in a wrong
unwinding of ESP for ctors with more than one argument.

This change fixes it by removing "has this" flag from the signature
before getting the stack arguments size.

Close #63003

This method was not taking into account the fact that string ctors
don't have dummy this argument after a recent change. Stack walking
in cases where prestub for the ctor was invoked resulted in a wrong
unwinding of ESP for ctors with more than one argument.

This change fixes it by removing "has this" flag from the signature
before getting the stack arguments size.
@janvorli janvorli requested a review from jkotas January 5, 2022 13:10
@janvorli janvorli self-assigned this Jan 5, 2022
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thank you!

@jkotas jkotas merged commit bd6a64b into dotnet:main Jan 5, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Feb 4, 2022
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.

Test failure Interop\\StringMarshalling\\VBByRefStr\\VBByRefStrTest\\VBByRefStrTest.cmd

3 participants