Skip to content

Commit b362edd

Browse files
committed
---
yaml --- r: 56343 b: refs/heads/auto c: e6c4471 h: refs/heads/master i: 56341: 5ee0858 56339: c930886 56335: b8e442f v: v3
1 parent e936866 commit b362edd

File tree

7 files changed

+11
-3
lines changed

7 files changed

+11
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 7f45ae54ea6609febda24a116e8c30b8fcda466b
17+
refs/heads/auto: e6c4471ed8c54a035f1cc2096d04cc44fd4cd14b
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libcore/gc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub mod rustrt {
7373
pub unsafe fn rust_gc_metadata() -> *Word;
7474

7575
pub unsafe fn rust_get_stack_segment() -> *StackSegment;
76+
pub unsafe fn rust_get_c_stack() -> *StackSegment;
7677
}
7778
}
7879

branches/auto/src/libstd/num/rational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl<T: Copy + Num + Ord>
5151
#[inline(always)]
5252
pub fn new(numer: T, denom: T) -> Ratio<T> {
5353
if denom == Zero::zero() {
54-
fail!(~"quotient of 0");
54+
fail!(~"denominator == 0");
5555
}
5656
let mut ret = Ratio::new_raw(numer, denom);
5757
ret.reduce();

branches/auto/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 2e9f0d21fe321849a4759a01fc28eae82ef196d6
1+
Subproject commit 56dd407f4f97a01b8df6554c569170d2fc276fcb

branches/auto/src/rt/rust_builtin.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,11 @@ rust_get_stack_segment() {
549549
return rust_get_current_task()->stk;
550550
}
551551

552+
extern "C" CDECL stk_seg *
553+
rust_get_c_stack() {
554+
return rust_get_current_task()->get_c_stack();
555+
}
556+
552557
extern "C" CDECL void
553558
start_task(rust_task *target, fn_env_pair *f) {
554559
target->start(f->f, f->env, NULL);

branches/auto/src/rt/rust_task.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ rust_task : public kernel_owned<rust_task>
374374
void call_on_c_stack(void *args, void *fn_ptr);
375375
void call_on_rust_stack(void *args, void *fn_ptr);
376376
bool have_c_stack() { return c_stack != NULL; }
377+
stk_seg *get_c_stack() { return c_stack; }
377378

378379
rust_task_state get_state() { return state; }
379380
rust_cond *get_cond() { return cond; }

branches/auto/src/rt/rustrt.def.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ rust_task_is_unwinding
4949
rust_get_task
5050
rust_try_get_task
5151
rust_get_stack_segment
52+
rust_get_c_stack
5253
rust_log_str
5354
start_task
5455
vec_reserve_shared_actual

0 commit comments

Comments
 (0)