mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
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.
This commit is contained in:
committed by
Graydon Hoare
parent
3e32f6623c
commit
887d970fee
@@ -73,13 +73,11 @@ MORESTACK:
|
||||
|
||||
// During unwinding we want to skip our caller since it's not
|
||||
// a complete frame and will make the unwinder sad
|
||||
#if defined(__linux__)
|
||||
// Don't understand this line
|
||||
.cfi_offset 16, 0
|
||||
// Tell the unwinding where to get the stack pointer for
|
||||
// our grandparent frame
|
||||
.cfi_offset %rsp, -24
|
||||
#endif
|
||||
|
||||
// Save the grandparent stack pointer for the unwinder
|
||||
leaq 16(%rbp), %rax
|
||||
@@ -162,4 +160,4 @@ MORESTACK:
|
||||
#else
|
||||
MORESTACK:
|
||||
ret
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user