Commit ec11ecc
trace: fix data race in RenderEvents
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 <[email protected]>
Reviewed-by: Sean Liao <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Damien Neil <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
Reviewed-by: Nicholas Husin <[email protected]>
Reviewed-by: Nicholas Husin <[email protected]>1 parent bff14c5 commit ec11ecc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments