This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70463] New: always use first element of mutex pool in src/c++11/shared_ptr.cc
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2016 15:47:02 +0000
- Subject: [Bug libstdc++/70463] New: always use first element of mutex pool in src/c++11/shared_ptr.cc
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70463
Bug ID: 70463
Summary: always use first element of mutex pool in
src/c++11/shared_ptr.cc
Product: gcc
Version: 5.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
From https://bugzilla.redhat.com/show_bug.cgi?id=1315388
const unsigned char mask = 0xf;
inline unsigned char key(const void* addr)
{ return _Hash_impl::hash(addr) & mask; }
This always returns 0 when addresses are 4-byte aligned.