commit | ffa170dc4aa6c659d11a6c06722c1e07af416dfc | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Mon Feb 28 11:03:25 2022 -0500 |
committer | Bryan Mills <bcmills@google.com> | Tue Mar 01 21:32:50 2022 +0000 |
tree | f3a6263effdf88333359ac0a5393339fca14ab46 | |
parent | 625c871d3c41b4682c9887a908c2721a32a6795f [diff] |
internal/jsonrpc2_v2: fix a racy map assignment in readIncoming If a call request comes it at the same time that a response becomes ready for another call (either via an explicit Respond call or the return from a Handle call), the map read and deletion for the response could race with the map assignment for the new (incoming) call. Change-Id: Ifd81dbc490486251e81c7eeae438806356f514af Reviewed-on: https://go-review.googlesource.com/c/tools/+/388595 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Cottrell <iancottrell@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go install
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go install golang.org/x/tools/...@latest
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.