rt: Make rust_port_detach less contentious

It still utterly dominates some benchmarks with busy waiting, but at least it
doesn't create lock contention while doing so.
This commit is contained in:
Brian Anderson
2012-03-04 15:36:32 -08:00
parent 0a5603cb58
commit 4c4a2320eb
7 changed files with 23 additions and 20 deletions

View File

@@ -516,7 +516,6 @@ rust_task::notify(bool success) {
msg.result = !success ? tr_failure : tr_success;
target_port->send(&msg);
scoped_lock with(target_task->port_lock);
target_port->deref();
}
target_task->deref();