diff options
| author | bors <bors@rust-lang.org> | 2013-04-21 17:33:52 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-21 17:33:52 -0700 |
| commit | 3830040a89297dd55f920ec26ab97fb2e33c7a00 (patch) | |
| tree | e4fa41d32b9d61c5fe1db10d5ba7604f5dcc17a4 /src/rt/rust_builtin.cpp | |
| parent | 6a31525c50fc5f2e2ad63bf30ec80c1279bf1fe4 (diff) | |
| parent | 5cc6a0bf327e84569166d0ae7c07615e5afd5238 (diff) | |
| download | rust-3830040a89297dd55f920ec26ab97fb2e33c7a00.tar.gz rust-3830040a89297dd55f920ec26ab97fb2e33c7a00.zip | |
auto merge of #5887 : jdm/rust/stackbounds, r=brson
This is needed to allow GC to work in SpiderMonkey.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index a0db6f64f69..ee025a39ff4 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -549,6 +549,11 @@ rust_get_stack_segment() { return rust_get_current_task()->stk; } +extern "C" CDECL stk_seg * +rust_get_c_stack() { + return rust_get_current_task()->get_c_stack(); +} + extern "C" CDECL void start_task(rust_task *target, fn_env_pair *f) { target->start(f->f, f->env, NULL); |
