Thread safety annotations and analysis in GCC
Le-Chun Wu
lcwu@google.com
Mon Jun 9 23:30:00 GMT 2008
Hi,
We have been working on creating program annotations for C/C++ (in GCC
attributes) to help developers document locks and how they need to be
used to safely read and write shared variables in multi-threaded code.
We've also implemented a new GCC pass that uses the annotations to
identify and warn about the issues that could potentially result in
race conditions and deadlocks. Here is the design doc for the proposed
annotations:
http://docs.google.com/Doc?id=ddqtfwhb_0c49t6zgr
Attached please find also find the patch file that contains the
initial implementation of the annotations and analysis.
Please let me know if you have any feedback/comments/questions on the
proposed annotations and the GCC implementation. We will be creating a
public branch for people who are interested to start contributing to
the project (before the patch is accepted and checked into the trunk).
We will send out another email once the public branch is created.
Thanks,
Le-Chun Wu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts_annotations.patch.gz
Type: application/x-gzip
Size: 35742 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080609/e8c1a15f/attachment.bin>
More information about the Gcc
mailing list