This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ and race detectors
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Kostya Serebryany <kcc at google dot com>
- Cc: libstdc++ at gcc dot gnu dot org, Julian Seward <jseward at acm dot org>, Bart Van Assche <bvanassche at acm dot org>, "Frank, Matthew I" <matthew dot i dot frank at intel dot com>
- Date: Fri, 09 Jul 2010 14:39:41 +0200
- Subject: Re: libstdc++ and race detectors
- References: <AANLkTim68MweWz6dJkpl4t2Ub6EIlhpgPYas_Gc1WurR@mail.gmail.com> <AANLkTillxMgsSHjFGxFi9gqDhRvp7j0-jluKZLxfZfan@mail.gmail.com> <4C37149A.2050401@oracle.com>
... in the meanwhile I actually had a look to the referenced web page.
Apparently, this is a kind of change which we *can* do, because it
entirely lives in an header, static inline, and I think should not cause
problems for the ABI (in the wide-sense). Good news ;)
Thus I would suggest trying to come up with a full patch, touching
atomicity.h essentially, and then adjusting consistently all the callers
everywhere. Note: all the names must be uglified, thus __refcount,
__res. Also, something like - note single underscore in front, no
underscores at the end - _GLIBCXX_HAPPENS_AFTER, etc., maybe better
adding something to the name mentioning atomicity & co.
Paolo.