about summary refs log tree commit diff
path: root/src/rt/rust_task.h
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-18 16:59:49 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-18 17:17:31 -0800
commitbd6b80c9720bb4b0143378a052b568697ce3abe6 (patch)
tree4d261511241d91b59b485f3192803c922d98b728 /src/rt/rust_task.h
parentc73eb8ff51da170ff10aba73934f10e40d26366d (diff)
downloadrust-bd6b80c9720bb4b0143378a052b568697ce3abe6.tar.gz
rust-bd6b80c9720bb4b0143378a052b568697ce3abe6.zip
rt: Get rid of the rethrow in upcall_fail
Throwing in upcall_fail ends up running lots of code in the red zone. To avoid
it we have the personality function figure out which stack it's on and switch
as needed.
Diffstat (limited to 'src/rt/rust_task.h')
-rw-r--r--src/rt/rust_task.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h
index 3339ad42bfd..51ae00a6b70 100644
--- a/src/rt/rust_task.h
+++ b/src/rt/rust_task.h
@@ -202,6 +202,7 @@ rust_task : public kernel_owned<rust_task>, rust_cond
     void del_stack();
     void record_stack_limit();
     void reset_stack_limit();
+    bool on_rust_stack();
 };
 
 //