about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-07-13 13:43:35 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-07-13 13:43:35 -0700
commit2e2951305d66feea833ec2b05af8102b1b5affa9 (patch)
tree7ff7cac039e705866069bcdbb1f2bb94e950b6c4 /src/rt/rust_task.cpp
parent1ba53c008a7f6f447f94f07570baab26d39d7df4 (diff)
downloadrust-2e2951305d66feea833ec2b05af8102b1b5affa9.tar.gz
rust-2e2951305d66feea833ec2b05af8102b1b5affa9.zip
Remove obsolete nargs counts from runtime.
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index b8fa6bd72eb..a358b4a6ed3 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -177,17 +177,15 @@ rust_task::grow(size_t n_frame_bytes)
 }
 
 void
-rust_task::yield(size_t nargs) {
-    yield(nargs, 0);
+rust_task::yield() {
+    yield(0);
 }
 
 void
-rust_task::yield(size_t nargs, size_t time_in_us) {
+rust_task::yield(size_t time_in_us) {
     LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us",
         name, this, time_in_us);
 
-    // FIXME: what is nargs for, and is it safe to ignore?
-
     yield_timer.reset_us(time_in_us);
 
     // Return to the scheduler.
@@ -203,7 +201,7 @@ rust_task::kill() {
 
     // Note the distinction here: kill() is when you're in an upcall
     // from task A and want to force-fail task B, you do B->kill().
-    // If you want to fail yourself you do self->fail(upcall_nargs).
+    // If you want to fail yourself you do self->fail().
     LOG(this, task, "killing task %s @0x%" PRIxPTR, name, this);
     // Unblock the task so it can unwind.
     unblock();
@@ -216,7 +214,7 @@ rust_task::kill() {
 }
 
 void
-rust_task::fail(size_t nargs) {
+rust_task::fail() {
     // See note in ::kill() regarding who should call this.
     DLOG(sched, task, "task %s @0x%" PRIxPTR " failing", name, this);
     backtrace();
@@ -224,7 +222,6 @@ rust_task::fail(size_t nargs) {
     unblock();
     if (this == sched->root_task)
         sched->fail();
-    // run_after_return(nargs, rust_unwind_glue);
     if (supervisor) {
         DLOG(sched, task,
              "task %s @0x%" PRIxPTR
@@ -237,7 +234,7 @@ rust_task::fail(size_t nargs) {
 }
 
 void
-rust_task::gc(size_t nargs)
+rust_task::gc()
 {
     // FIXME: not presently implemented; was broken by rustc.
     DLOG(sched, task,