gcc/libstdc++-v3/src
Jonathan Wakely ddb1427def libstdc++: Relax memory ordering for default memory resource object
Currently pmr::set_default_resource and pmr::get_default_resource both
use sequentially consistent memory ordering. This is overkill. The
standard only requires that a call to set_default_resource synchronizes
with subsequent calls to set_default_resource and get_default_resource.

Using acquire-release for the setter and acquire for the getter is
sufficient to meet the requirement.

Reviewed-by: Thomas Rodgers  <trodgers@redhat.com>

libstdc++-v3/ChangeLog:

	* src/c++17/memory_resource.cc (set_default_resource): Use
	memory_order_acq_rel.
	(get_default_resource): Use memory_order_acquire.
2022-05-17 20:53:40 +01:00
..
c++11 libstdc++: Stop defining C++0x compat symbols for versioned namespace 2022-05-17 11:42:34 +01:00
c++17 libstdc++: Relax memory ordering for default memory resource object 2022-05-17 20:53:40 +01:00
c++20 libstdc++: Define <stacktrace> header for C++23 2022-01-17 12:13:02 +00:00
c++98 libstdc++: Define <stacktrace> header for C++23 2022-01-17 12:13:02 +00:00
filesystem libstdc++: Fix error reporting in filesystem::copy [PR99290] 2022-04-28 13:33:48 +01:00
libbacktrace libstdc++: Fix libbacktrace build files 2022-01-19 14:23:13 +00:00
shared Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am libstdc++: Stop defining C++0x compat symbols for versioned namespace 2022-05-17 11:42:34 +01:00
Makefile.in libstdc++: Stop defining C++0x compat symbols for versioned namespace 2022-05-17 11:42:34 +01:00