File tree 4 files changed +10
-11
lines changed
4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0e74121ddb1cf366a474a2d156903edb9e8d9be0
2
+ refs/heads/master: 9e6ff44d9359ce062fb4f0e29c8f4c33eec7781e
Original file line number Diff line number Diff line change 21
21
#define UPCALL_DEL_STACK _upcall_del_stack
22
22
#define RUST_GET_TASK _rust_get_task
23
23
#define UPCALL_CALL_C _upcall_call_shim_on_c_stack
24
- #define MORESTACK __morestack
24
+ #define MORESTACK ___morestack
25
25
#endif
26
26
#endif
27
27
44
44
.type MORESTACK,@function
45
45
#endif
46
46
47
- #if defined(__linux__) || defined(__APPLE__)
48
47
MORESTACK:
49
48
#ifdef __linux__
50
49
.cfi_startproc
@@ -144,11 +143,6 @@ MORESTACK:
144
143
.cfi_endproc
145
144
#endif
146
145
147
- #else
148
- MORESTACK:
149
- ret
150
- #endif
151
-
152
146
#ifdef __APPLE__
153
147
154
148
.section __IMPORT,__pointers,non_lazy_symbol_pointers
Original file line number Diff line number Diff line change @@ -16,18 +16,22 @@ RECORD_SP:
16
16
movl 4 (%esp ), %eax
17
17
movl %eax , %gs :48
18
18
ret
19
- #else
19
+ #endif
20
+
20
21
#if defined(__APPLE__)
21
22
RECORD_SP:
22
23
movl $0x48 +90*4 , %eax
23
24
movl 4 (%esp ), %ecx
24
25
movl %ecx , %gs :(%eax )
25
26
ret
26
- #else
27
+ #endif
28
+
29
+ #if defined(_WIN32)
27
30
RECORD_SP:
31
+ movl 4 (%esp ), %eax
32
+ movl %eax , %fs :0x14
28
33
ret
29
34
#endif
30
- #endif
31
35
32
36
GET_SP:
33
37
movl %esp , %eax
Original file line number Diff line number Diff line change 394
394
rust_scheduler::place_task_in_tls (rust_task *task) {
395
395
BOOL result = TlsSetValue (task_key, task);
396
396
assert (result && " Couldn't place the task in TLS!" );
397
+ task->record_stack_limit ();
397
398
}
398
399
399
400
rust_task *
You can’t perform that action at this time.
0 commit comments