Descriptioncmd/gc: add go:norace annotation to disable race instrumentation
The annotation can be used to:
1. not instrument some sensitive functions (e.g. that call fork())
2. temporary ignore known data races
3. gain additional performance by not instrumenting very hot functions
Note that there is another similar potentially useful annotation --
that does not instrument memory accesses, but instrument func enter/exit.
It would allow to achieve (2) and (3) while preserving correct
stack traces in reports. If/when we add it, the plan is to name it
along the lines of go:norace-something (e.g. go:norace-access).
Update issue 4840.
Patch Set 1 #Patch Set 2 : diff -r 166d946fa77f https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 166d946fa77f https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r c224c549a3c7 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r c224c549a3c7 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 6 : diff -r c224c549a3c7 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 7 : diff -r c224c549a3c7 https://dvyukov%40google.com@code.google.com/p/go/ #
MessagesTotal messages: 7
|