diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-05 13:32:40 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-05 19:39:56 -0800 |
| commit | 958c32108313658740e89dfd32c5a96ba557c0a3 (patch) | |
| tree | 543f436905d84a064cdd9fdd6259b9f7240c3f3a /src/rt/rust_port.cpp | |
| parent | 1347d04bb086f6d76dd7287762d34ef4c57dbc00 (diff) | |
| download | rust-958c32108313658740e89dfd32c5a96ba557c0a3.tar.gz rust-958c32108313658740e89dfd32c5a96ba557c0a3.zip | |
rt: Fix the atomic get_ref_count method to avoid races
Diffstat (limited to 'src/rt/rust_port.cpp')
| -rw-r--r-- | src/rt/rust_port.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp index 3aaa107916d..7ac4cef0e8f 100644 --- a/src/rt/rust_port.cpp +++ b/src/rt/rust_port.cpp @@ -44,13 +44,6 @@ void rust_port::begin_detach(uintptr_t *yield) { } void rust_port::end_detach() { - // FIXME: For some reason, on rare occasion we can get here without - // actually having the ref count go to 0. Possibly related to #1923 - bool done = false; - while (!done) { - done = get_ref_count() == 0; - } - // Just take the lock to make sure that the thread that signaled // the detach_cond isn't still holding it scoped_lock with(detach_lock); |
