Descriptionruntime/pprof: fix data race
It's unclear why we do this broken double-checked locking.
The mutex is not held for the whole duration of CPU profiling.
Fixes issue 8365.
Patch Set 1 #Patch Set 2 : diff -r b6a42b0aeef6 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r b6a42b0aeef6 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r e0bf1fc9dd8ed6029e45c9941d3f8dcce5ac9c8e https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 5
|