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: debug container mutex association


I see your point. I'll add similar test for each kind of debug container to see if we really have this problem at the momentor in the future. Maybe for biggest container like the unordered ones.

I'll check if I can use sizeof in this case.

Thanks for the report.


On 05/01/2018 00:23, Andreas Schwab wrote:
On Jan 04 2018, François Dumont <frs.dumont@gmail.com> wrote:

get_safe_base_mutex in debug.cc will always associate a different mutex to
the 16 containers relying in a continuous memory area.
That is only true if the alignment equals the size.  It's only the size
that determines the consecutive addresses.

Andreas.



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