Skip to content

Commit c69ac7c

Browse files
MichalStrehovskySergio0694
authored andcommitted
Fix calling convention mismatch in GC callouts (#110685)
Fixes #110607. The native side expected fastcall, managed side didn't. Filed #110684 on the test hole. We would have caught it during x86 bringup if this had _any_ tests since this is a guaranteed stack corruption and crash.
1 parent 1033fb3 commit c69ac7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/nativeaot/Runtime/RestrictedCallouts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ class RestrictedCallouts
9797
static CrstStatic s_sLock;
9898

9999
// Prototypes for the callouts.
100-
typedef void (F_CALL_CONV * GcRestrictedCallbackFunction)(uint32_t uiCondemnedGeneration);
100+
typedef void (* GcRestrictedCallbackFunction)(uint32_t uiCondemnedGeneration);
101101
typedef CLR_BOOL (* HandleTableRestrictedCallbackFunction)(Object * pObject);
102102
};

0 commit comments

Comments
 (0)