This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove volatile qualifiers from mt_allocator


Richard Guenther wrote:

This patch removes volatile qualifiers from pointer members in mt_allocator.h. It doesn't change function signatures and so
should be ABI safe.


Bootstrapped and tested on x86_64-unknown-linux-gnu some time ago.

_M_free and _M_used pointers need not be volatile, they are written
in __pool::_M_initialize() only.

Can you please study a bit libstdc++/24469, before we go ahead with this kind of clean-up? You can start from line # 295 in mt_allocator.cc

Thanks,
Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]