odyaka341 / thread-sanitizer

Automatically exported from code.google.com/p/thread-sanitizer
0 stars 0 forks source link

Replace __tsan::OverrideFlags with __tsan_default_options() #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It's currently only possible to set the default TSan options in the client 
program by declaring the __tsan::OverrideFlags() function that modifies the 
flags.
This approach requires the client to be aware of the layout of the 
__tsan::Flags struct, which changes over time. For some clients it may be 
inconvenient, e.g. it's hard to support two different compiler versions with 
different flags.
We need to introduce the 'char *__tsan_default_options()' function similar to 
that used by ASan and MSan instead.

Original issue reported on code.google.com by gli...@google.com on 14 Oct 2013 at 2:16

GoogleCodeExporter commented 9 years ago
Fixed by r192715, 192873.

Original comment by dvyu...@google.com on 17 Oct 2013 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by dvyu...@google.com on 17 Oct 2013 at 8:25

GoogleCodeExporter commented 9 years ago
Thanks a ton!

Original comment by gli...@chromium.org on 17 Oct 2013 at 8:27