runtime/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.
runtime/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.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/116290043

bryanxu/go-zh,webfd/go-zh,webfd/go-zh,d0f/go-zh,bryanxu/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,d0f/go-zh,webfd/go-zh,webfd/go-zh,bryanxu/go-zh,bryanxu/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,webfd/go-zh,bryanxu/go-zh,sanjosh/sanjos100-tipc,webfd/go-zh,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,bryanxu/go-zh,bryanxu/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,webfd/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,webfd/go-zh,d0f/go-zh,d0f/go-zh