Skip to content

Commit 869bcb2

Browse files
committed
---
yaml --- r: 6767 b: refs/heads/master c: ab4f35c h: refs/heads/master i: 6765: 9a5da9f 6763: e75cd48 6759: b5a3483 6751: 271d840 v: v3
1 parent 1baf974 commit 869bcb2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 121c4201844c1bec4a8f2a4450e4b9330ee9bf28
2+
refs/heads/master: ab4f35c1f1247bd745378621a22340cbf8b7030d

trunk/src/rt/rust_upcall.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@
1919
// correctly. Strategically placed at entry to upcalls because they begin on
2020
// the rust stack and happen frequently enough to catch most stack changes,
2121
// including at the beginning of all landing pads.
22+
// FIXME: Only seems to work on linux
23+
#ifdef __linux__
2224
extern "C" void
2325
check_stack_alignment() __attribute__ ((aligned (16)));
26+
#else
27+
static void check_stack_alignment() { }
28+
#endif
2429

2530
#define SWITCH_STACK(A, F) upcall_call_shim_on_c_stack((void*)A, (void*)F)
2631

0 commit comments

Comments
 (0)