diff options
| author | Elliott Slaughter <eslaughter@mozilla.com> | 2012-08-24 10:43:57 -0700 |
|---|---|---|
| committer | Elliott Slaughter <eslaughter@mozilla.com> | 2012-09-07 09:21:22 -0700 |
| commit | 961bd48724a3b9e75685d23d8d0e52a20f6ccf68 (patch) | |
| tree | 3815a24c92cd9ba98ddcfd4780652f7763a97cf1 /src/rt/rust_builtin.cpp | |
| parent | 578b036f9b0415852aae0af9286ff53630fa1c56 (diff) | |
| download | rust-961bd48724a3b9e75685d23d8d0e52a20f6ccf68.tar.gz rust-961bd48724a3b9e75685d23d8d0e52a20f6ccf68.zip | |
gc: Fix for GC missing stack frames across segment boundaries.
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 e1fbabda50f..b72fdd15e3c 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -610,6 +610,11 @@ rust_get_task() { return rust_get_current_task(); } +extern "C" CDECL stk_seg * +rust_get_stack_segment() { + return rust_get_current_task()->stk; +} + extern "C" CDECL void start_task(rust_task *target, fn_env_pair *f) { target->start(f->f, f->env, NULL); |
