Skip to content

Commit 887d970

Browse files
brsongraydon
authored andcommitted
rt: Make unwinding through __morestack work on mac
Had to bump the min stack size in some of the tests from 256 bytes to 1024 bytes. Not sure why yet.
1 parent 3e32f66 commit 887d970

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rt/arch/x86_64/morestack.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,11 @@ MORESTACK:
7373

7474
// During unwinding we want to skip our caller since it's not
7575
// a complete frame and will make the unwinder sad
76-
#if defined(__linux__)
7776
// Don't understand this line
7877
.cfi_offset 16, 0
7978
// Tell the unwinding where to get the stack pointer for
8079
// our grandparent frame
8180
.cfi_offset %rsp, -24
82-
#endif
8381

8482
// Save the grandparent stack pointer for the unwinder
8583
leaq 16(%rbp), %rax
@@ -162,4 +160,4 @@ MORESTACK:
162160
#else
163161
MORESTACK:
164162
ret
165-
#endif
163+
#endif

0 commit comments

Comments
 (0)