]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: fix data race in test
authorDmitry Vyukov <dvyukov@google.com>
Sat, 28 Mar 2015 13:14:18 +0000 (16:14 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Sun, 29 Mar 2015 12:24:16 +0000 (12:24 +0000)
commitca98dd773a3cc759399897a343bfca27eda42fc1
tree726b6368462c1fe4cfc50f1ee095f04d5d0ebfe6
parentedcc062bdc35a7dd6ac5d33aa85a135b020b72a8
runtime/pprof: fix data race in test

rp.Close happened concurrently with rp.Read. Order them.

Fixes #10280

Change-Id: I7b083bcc336d15396c4e42fc4654ba34fad4a4cc
Reviewed-on: https://go-review.googlesource.com/8211
Reviewed-by: Dave Cheney <dave@cheney.net>
src/runtime/pprof/trace_stack_test.go