aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-12-01 20:58:58 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-12-02 16:46:28 +0000
commitb5a568683f71b4a8b1e4e45a43484398e9a66ff2 (patch)
tree3fcc70af8566481446db259a09d3c451d49b704e /gcc
parentd08236359eb22918ba067489edcec02857109d09 (diff)
downloadgcc-b5a568683f71b4a8b1e4e45a43484398e9a66ff2.zip
gcc-b5a568683f71b4a8b1e4e45a43484398e9a66ff2.tar.gz
gcc-b5a568683f71b4a8b1e4e45a43484398e9a66ff2.tar.bz2
libstdc++: Restore unconditional atomic load in COW std::string
The relaxed load is already optimal, checking the __single_threaded global before doing a non-atomic load isn't an optimization. libstdc++-v3/ChangeLog: * include/bits/cow_string.h (basic_string::_M_is_leaked()): Revert change to check __is_single_threaded() before using atomic load.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions