diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-04 15:36:32 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-05 19:39:56 -0800 |
| commit | 4c4a2320eb9620dbc68a264ce64ee1f233dd977d (patch) | |
| tree | 906d11b31ca849c4d4a6ef0ca176dd46118e84be /src/rt/rust_task.cpp | |
| parent | 0a5603cb58bdc66ad6b6a030e4e98ebeb3c13721 (diff) | |
| download | rust-4c4a2320eb9620dbc68a264ce64ee1f233dd977d.tar.gz rust-4c4a2320eb9620dbc68a264ce64ee1f233dd977d.zip | |
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.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 878bf099689..bb56b4dcb0a 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -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(); |
