gecko-dev/xpcom/string
Kershaw Chang 26da4db75f Bug 1603504 - Use release_acquire in nsStringBuffer::IsReadonly for TSan build r=froydnj
TSan reports a benign race when accessing a string between main thread and IPDL background thread. The reason is that we use `memory_order_relaxed` to check the reference count of StringBuffer. To avoid the benign race, this patch uses `memory_order_acquire` to perform acquire memory synchronization only for TSan build.

Differential Revision: https://phabricator.services.mozilla.com/D57620

--HG--
extra : moz-landing-system : lando
2020-02-14 14:06:43 +00:00
..
crashtests
README.html
moz.build
nsASCIIMask.cpp
nsASCIIMask.h
nsAString.h
nsCharTraits.h Bug 1611536 - Add stdint.h include for fixed-width integer types r=Ehsan 2020-01-25 00:40:51 +00:00
nsDependentString.cpp
nsDependentString.h
nsDependentSubstring.cpp
nsDependentSubstring.h
nsLiteralString.h
nsPrintfCString.h
nsPromiseFlatString.cpp
nsPromiseFlatString.h
nsReadableUtils.cpp Bug 1490601 part 2 - Move C++ entry points to encoding_c_mem to mfbt/. r=jwalden 2019-09-18 08:26:34 +00:00
nsReadableUtils.h Bug 1591481 part 1. Make NormalizeUSVString fallible. r=mccr8 2019-10-29 00:24:10 +00:00
nsString.cpp
nsString.h Bug 1589285 part 2. Add Span<const char> overloads of some XPCOM string methods. r=kmag 2019-10-17 22:09:46 +00:00
nsStringBuffer.h Bug 1603504 - Use release_acquire in nsStringBuffer::IsReadonly for TSan build r=froydnj 2020-02-14 14:06:43 +00:00
nsStringComparator.cpp
nsStringFlags.h Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky,froydnj 2020-01-07 21:37:12 +00:00
nsStringFwd.h
nsStringIterator.h
nsStringObsolete.cpp Bug 1591191 - Move compare and EqualsIgnoreAsciiCase to nsTStringRepr. r=erahm 2019-11-04 11:27:05 +00:00
nsSubstring.cpp Bug 1596198 - Remove the canary from nsStringBuffer r=bzbarsky 2019-11-14 22:50:31 +00:00
nsTDependentString.cpp
nsTDependentString.h
nsTDependentSubstring.cpp
nsTDependentSubstring.h Bug 1605659 - fix some errors discovered with `-Wdeprecated-copy`. r=valentin 2020-01-09 16:42:15 +00:00
nsTLiteralString.h
nsTPromiseFlatString.cpp
nsTPromiseFlatString.h
nsTString.cpp
nsTString.h Bug 1607547 - nsTAutoString::mInlineCapacity should be const. r=froydnj 2020-01-07 20:10:17 +00:00
nsTStringComparator.cpp
nsTStringObsolete.cpp
nsTStringRepr.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsTSubstring.cpp Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky,froydnj 2020-01-07 21:37:12 +00:00
nsTSubstring.h Bug 1607816 - Replace mozilla::{Max, Min}Value with std::numeric_limits. r=froydnj 2020-01-08 16:30:40 +00:00
nsTSubstringTuple.cpp
nsTSubstringTuple.h
nsTextFormatter.cpp Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj 2019-12-20 07:16:43 +00:00
nsTextFormatter.h
nsUTF8Utils.h
precompiled_templates.cpp Bug 1591191 - Move compare and EqualsIgnoreAsciiCase to nsTStringRepr. r=erahm 2019-11-04 11:27:05 +00:00

README.html

<html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<body>
  <h1><span class="LXRSHORTDESC">managing sequences of characters</span></h1>
<p>
  <span class="LXRLONGDESC"></span>
</p>
</body>
</html>