File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,16 @@ pub unsafe extern fn __rust_probestack() {
64
64
// bytes pushed on the stack orginally with our return address. Using
65
65
// `8(%rsp)` simulates us testing the stack pointer in the caller's
66
66
// context.
67
+ cmp $$0x1000,%r11
68
+ jna 3f
67
69
2:
68
70
sub $$0x1000,%rsp
69
71
test %rsp,8(%rsp)
70
72
sub $$0x1000,%r11
71
73
cmp $$0x1000,%r11
72
74
ja 2b
73
75
76
+ 3:
74
77
// Finish up the last remaining stack space requested, getting the last
75
78
// bits out of r11
76
79
sub %r11,%rsp
@@ -98,13 +101,17 @@ pub unsafe extern fn __rust_probestack() {
98
101
asm ! ( "
99
102
push %ecx
100
103
mov %eax,%ecx
104
+
105
+ cmp $$0x1000,%ecx
106
+ jna 3f
101
107
2:
102
108
sub $$0x1000,%esp
103
109
test %esp,8(%esp)
104
110
sub $$0x1000,%ecx
105
111
cmp $$0x1000,%ecx
106
112
ja 2b
107
113
114
+ 3:
108
115
sub %ecx,%esp
109
116
test %esp,8(%esp)
110
117
You can’t perform that action at this time.
0 commit comments