File tree Expand file tree Collapse file tree 5 files changed +10
-22
lines changed Expand file tree Collapse file tree 5 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7bc34f63d85ee7d351b90320239fc48860f01da2
2
+ refs/heads/master: 7a8e73662dd0847ee351a3cdcaf27b0be8299902
Original file line number Diff line number Diff line change 47
47
#endif
48
48
49
49
MORESTACK:
50
- #ifdef __linux__
50
+ #if defined( __linux__) || defined(__APPLE__)
51
51
.cfi_startproc
52
52
#endif
53
53
54
54
pushl %ebp
55
- #ifdef __linux__
55
+ #if defined( __linux__) || defined(__APPLE__)
56
56
.cfi_def_cfa_offset 8
57
57
.cfi_offset %ebp , -8
58
58
#endif
59
59
movl %esp , %ebp
60
- #ifdef __linux__
60
+ #if defined( __linux__) || defined(__APPLE__)
61
61
.cfi_def_cfa_register %ebp
62
62
#endif
63
63
@@ -69,7 +69,7 @@ MORESTACK:
69
69
jz .L$bail
70
70
71
71
// During unwinding we want to skip our caller.
72
- #ifdef __linux__
72
+ #if defined( __linux__) || defined(__APPLE__)
73
73
// Don't understand this line. I think it means that
74
74
// the next frame's pc is the return address of our caller.
75
75
.cfi_offset 8 , 8
@@ -134,7 +134,7 @@ MORESTACK:
134
134
addl $16 ,%esp
135
135
136
136
popl %ebp
137
- #ifdef __linux__
137
+ #if defined( __linux__) || defined(__APPLE__)
138
138
.cfi_restore %ebp
139
139
.cfi_def_cfa %esp , 4
140
140
#endif
@@ -150,7 +150,7 @@ MORESTACK:
150
150
151
151
jmpl *%edx
152
152
153
- #ifdef __linux__
153
+ #if defined( __linux__) || defined(__APPLE__)
154
154
.cfi_endproc
155
155
#endif
156
156
Original file line number Diff line number Diff line change 50
50
51
51
#if defined(__linux__) || defined(__APPLE__)
52
52
MORESTACK:
53
- #if defined(__ELF__)
54
53
.cfi_startproc
55
- #endif
56
54
57
55
// Set up a normal backtrace
58
56
pushq %rbp
59
- #if defined(__ELF__)
60
57
.cfi_def_cfa_offset 16
61
58
.cfi_offset %rbp , -16
62
- #endif
63
59
movq %rsp , %rbp
64
- #if defined(__ELF__)
65
60
.cfi_def_cfa_register %rbp
66
- #endif
67
61
68
62
// During unwinding we want to skip our caller since it's not
69
63
// a complete frame and will make the unwinder sad
70
- #if defined(__linux__)
71
64
// Don't understand this line
72
65
.cfi_offset 16 , 0
73
66
// Tell the unwinding where to get the stack pointer for
74
67
// our grandparent frame
75
68
.cfi_offset %rsp , -24
76
- #endif
77
69
78
70
// Save the grandparent stack pointer for the unwinder
79
71
leaq 16 (%rbp ), %rax
@@ -147,15 +139,11 @@ MORESTACK:
147
139
148
140
addq $8 , %rsp
149
141
popq %rbp
150
- #ifdef __linux__
151
142
.cfi_restore %rbp
152
143
.cfi_def_cfa %rsp , 8
153
- #endif
154
144
ret
155
145
156
- #if defined(__ELF__)
157
146
.cfi_endproc
158
- #endif
159
147
160
148
#else
161
149
MORESTACK:
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ resource and_then_get_big_again(_i: ()) {
33
33
}
34
34
35
35
fn main ( ) {
36
- rustrt:: set_min_stack ( 256 u ) ;
36
+ rustrt:: set_min_stack ( 1024 u ) ;
37
37
std:: task:: spawn ( ( ) , fn ( & & _i : ( ) ) {
38
38
let r = and_then_get_big_again ( ( ) ) ;
39
39
getbig_call_c_and_fail ( 10000 ) ;
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ resource and_then_get_big_again(_i: @int) {
29
29
}
30
30
31
31
fn main ( ) {
32
- rustrt:: set_min_stack ( 256 u ) ;
33
- std:: task:: spawn ( 100 , getbig_and_fail) ;
32
+ rustrt:: set_min_stack ( 1024 u ) ;
33
+ std:: task:: spawn ( 400 , getbig_and_fail) ;
34
34
}
You can’t perform that action at this time.
0 commit comments