File tree Expand file tree Collapse file tree 7 files changed +11
-3
lines changed Expand file tree Collapse file tree 7 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 7f45ae54ea6609febda24a116e8c30b8fcda466b
17
+ refs/heads/auto: e6c4471ed8c54a035f1cc2096d04cc44fd4cd14b
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ pub mod rustrt {
73
73
pub unsafe fn rust_gc_metadata ( ) -> * Word ;
74
74
75
75
pub unsafe fn rust_get_stack_segment ( ) -> * StackSegment ;
76
+ pub unsafe fn rust_get_c_stack ( ) -> * StackSegment ;
76
77
}
77
78
}
78
79
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl<T: Copy + Num + Ord>
51
51
#[ inline( always) ]
52
52
pub fn new ( numer : T , denom : T ) -> Ratio < T > {
53
53
if denom == Zero :: zero ( ) {
54
- fail ! ( ~"quotient of 0 ");
54
+ fail ! ( ~"denominator == 0 ");
55
55
}
56
56
let mut ret = Ratio::new_raw(numer, denom);
57
57
ret.reduce();
Original file line number Diff line number Diff line change 1
- Subproject commit 2e9f0d21fe321849a4759a01fc28eae82ef196d6
1
+ Subproject commit 56dd407f4f97a01b8df6554c569170d2fc276fcb
Original file line number Diff line number Diff line change @@ -549,6 +549,11 @@ rust_get_stack_segment() {
549
549
return rust_get_current_task ()->stk ;
550
550
}
551
551
552
+ extern " C" CDECL stk_seg *
553
+ rust_get_c_stack () {
554
+ return rust_get_current_task ()->get_c_stack ();
555
+ }
556
+
552
557
extern " C" CDECL void
553
558
start_task (rust_task *target, fn_env_pair *f) {
554
559
target->start (f->f , f->env , NULL );
Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ rust_task : public kernel_owned<rust_task>
374
374
void call_on_c_stack (void *args, void *fn_ptr);
375
375
void call_on_rust_stack (void *args, void *fn_ptr);
376
376
bool have_c_stack () { return c_stack != NULL ; }
377
+ stk_seg *get_c_stack () { return c_stack; }
377
378
378
379
rust_task_state get_state () { return state; }
379
380
rust_cond *get_cond () { return cond; }
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ rust_task_is_unwinding
49
49
rust_get_task
50
50
rust_try_get_task
51
51
rust_get_stack_segment
52
+ rust_get_c_stack
52
53
rust_log_str
53
54
start_task
54
55
vec_reserve_shared_actual
You can’t perform that action at this time.
0 commit comments