From 9df93e4d6d31674ee9ca7725bcf9dea2423d4aea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Sun, 13 Oct 2019 13:18:03 +0100 Subject: [PATCH] doc: document atexit_sleep_ms flag in race_detector It was pointed out to me that the thread sanitizer library has many more flags than the ones documented in this doc page. In particular, I was able to make use of GORACE=atexit_sleep_ms=10 to reduce the amount that 'go test -race' will sleep before finishing. I'm sure that this flag will be useful to others in the future, so add it here. This is still not a complete list, but we can simply add useful flags that work when we think they deserve a mention. Change-Id: If199d36fd80a0945af90055d110519e5dba27361 Reviewed-on: https://go-review.googlesource.com/c/go/+/200863 Reviewed-by: Heschi Kreinick --- doc/articles/race_detector.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/articles/race_detector.html b/doc/articles/race_detector.html index 2f18acfbfb..1c449da5c0 100644 --- a/doc/articles/race_detector.html +++ b/doc/articles/race_detector.html @@ -133,6 +133,11 @@ cost of increased memory usage. halt_on_error (default 0): Controls whether the program exits after reporting first data race. + +
  • +atexit_sleep_ms (default 1000): Amount of milliseconds +to sleep in the main goroutine before exiting. +
  • -- 2.50.0