about summary refs log tree commit diff
path: root/src/rt/rust_task_thread.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-18 15:59:00 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-18 17:03:35 -0700
commitb247de64583e2ab527088813ba9192824554e801 (patch)
treeae9a3787632c877c6b9450cbf4431e26b5f081e4 /src/rt/rust_task_thread.cpp
parente4af1ca0657d2b3b4fc2e7829cd8f822d983de1b (diff)
downloadrust-b247de64583e2ab527088813ba9192824554e801.tar.gz
rust-b247de64583e2ab527088813ba9192824554e801.zip
rt: Remove lock_held_by_current_thread
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
-rw-r--r--src/rt/rust_task_thread.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp
index 63dcd3c846b..d8fb28d5791 100644
--- a/src/rt/rust_task_thread.cpp
+++ b/src/rt/rust_task_thread.cpp
@@ -121,8 +121,6 @@ rust_task_thread::number_of_live_tasks() {
  */
 void
 rust_task_thread::reap_dead_tasks() {
-    I(this, lock.lock_held_by_current_thread());
-
     if (dead_tasks.length() == 0) {
         return;
     }
@@ -358,7 +356,6 @@ rust_task_thread::place_task_in_tls(rust_task *task) {
 
 void
 rust_task_thread::exit() {
-    A(this, !lock.lock_held_by_current_thread(), "Shouldn't have lock");
     scoped_lock with(lock);
     should_exit = true;
     lock.signal();