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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user