Skip to content

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Sep 2, 2021

Fixes #12085

@eiriktsarpalis
Copy link
Member

Thanks! Will this make it to the 6.0 release?

@dsyme
Copy link
Contributor Author

dsyme commented Sep 2, 2021

This should also go into release/dev17.0 (if we're not merging main across automatically)

@dsyme
Copy link
Contributor Author

dsyme commented Sep 2, 2021

Thanks! Will this make it to the 6.0 release?

Yes I believe so

/// We can't tailcall to methods taking byrefs. This helper helps search for them
let IsILTypeByref = function ILType.Byref _ -> true | _ -> false
let rec IsILTypeByref inp =
match inp with
Copy link
Contributor

Choose a reason for hiding this comment

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

Later we should use stripILModifiedFromTy :

match stripILModifiedFromTy inp with
| ILType.Byref _ -> true
| _ -> false

@TIHan TIHan merged commit 791d4dd into dotnet:main Sep 2, 2021
@dsyme
Copy link
Contributor Author

dsyme commented Sep 2, 2021

@TIHan We should scan the whole codebase for pattern matchin on ILType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segmentation fault when passing byref parameters to tailcall methods

3 participants