auto merge of #5887 : jdm/rust/stackbounds, r=brson
This is needed to allow GC to work in SpiderMonkey.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user