Shared mutex pool
Mon Oct 3 10:29:00 GMT 2016
On 28/09/16 21:34 +0200, FranÃ§ois Dumont wrote:
> Here is the patch to share a mutex pool between debug mode and
>shared_ptr implementation. It saves 392 bytes on generated .so and
>will make sure that fixing false sharing will impact both usages.
> I preferred to leave implementation in shared_ptr.cc to avoid
>introducing another translation unit.
> * src/c++11/shared_ptr.cc (mask, invalid, get_mutex): Move
> * src/c++11/mutex_pool.h: ... here. New.
> * src/c++11/debug.cc: Use latter.
> Tested under Linux x86_64, normal and debug modes.
>Ok to commit ?
More information about the Libstdc++