This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Implement "%env_tsan_opts" substitution to inherit default TSAN_OPTIONS
ClosedPublic

Authored by kubamracek on Nov 16 2015, 2:53 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek updated this revision to Diff 40265.Nov 16 2015, 2:53 AM
kubamracek retitled this revision from to [tsan] Implement "%env_tsan_opts" substitution to inherit default TSAN_OPTIONS.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, samsonov, glider, kcc.
samsonov added inline comments.Nov 17 2015, 4:14 PM
test/tsan/deadlock_detector_stress_test.cc
3 ↗(On Diff #40265)

remove quotes and use : as a delimiter here.

test/tsan/fork_atexit.cc
1 ↗(On Diff #40265)

same here (and below)

dvyukov added inline comments.Nov 17 2015, 11:57 PM
test/tsan/deadlock_detector_stress_test.cc
3 ↗(On Diff #40265)

why?
space-delimited options is supported format that must continue to work

samsonov added inline comments.Nov 18 2015, 3:48 PM
test/tsan/deadlock_detector_stress_test.cc
3 ↗(On Diff #40265)

The problem is not space-delimited options, after applying substitution the string would look like:

env TSAN_OPTIONS=atexit_sleep_ms=0:"detect_deadlocks=1 second_deadlock_stack=1"

which is probably not what is desired

kubamracek updated this revision to Diff 40611.Nov 19 2015, 1:16 AM

Updating patch to use a colon as option delimiter.

samsonov accepted this revision.Nov 19 2015, 9:10 AM
samsonov edited edge metadata.

LGTM. Thank you!

This revision is now accepted and ready to land.Nov 19 2015, 9:10 AM
This revision was automatically updated to reflect the committed changes.