Skip to content
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

Function pointers and GC #37262

Closed
omariom opened this issue Jun 1, 2020 · 2 comments
Closed

Function pointers and GC #37262

omariom opened this issue Jun 1, 2020 · 2 comments
Labels
area-System.Runtime.InteropServices question Answer questions and provide assistance, not an issue with source code or documentation. untriaged New issue has not been triaged by the area owner

Comments

@omariom
Copy link
Contributor

omariom commented Jun 1, 2020

C# is getting functions pointers.
I checked what code is generated for them.

For PInvoke calls JIT adds a check for parking the threads executing managed code.
For callis it doesn't do anything special.

What are possible implications? Can calling an external method via calli in a loop, for example, delay GC?

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Runtime untriaged New issue has not been triaged by the area owner labels Jun 1, 2020
@omariom
Copy link
Contributor Author

omariom commented Jun 1, 2020

Aaah.. thaat's why 😮

@jkotas jkotas added question Answer questions and provide assistance, not an issue with source code or documentation. area-System.Runtime.InteropServices and removed area-System.Runtime labels Jun 1, 2020
@jkotas jkotas closed this as completed Jun 1, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices question Answer questions and provide assistance, not an issue with source code or documentation. untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants