You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Mono] Implement support for CallConvSuppressGCTransition #46451
The call to GetNextUintFunctionPointer returns a pointer to some unmanaged function. By declaring its calling convention as [Cdecl, SuppressGCTransition] (as opposed to [Cdecl]) the caller code does not need to do a managed-to-native transition when calling through fptr. All the rules of SuppressGCTransitionAttribute still apply: the native function can't block, throw exceptions, call back into the runtime, manipulate locks or other concurrency primitives, etc.
Re-enable Interop/PInvoke/Attributes/SuppressGCTransition/SuppressGCTransitionTest/ in src/tests/issues.targets once this is fixed.
Activity
lambdageek commentedon Dec 29, 2020
I'm not actually sure that mono today emits a GC transition for something like:
We need to complete #38480 - the
callicall for the last line in the example needs to emit a gc transition[tests] Remove SuppressGCTransitionTest from exclude list
Mono: support CallConvSuppressGCTransition
Mono: support CallConvSuppressGCTransition (#20746)
Mono: support CallConvSuppressGCTransition (#47006)