Skip to content

Commit 7a95474

Browse files
github-actions[bot]MichalStrehovskyjeffschwMSFT
authored
[release/9.0-staging] Fix calling convention mismatch in GC callouts (#111105)
* Fix calling convention mismatch in GC callouts Fixes #110607. The native side expects fastcall. 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. * Change native side instead --------- Co-authored-by: Michal Strehovský <[email protected]> Co-authored-by: Jeff Schwartz <[email protected]>
1 parent 5b8b063 commit 7a95474

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)