aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-04-11 11:08:34 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2025-04-14 13:13:11 +0100
commitdd35f66287b7cca196a720c9641e463255dceb1c (patch)
tree6c50820bb98d7c2c6543b964ce419cbbdc9d2ffc /gcc
parent2f334a10bce0409c2cb4616496aafcb78f7db3d8 (diff)
downloadgcc-dd35f66287b7cca196a720c9641e463255dceb1c.zip
gcc-dd35f66287b7cca196a720c9641e463255dceb1c.tar.gz
gcc-dd35f66287b7cca196a720c9641e463255dceb1c.tar.bz2
libstdc++: Document thread-safety for COW std::string [PR21334]
The gcc4-compatible copy-on-write std::string does not conform to the C++11 requirements on data race avoidance in standard containers. Specifically, calling non-const member functions such as begin() and data() needs to do the "copy on write" operation and so is most definitely a modification of the object. As such, those non-const members must not be called concurrently with any other uses of the string object. libstdc++-v3/ChangeLog: PR libstdc++/21334 * doc/xml/manual/using.xml: Document that container data race avoidance rules do not apply to COW std::string. * doc/html/*: Regenerate.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions