mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
This commit updates the RenderEvents function by moving the read lock for event families so that it happens before checking the length of event families and by that fixing a data race problem. Fixes golang/go#76402 Change-Id: Id02ebaa25cec8ef631aaf928ba084b0692e84583 Reviewed-on: https://go-review.googlesource.com/c/net/+/723160 Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Nicholas Husin <nsh@golang.org> Reviewed-by: Nicholas Husin <husin@google.com>