We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 121c420 commit ab4f35cCopy full SHA for ab4f35c
src/rt/rust_upcall.cpp
@@ -19,8 +19,13 @@
19
// correctly. Strategically placed at entry to upcalls because they begin on
20
// the rust stack and happen frequently enough to catch most stack changes,
21
// including at the beginning of all landing pads.
22
+// FIXME: Only seems to work on linux
23
+#ifdef __linux__
24
extern "C" void
25
check_stack_alignment() __attribute__ ((aligned (16)));
26
+#else
27
+static void check_stack_alignment() { }
28
+#endif
29
30
#define SWITCH_STACK(A, F) upcall_call_shim_on_c_stack((void*)A, (void*)F)
31
0 commit comments