about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-07-29 23:02:51 -0700
committerBrian Anderson <banderson@mozilla.com>2011-07-29 23:02:51 -0700
commitd552a0b95985f91278b2f3c05ee2c4b558a0a417 (patch)
tree68ae8dc7103e27ac7cd9ea035cfeb54294ffabb5 /src/rt/rust_kernel.cpp
parentec46f07e6e41d91b86f5fee8cd0925934a0f7b60 (diff)
downloadrust-d552a0b95985f91278b2f3c05ee2c4b558a0a417.tar.gz
rust-d552a0b95985f91278b2f3c05ee2c4b558a0a417.zip
Minimize scheduler locking on task creation
This takes my CPU utilization on task-perf-spawnalot from 35% to 55%
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp
index 7ff2f16a228..24db485dd9d 100644
--- a/src/rt/rust_kernel.cpp
+++ b/src/rt/rust_kernel.cpp
@@ -136,7 +136,6 @@ int rust_kernel::start_task_threads()
 rust_task *
 rust_kernel::create_task(rust_task *spawner, const char *name) {
     rust_scheduler *thread = threads[rand(&rctx) % num_threads];
-    scoped_lock with(thread->lock);
     return thread->create_task(spawner, name);
 }