mirror of
https://github.com/golang/go.git
synced 2025-05-28 10:51:22 +00:00
We had previously been returning the metadata map in a few of the loading functions. We don't actually need the map; we only need the actual metadata. The race was caused by the return of the f.meta field in a few functions, unprotected by the f.mu lock. This was likely a result of the f.mu lock being added after the fact. Fixes golang/go#33978 Change-Id: Ice5778d9d6dea23304237baf321b55d4fee6599c Reviewed-on: https://go-review.googlesource.com/c/tools/+/193717 Reviewed-by: Ian Cottrell <iancottrell@google.com> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>