[Bug libstdc++/78552] std::locale::classic() Needless Race
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 26 13:10:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78552
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:26b070a3f6e5c7ccee7491fb758dba4c72bd7026
commit r8-10086-g26b070a3f6e5c7ccee7491fb758dba4c72bd7026
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Feb 26 09:43:59 2020 +0000
PR libstdc++/78552 only construct std::locale for C locale once
Backport from mainline
2019-10-09 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/78552
* src/c++98/locale_init.cc (locale::classic()): Do not construct a new
locale object for every call.
(locale::_S_initialize_once()): Construct C locale here.
More information about the Gcc-bugs
mailing list