Bug 1258818 - Fix bad search/replace from b411b94f8d91 (from bug 956899). r=terrence
authorNick Fitzgerald <fitzgen@gmail.com>
Tue, 22 Mar 2016 12:58:00 -0400
changeset 289931 9daacc9d25600491dacef965c3927d306deef931
parent 289930 5d3a8a8f017842b11d0c2b969586b59280e20f4c
child 289932 038c00218cf4afd880152ecbb2f9924aaf678e3b
push id74041
push userryanvm@gmail.com
push dateWed, 23 Mar 2016 02:47:03 +0000
treeherdermozilla-inbound@22615a6fd646 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs1258818, 956899
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1258818 - Fix bad search/replace from b411b94f8d91 (from bug 956899). r=terrence
js/src/threading/ExclusiveData.h
--- a/js/src/threading/ExclusiveData.h
+++ b/js/src/threading/ExclusiveData.h
@@ -62,17 +62,17 @@ namespace js {
  *
  *       public:
  *         void inc(size_t n) {
  *             auto guard = counter.lock();
  *             guard->inc(n);
  *         }
  *     };
  *
- * The API design is based on Rust's `std::sync::ExclusiveData<T>` type.
+ * The API design is based on Rust's `std::sync::Mutex<T>` type.
  *
  * [0]: Of course, we don't have a borrow checker in C++, so the type system
  *      cannot guarantee that you don't stash references received from
  *      `ExclusiveData<T>::Guard` somewhere such that the reference outlives the
  *      guard's lifetime and therefore becomes invalid. To help avoid this last
  *      foot-gun, prefer using the guard directly! Do not store raw references
  *      to the protected value in other structures!
  */